Closed
Bug 465141
Opened 17 years ago
Closed 17 years ago
Workers: Implement expression flavor of timeouts, use nsAutoJSValHolder
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b3
People
(Reporter: bent.mozilla, Assigned: bent.mozilla)
Details
(Keywords: fixed1.9.1)
Attachments
(3 files)
10.02 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
796 bytes,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
996 bytes,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
Using expressions in timeouts is currently unimplemented (oops!) so here's a patch to do that. While I was here I yanked the manual rooting in favor of the nsAutoJSValHolder.
Attachment #348403 -
Flags: superreview?(jst)
Attachment #348403 -
Flags: review?(jst)
Comment 1•17 years ago
|
||
Comment on attachment 348403 [details] [diff] [review]
Patch, v1
- In nsDOMWorkerTimeout::ExpressionCallback::Run():
+ JSString* expression = JS_ValueToString(aCx, mExpression);
+ NS_ASSERTION(expression, "This shouldn't fail, verified in constructor!");
JS_ValueToString() can fail here due to OOM even if it didn't in the constructor, so you probably want to check here as well.
And this could use a trivial mochitest to make sure the expression flavor of timeouts do indeed work.
r+sr=jst with that.
Attachment #348403 -
Flags: superreview?(jst)
Attachment #348403 -
Flags: superreview+
Attachment #348403 -
Flags: review?(jst)
Attachment #348403 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Attachment #348403 -
Flags: approval1.9.1?
Comment 2•17 years ago
|
||
Making this a blocker, w/o this we only have half of an implementation of timeouts in workers, which would be a really bad inconsistency for developers.
Flags: blocking1.9.1+
Priority: -- → P2
Assignee | ||
Updated•17 years ago
|
Attachment #348403 -
Flags: approval1.9.1?
Comment 3•17 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.9.1 → mozilla1.9.1b3
Comment 4•17 years ago
|
||
I had to land this as bustage fix. this patch made everything bug os x go red (I didn't want to backout all of bent's patches in the bundle if I could avoid it.
Attachment #350388 -
Flags: superreview?(jst)
Attachment #350388 -
Flags: review?(jst)
Comment 5•17 years ago
|
||
Reopening to track the bustage fix. Smaug looked at this on irc and though it looked OK. It built on OS X before I pushed.
http://hg.mozilla.org/mozilla-central/rev/2505e91f4141
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 6•17 years ago
|
||
Applies on top of attachment 350388 [details] [diff] [review], just adds OOM check. Thanks sdwilsh!
Attachment #350867 -
Flags: superreview?(jst)
Attachment #350867 -
Flags: review?(jst)
Updated•17 years ago
|
Attachment #350867 -
Flags: superreview?(jst)
Attachment #350867 -
Flags: superreview+
Attachment #350867 -
Flags: review?(jst)
Attachment #350867 -
Flags: review+
Updated•17 years ago
|
Attachment #350388 -
Flags: superreview?(jst)
Attachment #350388 -
Flags: superreview+
Attachment #350388 -
Flags: review?(jst)
Attachment #350388 -
Flags: review+
Assignee | ||
Comment 7•17 years ago
|
||
Pushed changeset 411f1455e323 to mozilla-central.
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•17 years ago
|
||
Pushed changeset fa864682e05a to mozilla-1.9.1.
Keywords: fixed1.9.1
Updated•12 years ago
|
Component: DOM: Mozilla Extensions → DOM
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
•