Closed Bug 1724186 Opened 3 years ago Closed 3 years ago

Wait for presShell in devtools addTab test helper

Categories

(DevTools :: General, task, P3)

task

Tracking

(firefox93 fixed)

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

Attachments

(2 files)

In Bug 1722136 we are waiting for a valid presShell to avoid timeouts in a few tests which attempt to create popups early after creating a document.

The goal of this bug is to also apply this to our common addTab helper, when waitForLoad is not explicitly set to false: https://searchfox.org/mozilla-central/rev/00977c4e37865a92f1c15572ae4aea90e934b25b/devtools/client/shared/test/shared-head.js#413-414

A quick try push seems to show that we get timeouts however, so we should investigate this in more details.

https://treeherder.mozilla.org/jobs?repo=try&selectedTaskRun=DJSfq-lrRV--Wlp0JSr_pw.0&revision=d80b3ab840fb7a67a5e637dea1b48f7984ad52f2

Blocks: 1713915

The failures when using waitForPresShell in addTab seem easy to fix.
Let's see if this would help the current situation with devtools intermittents.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

It seems to at least fix the timeout on browser_rules_content_02.js https://treeherder.mozilla.org/jobs?repo=try&revision=56f002edac66ca6bdad03988ffe9324cd599839f (0 occurrence).

I was hoping for more impact on other existing tests but we still seem plagued by many other intermittents which have nothing to do with missing presShells.

Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/395edf65fd33
[devtools] Rely on promise instead of message in sw push mochitests r=Honza
https://hg.mozilla.org/integration/autoland/rev/b04e09887934
[devtools] Wait for presShell in all devtools test helper addTab r=Honza

This may be causing failures in devtools/client/framework/test/browser_enable_devtools_popup_new_user.js

I guess that has been filed as bug 1724207.

(In reply to mac198442 from comment #6)

This may be causing failures in devtools/client/framework/test/browser_enable_devtools_popup_new_user.js

No it shouldn't, the fix was just moved from browser_enable_devtools_popup_new_user.js to a shared helper which is also used by browser_enable_devtools_popup_new_user.js.

The failures logged in Bug 1724207 are only test-verify, which is not compatible with this test.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: