Open Bug 1702637 Opened 4 years ago Updated 8 months ago

BrowserTestUtils.switchTab should not wait for an implied timer from AsyncTabSwitcher

Categories

(Firefox :: General, enhancement)

enhancement

Tracking

()

People

(Reporter: florian, Unassigned)

References

Details

Attachments

(1 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: nobody → florian
Status: NEW → ASSIGNED
See Also: → 1745267

Sorry, there was a problem with the detection of inactive users. I'm reverting the change.

Assignee: nobody → florian
Status: NEW → ASSIGNED

Resetting the assignee as I'm not actively working on this. But I still think this is worth fixing!

Assignee: florian → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: