BrowserTestUtils.switchTab should not wait for an implied timer from AsyncTabSwitcher
Categories
(Firefox :: General, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox141 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
(Depends on 2 open bugs, Blocks 1 open bug, Regressed 1 open bug)
Details
Attachments
(3 files, 1 obsolete file)
BrowserTestUtils.switchTab waits for the TabSwitchDone event from AsyncTabSwitcher, but that event happens after a 300ms timer.
On debug builds that doesn't change the timing much, but on optimized builds, that makes the tests run significantly slower than they need to.
I'm going to attach a WIP patch, but if we want to go ahead with it I'll have lots of tests to debug, as my try run is currently pretty orange: https://treeherder.mozilla.org/jobs?repo=try&revision=d44cba986ec22d6e32218c2fd5573bda5151bad0
| Assignee | ||
Comment 1•5 years ago
|
||
Updated•5 years ago
|
| Comment hidden (off-topic) |
Comment 3•3 years ago
|
||
Sorry, there was a problem with the detection of inactive users. I'm reverting the change.
| Assignee | ||
Comment 4•2 years ago
|
||
Resetting the assignee as I'm not actively working on this. But I still think this is worth fixing!
Updated•1 year ago
|
| Assignee | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 6•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 7•1 year ago
|
||
Comment 9•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/83d172a8677f
https://hg.mozilla.org/mozilla-central/rev/7406ff85a2b4
https://hg.mozilla.org/mozilla-central/rev/8ac3e54795a2
Updated•1 year ago
|
Description
•