The default bug view has changed. See this FAQ.

"ASSERTION: rescheduling interval timeout without a timer" with setInterval, sync XHR, mozRequestAnimationFrame

RESOLVED FIXED in mozilla16

Status

()

Core
DOM
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Jesse Ruderman, Assigned: froydnj)

Tracking

(Blocks: 1 bug, {assertion, testcase})

Trunk
mozilla16
assertion, testcase
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

5 years ago
Created attachment 631715 [details]
testcase

###!!! ASSERTION: rescheduling interval timeout without a timer!: 'timeout->mTimer', file dom/base/nsGlobalWindow.cpp, line 9337

This assertion was added in bug 748464.
(Reporter)

Comment 1

5 years ago
Created attachment 631716 [details]
stack trace
Nathan, can you take a look, please?  Note the sync XHR spinning the event loop in there...
Assignee: nobody → nfroyd
Depends on: 748464
(Assignee)

Comment 3

5 years ago
Ah, yes, in RescheduleTimeout, we say:

+  if (!aTimeout->mTimer) {
+    NS_ASSERTION(IsFrozen() || mTimeoutsSuspendDepth,
+                 "How'd our timer end up null if we're not frozen or "
+                 "suspended?");
+
+    aTimeout->mTimeRemaining = delay;
+    return true;
+  }

which will wind up hitting that added assertion.  I'll prepare a patch to remove it.
(Assignee)

Comment 4

5 years ago
Created attachment 632813 [details] [diff] [review]
patch

Should be easy enough to review!
Attachment #632813 - Flags: review?(bzbarsky)
Comment on attachment 632813 [details] [diff] [review]
patch

r=me
Attachment #632813 - Flags: review?(bzbarsky) → review+
(Assignee)

Comment 6

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/eaab1f7507f7
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86_64 → All
Target Milestone: --- → mozilla16
https://hg.mozilla.org/mozilla-central/rev/eaab1f7507f7
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.