Closed Bug 2091989 Opened 15 days ago Closed 11 days ago

browser_switchToTab_closes_newtab.js leaves history behind, making browser_switchToTab_fullUrl_repeatedKeydown.js time out in repeat jobs

Categories

(Firefox :: Address Bar, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

browser_switchToTab_closes_newtab.js visits dummy_page.html and never clears history. When it runs twice in a row, as the upcoming mochitest repeat jobs do, the next test, browser_switchToTab_fullUrl_repeatedKeydown.js, sees the twice-visited page rank above the switch-to-tab result. Its ArrowDown+Enter then loads that page in the current tab instead of switching, and it times out waiting for TabSelect/TabClose.

The fix is to clear history in a cleanup function of browser_switchToTab_closes_newtab.js.

The dummy_page.html visit it leaves behind outranks the switch-to-tab result in browser_switchToTab_fullUrl_repeatedKeydown.js once the test has run twice, so that test opens the history result and times out waiting for the tab switch.

Blocks: 2092566
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/171622d52ef9 https://hg.mozilla.org/integration/autoland/rev/b99df3041100 Clear history after browser_switchToTab_closes_newtab.js, r=urlbar-reviewers,Standard8.
Status: ASSIGNED → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [search][qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: