Closed
Bug 1216566
Opened 10 years ago
Closed 10 years ago
Fix a bug in nsIServiceWorkerManager.getAllRegistrations
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, 1 obsolete file)
|
13.52 KB,
patch
|
catalinb
:
review+
|
Details | Diff | Splinter Review |
Currently, nsIServiceWorkerManager.getRegistrations returns an array of nsIServiceWorkerInfos. This doesn't really make sense, because nsIServiceWorkerInfo represents a service worker, not a service worker registration, and these two concepts are not interchangeable.
Instead, nsIServiceWorkerManager.getRegistrations should return an array of nsIServiceWorkerRegistrationInfos. This will also eliminate the need to use a ServiceWorkerDataInfo to adapt a ServiceWorkerRegistrationInfo to implement the nsIServiceWorkerInfo interface.
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8676331 -
Flags: review?(catalin.badea392)
Comment 2•10 years ago
|
||
Comment on attachment 8676331 [details] [diff] [review]
Fix a bug in nsIServiceWorkerManager.getRegistrations
Review of attachment 8676331 [details] [diff] [review]:
-----------------------------------------------------------------
I don't think we want to drop about:serviceworkers just yet and removing those properties from nsIServiceWorkerInfo will break it.
::: dom/interfaces/base/nsIServiceWorkerManager.idl
@@ -30,5 @@
> - readonly attribute DOMString scriptSpec;
> - readonly attribute DOMString currentWorkerURL;
> -
> - readonly attribute DOMString activeCacheName;
> - readonly attribute DOMString waitingCacheName;
Removing these properties will break about:serviceworkers.
They are still used here:
https://dxr.mozilla.org/mozilla-central/source/toolkit/content/aboutServiceWorkers.js#121
::: toolkit/content/aboutServiceWorkers.js
@@ +61,3 @@
> continue;
> }
> +/
Please remove this line.
Attachment #8676331 -
Flags: review?(catalin.badea392) → review-
| Assignee | ||
Comment 3•10 years ago
|
||
New patch with comments addressed.
Attachment #8676331 -
Attachment is obsolete: true
Attachment #8678829 -
Flags: review?(catalin.badea392)
| Assignee | ||
Updated•10 years ago
|
Summary: Fix a bug in nsIServiceWorkerManager.getRegistrations → Fix a bug in nsIServiceWorkerManager.getAllRegistrations
Updated•10 years ago
|
Attachment #8678829 -
Attachment is patch: true
Attachment #8678829 -
Attachment mime type: text/x-patch → text/plain
Updated•10 years ago
|
Attachment #8678829 -
Flags: review?(catalin.badea392) → review+
| Assignee | ||
Comment 4•10 years ago
|
||
Try push for this patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f30814b3f86b
Comment 6•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Comment 7•10 years ago
|
||
| bugherder uplift | ||
status-b2g-v2.5:
--- → fixed
Comment 8•10 years ago
|
||
removing the b2g 2.5 flag since this commit has been reverted due to an incorrect merge, sorry for the confusion
status-b2g-v2.5:
fixed → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•