Closed Bug 1065366 Opened 10 years ago Closed 10 years ago

Implement ServiceWorkerGlobalScope update()

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: baku, Assigned: baku)

References

Details

(Keywords: dev-doc-needed)

Attachments

(1 file, 1 obsolete file)

No description provided.
Attached patch update.patch (obsolete) — Splinter Review
I want to add a mochitest for this.
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.
nsm news about this feedback/review?
Flags: needinfo?(nsm.nikhil)
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+
Attached patch update.patchSplinter Review
I don't see any change in the spec about 'update'.
Attachment #8487339 - Attachment is obsolete: true
Attachment #8498857 - Flags: review?(nsm.nikhil)
I'll land this patch to maple.
Assignee: nobody → amarchesini
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: