Closed Bug 1456981 Opened 6 years ago Closed 6 years ago

Use DOMMozPromiseRequestHolder in ServiceWorkerContainer

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

Attachments

(1 file)

In bug 1455695 I added a helper class to correctly disconnect MozPromise thenables when the global is disconnected.  We should use it in ServiceWorkerContainer.
Priority: -- → P2
Comment on attachment 8971021 [details] [diff] [review]
Use DOMMozPromiseRequestHolder in ServiceWorkerContainer. r=baku

This patch makes us use the DOMMozPromiseRequestHolder in the ServiceWorkerContainer methods.
Attachment #8971021 - Flags: review?(amarchesini)
Depends on: 1457187
No longer depends on: 1455695
Actually, we probably do need to wait for bug 1456466 so we can have the auto-suppressing CopyableErrorResult type.  Otherwise disconnecting a rejected MozPromise here will assert that the ErrorResult was not consumed.
Depends on: 1456466
No longer depends on: 1457187
Attachment #8971021 - Flags: review?(amarchesini) → review+
Pushed by bkelly@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/43385aef5932
Use DOMMozPromiseRequestHolder in ServiceWorkerContainer. r=baku
https://hg.mozilla.org/mozilla-central/rev/43385aef5932
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: