Closed Bug 2092322 Opened 13 days ago Closed 13 days ago

browser_necko_l10n.js reads the status panel before it shows the load's status

Categories

(Core :: Networking, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

netwerk/test/browser/browser_necko_l10n.js checks statuspanel-label as soon as its own progress listener sees Waiting for example.com…. StatusPanel only shows status messages after XULBrowserWindow has seen STATE_START, which comes from the content process. The parent's DNS and connect status messages can arrive before it. The panel is then still inactive and shows the previous load's label, so the test fails with got Connecting to example.com… (or an empty label).

This shows up mostly in the new mochitest-repeat jobs, on the test's second run.

The fix waits for the panel to become active before checking its label.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/54b47c7885bf https://hg.mozilla.org/integration/autoland/rev/475ca9e6ac97 Wait for the status panel to show the load's status in browser_necko_l10n.js, r=necko-reviewers,valentin.
Blocks: 2092566
Status: ASSIGNED → RESOLVED
Closed: 13 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: