Closed
Bug 1002570
Opened 11 years ago
Closed 11 years ago
Implement access to various ServiceWorkerContainer ServiceWorker instances
Categories
(Core :: DOM: Workers, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: nsm, Assigned: nsm)
References
Details
Attachments
(1 file, 1 obsolete file)
31.19 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
Based on the resolution of spec issue https://github.com/slightlyoff/ServiceWorker/issues/232
A placeholder bug to land Bug 930348 with FIXMEs.
Assignee | ||
Comment 1•11 years ago
|
||
While the DOM exposed API is unintuitive when new registrations are performed, the updated spec makes this much easier to understand. I'd like to land this before making the DOM facing spec changes from https://github.com/slightlyoff/ServiceWorker/issues/365 since the ServiceWorkerManager code remains mostly unchanged.
Attachment #8461164 -
Flags: review?(ehsan)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → nsm.nikhil
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
MaybeStartControlling() should only control the document if the registration has a non-null active worker.
Attachment #8461180 -
Flags: review?(ehsan)
Assignee | ||
Updated•11 years ago
|
Attachment #8461164 -
Attachment is obsolete: true
Attachment #8461164 -
Flags: review?(ehsan)
Assignee | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Comment on attachment 8461180 [details] [diff] [review]
Return valid ServiceWorker instances for .installing, .waiting, .active and .controller
Review of attachment 8461180 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with the CC issue fixed.
::: dom/workers/ServiceWorkerContainer.cpp
@@ +24,5 @@
> namespace dom {
> namespace workers {
>
> NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(ServiceWorkerContainer)
> NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)
Don't you need to hook up these new members to the CC?
::: dom/workers/ServiceWorkerManager.h
@@ +99,5 @@
> +enum WhichServiceWorker {
> + INSTALLING_WORKER = 1,
> + WAITING_WORKER = 2,
> + ACTIVE_WORKER = 4,
> +};
It would be nice if you used a typed enum here with MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS. Could be a follow-up.
Attachment #8461180 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•