Closed
Bug 2092561
Opened 14 days ago
Closed 12 days ago
test_bug549682.xhtml fails when run twice in the same session: "Wrong message count - got 11, expected 10"
Categories
(Core :: DOM: Core & HTML, task)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
162 Branch
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
dom/base/test/chrome/file_bug549682.xhtml calls loadFrameScript on the global message manager with allowDelayedLoad = true and never removes the script. It stays registered for the rest of the session. When the test runs a second time (the upcoming mochitest-chrome repeat jobs), the <browser> it creates dynamically loads the script twice, and the Wrong message count check fails with 11 instead of 10.
The fix is to call removeDelayedFrameScript once the new <browser> has been checked, as the test already does for its toberemoved script.
| Assignee | ||
Comment 1•13 days ago
|
||
Otherwise it stays registered for the rest of the session, so when the test runs again the dynamically created browser receives two global-sync messages instead of one.
Pushed by fqueze@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/8808bb980c48
https://hg.mozilla.org/integration/autoland/rev/d958e744ceac
Remove the delayed global frame script added by test_bug549682.xhtml, r=dom-core-reviewers,avandolder.
Comment 3•12 days ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 12 days ago
status-firefox162:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•