Closed
Bug 1065366
Opened 10 years ago
Closed 10 years ago
Implement ServiceWorkerGlobalScope update()
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: baku, Assigned: baku)
References
Details
(Keywords: dev-doc-needed)
Attachments
(1 file, 1 obsolete file)
11.88 KB,
patch
|
nsm
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•10 years ago
|
Blocks: ServiceWorkers
Assignee | ||
Comment 1•10 years ago
|
||
I want to add a mochitest for this.
Assignee | ||
Updated•10 years ago
|
Attachment #8487339 -
Flags: feedback?(nsm.nikhil)
Comment on attachment 8487339 [details] [diff] [review]
update.patch
Review of attachment 8487339 [details] [diff] [review]:
-----------------------------------------------------------------
[[Update]] has changed to return the promise of [[Install]]. This could affect some of the parameters we need to pass to relevant methods and things. I'll take a look at this on Monday after going over some of those changes.
::: dom/workers/WorkerScope.cpp
@@ +575,5 @@
> + : mWorkerPrivate(aWorkerPrivate)
> + , mScope(aScope)
> + { }
> +
> + NS_IMETHODIMP Run() MOZ_OVERRIDE
Nit: Run on the next line.
Comment on attachment 8487339 [details] [diff] [review]
update.patch
Review of attachment 8487339 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/interfaces/base/nsIServiceWorkerManager.idl
@@ +85,5 @@
>
> + /*
> + * This implements the update algorithm.
> + */
> + void update(in DOMString aScope);
bump the UUID?
::: dom/workers/WorkerScope.cpp
@@ +566,5 @@
> +namespace {
> +
> +class UpdateRunnable MOZ_FINAL : public nsRunnable
> +{
> + WorkerPrivate* mWorkerPrivate;
never used
@@ +575,5 @@
> + : mWorkerPrivate(aWorkerPrivate)
> + , mScope(aScope)
> + { }
> +
> + NS_IMETHODIMP Run() MOZ_OVERRIDE
Nit: Run on the next line.
Attachment #8487339 -
Flags: feedback?(nsm.nikhil) → feedback+
Flags: needinfo?(nsm.nikhil)
Assignee | ||
Comment 5•10 years ago
|
||
I don't see any change in the spec about 'update'.
Attachment #8487339 -
Attachment is obsolete: true
Attachment #8498857 -
Flags: review?(nsm.nikhil)
Attachment #8498857 -
Flags: review?(nsm.nikhil) → review+
Assignee | ||
Comment 6•10 years ago
|
||
I'll land this patch to maple.
Comment 8•10 years ago
|
||
Assignee: nobody → amarchesini
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Updated•10 years ago
|
Keywords: dev-doc-needed
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•