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)

task

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.

Blocks: 2092575

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.
Status: ASSIGNED → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: