Closed Bug 1219205 Opened 10 years ago Closed 10 years ago

ServiceWorkerInfo should be an XPCOM object.

Categories

(Core :: DOM: Service Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: ejpbruel, Assigned: ejpbruel)

References

Details

Attachments

(1 file)

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.
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)
Blocks: 1219255
Blocks: 1220740
Blocks: 1220741
(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.
Attachment #8679942 - Flags: review?(catalin.badea392) → review+
No longer blocks: 1219255
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
No longer blocks: 1220741
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: