Closed
Bug 766792
Opened 12 years ago
Closed 12 years ago
"ASSERTION: Somehow there's stuff in the op queue" in nsHtml5TreeOpExecutor::~nsHtml5TreeOpExecutor
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: smaug)
Details
(Keywords: assertion, testcase)
Attachments
(3 files, 1 obsolete file)
With: user_pref("browser.tabs.loadDivertedInBackground", true); user_pref("dom.disable_open_during_load", false); user_pref("nglayout.debug.disable_xul_cache", true); user_pref("security.fileuri.strict_origin_policy", false); The testcase triggers: ###!!! ASSERTION: Somehow there's stuff in the op queue.: 'mOpQueue.IsEmpty()', file parser/html/nsHtml5TreeOpExecutor.cpp, line 80 Related to bug 734015?
Reporter | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
(In reply to Jesse Ruderman from comment #0) > Related to bug 734015? Quite likely, actually. Either we could just delete the assertion, which could mask other bugs or we could explicitly clear the queue before the assertion if the executor has been backgrounded.
Assignee | ||
Comment 3•12 years ago
|
||
I can understand that bug 734015 ca make such assertion easier to fire, but how could it cause it?
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → bugs
Assignee | ||
Comment 4•12 years ago
|
||
I'll investigate this.
Comment 5•12 years ago
|
||
My expectation is that what happens is this: previously, the parser thread probably scheduled to rambles on the main thread: first a runnable that caused a flush and then a runnable that caused the executor to be released. Now the flash gets deferred, so the queue won't be empty by the time the executor is released. This is harmless, if this only happens when the parser has been terminated anyway, which I expect to be the case.
Assignee | ||
Comment 6•12 years ago
|
||
Could we do this. Other option is to flush in nsHtml5ExecutorFlusher dtor which ends up to if (!mParser) { mOpQueue.Clear(); }
Attachment #635265 -
Flags: review?(hsivonen)
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #635265 -
Attachment is obsolete: true
Attachment #635265 -
Flags: review?(hsivonen)
Attachment #635275 -
Flags: review?(hsivonen)
Comment 8•12 years ago
|
||
Comment on attachment 635275 [details] [diff] [review] patch Thanks.
Attachment #635275 -
Flags: review?(hsivonen) → review+
Assignee | ||
Comment 9•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c83282305cb9
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•