Closed Bug 1279453 Opened 8 years ago Closed 8 years ago

Remove separate worker binding for ServiceWorkerRegistration API

Categories

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

49 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

Attachments

(1 file)

Attached patch swr.patchSplinter Review
This code moves code around, mainly. Instead having 1 ServiceWorkerRegistrationBase class and then 2 webIDL classes (ServiceWorkerRegistrationMainThread and ServiceWorkerRegistrationWorkerThread), with this patch we have:

. ServiceWorkerRegistration that is the webIDL class.
. ServiceWorkerRegistrationMainThread, not directly exposed.
. ServiceWorkerRegistrationWorkerThread, not directly exposed.
Attachment #8761974 - Flags: review?(bkelly)
Comment on attachment 8761974 [details] [diff] [review]
swr.patch

Review of attachment 8761974 [details] [diff] [review]:
-----------------------------------------------------------------

Nice cleanup.  Thanks!

::: dom/workers/ServiceWorkerRegistration.cpp
@@ +75,5 @@
> +
> +class ServiceWorkerRegistrationMainThread final : public ServiceWorkerRegistration,
> +                                                  public ServiceWorkerRegistrationListener
> +{
> +  friend nsPIDOMWindowInner;

Why do we need this friend declaration?
Attachment #8761974 - Flags: review?(bkelly) → review+
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/559f31d84a6e
Remove separate worker binding for ServiceWorkerRegistration API, r=bkelly
https://hg.mozilla.org/mozilla-central/rev/559f31d84a6e
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
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: