Closed Bug 2092294 Opened 14 days ago Closed 10 days ago

browser_aboutthirdparty.js fails when run twice in the same browser session

Categories

(Firefox :: Launcher Process, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

When toolkit/components/aboutthirdparty/tests/browser/browser_aboutthirdparty.js runs a second time in the same browser (mochitest-browser-chrome-repeat jobs), it fails with The module was loaded once. - 2 == 1 and The event's duration is the same as the average as there is only one event.

about:third-party intentionally lists every module load event of the session (INCLUDE_OLD_LOADEVENTS), and each run of the test loads TestShellEx.dll once through loadModuleForTesting, so the second run sees two events. The test should not assume it is the first load of the session.

The test assumed it was the first load of TestShellEx.dll in the session.

Blocks: 2092566
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/444ee6cf408c https://hg.mozilla.org/integration/autoland/rev/e186043bd0be Make browser_aboutthirdparty.js pass when run again in the same session, r=firefox-desktop-core-reviewers ,Gijs.
Severity: -- → S4
Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: