Closed
Bug 1219205
Opened 10 years ago
Closed 10 years ago
ServiceWorkerInfo should be an XPCOM object.
Categories
(Core :: DOM: Service Workers, defect)
Core
DOM: Service Workers
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: ejpbruel, Assigned: ejpbruel)
References
Details
Attachments
(1 file)
7.03 KB,
patch
|
catalinb
:
review+
|
Details | Diff | Splinter Review |
Currently, nsIServiceWorkerRegistrationInfo does not provide access to its service workers. Each of these service workers is represented internally by an instance of ServiceWorkerInfo.
We would like to turn these instances of ServiceWorkerInfo into XPCOM objects, so we can expose them as properties on nsIServiceWorkerRegistrationInfo. Once we have obtained a reference to an nsIServiceWorkerInfo from an nsIServiceWorkerRegistrationInfo, we will be able to use the former to attach a debugger to a particular service worker.
![]() |
Assignee | |
Comment 1•10 years ago
|
||
Note that with this change we no longer need properties like currentWorkerURL or activeCacheName, since these can be reimplemented as properties on individual ServiceWorkerInfos.
Attachment #8679942 -
Flags: review?(catalin.badea392)
Comment 2•10 years ago
|
||
(In reply to Eddy Bruel [:ejpbruel] from comment #0)
> Currently, nsIServiceWorkerRegistrationInfo does not provide access to its
> service workers. Each of these service workers is represented internally by
> an instance of ServiceWorkerInfo.
>
> We would like to turn these instances of ServiceWorkerInfo into XPCOM
> objects, so we can expose them as properties on
> nsIServiceWorkerRegistrationInfo. Once we have obtained a reference to an
> nsIServiceWorkerInfo from an nsIServiceWorkerRegistrationInfo, we will be
> able to use the former to attach a debugger to a particular service worker.
One important thing to note is that we need to attach to the ServiceWorkerInfo
living in the content process.
Updated•10 years ago
|
Attachment #8679942 -
Flags: review?(catalin.badea392) → review+
![]() |
Assignee | |
Comment 3•10 years ago
|
||
Try run for this patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=fc75e55dd66a
Comment 5•10 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•