Closed
Bug 1132395
Opened 10 years ago
Closed 10 years ago
URL.createObjectURL crashes in SharedWorkers in debug builds
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
References
Details
Attachments
(1 file, 1 obsolete file)
3.10 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
The issue here is that we assume that if the worker doesn't have a window, then it's a ChromeWorker. But it can be also a SharedWorker or ServiceWorker, so the assertion has to be removed.
Attachment #8563319 -
Flags: review?(bugs)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8563319 -
Attachment is obsolete: true
Attachment #8563319 -
Flags: review?(bugs)
Attachment #8563321 -
Flags: review?(bugs)
Comment 3•10 years ago
|
||
Comment on attachment 8563321 [details] [diff] [review]
url.patch
Curious, how do we revoke object urls in case of Shared/ServiceWorkers?
Attachment #8563321 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 4•10 years ago
|
||
We have a list of URLs in the WorkerPrivate object. When the worker is deleted, we remove those URLs. All of this happens in the main-thread:
Here the registration into the WorkerPrivate obj:
https://mxr.mozilla.org/mozilla-central/source/dom/workers/URL.cpp#156
Then here we remove those URLs in the main-thread:
https://mxr.mozilla.org/mozilla-central/source/dom/workers/WorkerPrivate.cpp#768
https://hg.mozilla.org/integration/mozilla-inbound/rev/6aad679bbbc0
Comment 5•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox38:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•