Closed Bug 1460635 Opened 6 years ago Closed 6 years ago

change ServiceWorkerInfo not to directly reference ServiceWorker binding object

Categories

(Core :: DOM: Service Workers, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently the ServiceWorker::Inner interface is implemented by ServiceWorkerInfo and the ServiceWorkerInfo directly references the ServiceWorker binding object.  This prevents me from implementing an alternative IPC inner object that also interacts with ServiceWorkerInfo in bug 1459209.  I need to create a ServiceWorkerInfo::Listener interface so it doesn't directly reference the binding type.
Priority: -- → P2
Depends on: 1456986
Comment on attachment 8974800 [details] [diff] [review]
Add ServiceWorkerImpl class to isolate ServiceWorkerInfo from the binding layer. r=baku

Andrea, this interposes an Impl class between the binding ServiceWorker and the internal ServiceWorkerInfo.  There was already the ServiceWorker::Inner abstract interface, but ServiceWorkerInfo was referencing ServiceWorker directly.

This patch adds a ServiceWorkerInfo::Listener and then adds ServiceWorkerImpl as an implementation of both interfaces.
Attachment #8974800 - Flags: review?(amarchesini)
Attachment #8974800 - Flags: review?(amarchesini) → review+
I relanded bug 1456986 with what I hope is a fix for its previous crashes.  Lets see if that is stable before landing this.
Pushed by bkelly@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a256429fb18c
Add ServiceWorkerImpl class to isolate ServiceWorkerInfo from the binding layer. r=baku
https://hg.mozilla.org/mozilla-central/rev/a256429fb18c
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: