Closed Bug 2092071 Opened 13 days ago Closed 12 days ago

browser_bug420605.js and browser_bug503832.js fail when run twice in the same profile

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

docshell/test/browser/browser_bug420605.js and docshell/test/browser/browser_bug503832.js both start by asserting that their test page and its #firefox fragment URL are not in history yet. They then visit both URLs but never remove the visits. So a second run in the same profile fails with "The test page must not have been visited already.", and this will show in the upcoming mochitest-repeat jobs. This is also why both tests were skipped on verify-standalone.

The fix clears history in a cleanup function in both tests and removes the verify-standalone skip-ifs.

Both tests assert that their pages are not in history yet, but left the visits they recorded behind, so a second run in the same profile failed. This also lets them run in verify-standalone again.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fc496e6612c5 https://hg.mozilla.org/integration/autoland/rev/1eea795633b3 Clear history after browser_bug420605.js and browser_bug503832.js so they pass when run again, r=dom-core-reviewers,smaug.
Blocks: 2092566
Status: ASSIGNED → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: