Closed Bug 1722477 Opened 3 years ago Closed 3 years ago

browser_theme_switching.js fails with server targets

Categories

(DevTools :: Framework, defect)

defect

Tracking

(Fission Milestone:MVP, firefox92 fixed)

RESOLVED FIXED
92 Branch
Fission Milestone MVP
Tracking Status
firefox92 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file)

This test is trying to open a toolbox against the default blank tab opened by default in mochitests.
It appears that this tab is really special and is stuck on the initial about:blank document.
But we explicitely ignore this document and always expect another document will be loaded right after. This leads to the toolbox never opening as we are waiting for the final document to be loaded.

I'm going to make this test use a dedicated test tab, which wouldn't have this issue.
I wasn't able to reproduce this behavior, even when setting about:blank as default home tab. So that's probable specific to mochitests.
But it would be nice to figure out why these tabs are special and ensure this never happen in production.

Mochitest's default tab is very special.
Its WindowGlobal is stuck on the initial about:blank document.
This document should be transient and we should have another final about:blank document,
even if we expect about:blank document at the end.
This isn't reproducible with a regular firefox run,
but we should investigate this as it may bit us in some other random tests.

Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/37ff5677cdf0
[devtools] Fix browser_theme_switching.js with server targets. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Fission Milestone: --- → MVP
Whiteboard: dt-fission-m3-mvp
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: