Closed Bug 2091378 Opened 18 days ago Closed 15 days ago

browser_onvisit_title_null_for_navigation.js fails when run twice in the same browser

Categories

(Toolkit :: Places, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

Details

Attachments

(1 external file)

toolkit/components/places/tests/browser/browser_onvisit_title_null_for_navigation.js fails on its second run in mochitest-browser-chrome-repeat jobs on all platforms: Should not have a title - "I am an empty page" == null, followed by a timeout.

The test never clears history. On a repeat run, empty_page.html is already stored with its title, so page-visited carries a lastKnownTitle and page-title-changed never fires.

Fix: clear history in a cleanup function, and remove the verify-standalone skip-if, since --verify now passes.

Test dashboard: https://tests.firefox.dev/test.html?test=toolkit/components/places/tests/browser/browser_onvisit_title_null_for_navigation.js

When the test runs a second time in the same browser, the page is already in history with its title, so page-visited carries a lastKnownTitle and page-title-changed never fires.

Attachment #9678804 - Attachment description: Bug 2091378 - Clear history after browser_onvisit_title_null_for_navigation.js, r=#places-reviewers. → Bug 2091378 - Clear history around browser_onvisit_title_null_for_navigation.js, r=#places-reviewers.
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1cad031c3034 https://hg.mozilla.org/integration/autoland/rev/01a915708c08 Clear history around browser_onvisit_title_null_for_navigation.js, r=places-reviewers,mak.
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: