Closed
Bug 1251275
Opened 9 years ago
Closed 9 years ago
Use AutoEntryScript for firing setTimeout/setInterval callbacks on workers
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
(Whiteboard: btpp-active)
Attachments
(2 files, 2 obsolete files)
3.81 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
2.97 KB,
patch
|
Details | Diff | Splinter Review |
Currently we manually report exceptions here. We do have an AutoEntryScript set up already from Run (the caller of TimerRunnable::WorkerRun), but we really want a separate one for each timeout callback we run. This also allows us to provide a better execution reason string.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8723616 -
Flags: review?(khuey)
Assignee | ||
Comment 2•9 years ago
|
||
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8723702 -
Flags: review?(khuey)
Assignee | ||
Updated•9 years ago
|
Attachment #8723616 -
Attachment is obsolete: true
Attachment #8723616 -
Flags: review?(khuey)
Assignee | ||
Comment 4•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8723617 -
Attachment is obsolete: true
Comment on attachment 8723702 [details] [diff] [review]
Patch, but with the obvious TakeOwnershipOfErrorReporting() we need
Review of attachment 8723702 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/workers/WorkerPrivate.cpp
@@ +5963,5 @@
> + reason = "setInterval handler";
> + } else {
> + reason = "setTimeout handler";
> + }
> + { // scope for the AutoEntryScript, so it comes off the stack before we do
nit: \n between the two scopes
Attachment #8723702 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 6•9 years ago
|
||
> nit: \n between the two scopes
Done.
Updated•9 years ago
|
Whiteboard: btpp-active
Comment 8•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•