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)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9.1b3

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

Details

(Keywords: fixed1.9.1)

Attachments

(3 files)

Attached patch Patch, v1Splinter 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 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+
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
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.9.1 → mozilla1.9.1b3
Attached patch bustage fixSplinter Review
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)
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 → ---
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)
Attachment #350867 - Flags: superreview?(jst)
Attachment #350867 - Flags: superreview+
Attachment #350867 - Flags: review?(jst)
Attachment #350867 - Flags: review+
Attachment #350388 - Flags: superreview?(jst)
Attachment #350388 - Flags: superreview+
Attachment #350388 - Flags: review?(jst)
Attachment #350388 - Flags: review+
Pushed changeset 411f1455e323 to mozilla-central.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Pushed changeset fa864682e05a to mozilla-1.9.1.
Keywords: fixed1.9.1
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: