"waitForCurrentWindowGlobal()" should check for discarded browser to not unnecessarily wait for the window global
Categories
(Remote Protocol :: Agent, defect, P3)
Tracking
(firefox148 fixed)
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
(Depends on 1 open bug)
Details
(Whiteboard: [webdriver:m18], [wptsync upstream][webdriver:relnote])
Attachments
(2 files)
As discovered by reviewing https://phabricator.services.mozilla.com/D230661 I noticed that we unnecessarily wait extra 100ms in waitForCurrentWindowGlobal() if the actual window was already closed. This can hopefully be easily fixed by checking if the browsing context is discarded - but note that this flag can be set to true as well if there is a cross-origin navigation. So we need to be careful.
When we can remove the 100ms delay we should also update the BiDi tests as added by https://phabricator.services.mozilla.com/D230663 so that they no longer have to delay by 250ms but just 100ms.
| Assignee | ||
Comment 1•1 year ago
|
||
Due to the risk of regressions it would be good to wait landing any patch until the next cycle early next year with cycle.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
I just stumbled over the 250ms timeout in the perform actions wdspec tests while doing a review and thought about to give it a try. Given that I cannot reproduce locally I pushed a try build to get some debug information. Lets see if it still reproduces with MacOS 14.70.
| Assignee | ||
Updated•11 months ago
|
Updated•8 months ago
|
Updated•5 months ago
|
| Assignee | ||
Comment 3•2 months ago
|
||
I've reduced the pause from 250ms to just 100ms but I'm not able to get into a state when the currentWindowGlobal is not defined. As such I also cannot reproduce the extra delay locally. As such I've pushed a try build with a debug line to see if we actually hit this case and if yes which test is triggering it:
https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=170339
| Assignee | ||
Comment 4•2 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Comment 5•2 months ago
|
||
Comment 8•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/998ca8902bdf
https://hg.mozilla.org/mozilla-central/rev/fb5f293bbbbb
| Assignee | ||
Updated•18 days ago
|
Description
•