Closed
Bug 1402314
Opened 7 years ago
Closed 7 years ago
easy to leak a window with navigator.serviceWorker.ready promise
Categories
(Core :: DOM: Service Workers, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bkelly, Assigned: bkelly)
References
(Blocks 1 open bug)
Details
(Whiteboard: [memShrink])
Attachments
(2 files, 1 obsolete file)
1.94 KB,
patch
|
asuth
:
review+
|
Details | Diff | Splinter Review |
4.20 KB,
patch
|
Details | Diff | Splinter Review |
This test site will end up leaking a window: https://sw-never-ready.glitch.me/ It basically just blocking on navigator.serviceWorker.ready in a situation where a service worker never becomes active for the scope.
Assignee | ||
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Attachment #8911239 -
Flags: review+
Assignee | ||
Comment 2•7 years ago
|
||
Actually, I can't reproduce this now. Looking at the code it does clean up the ready promise when the window is closed: https://searchfox.org/mozilla-central/source/dom/workers/ServiceWorkerContainer.cpp#73
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Comment 3•7 years ago
|
||
For posterity, here are the tests I tried to write before realizing this WORKSFORME.
Assignee | ||
Comment 4•7 years ago
|
||
Attachment #8911306 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•