Closed Bug 1570330 Opened 5 years ago Closed 5 years ago

Make test_doorhanger_homepage_button (in browser_ext_chrome_settings_overrides_home.js) wait on page load before moving to next task

Categories

(WebExtensions :: Frontend, defect, P2)

defect

Tracking

(Fission Milestone:M4, firefox-esr60 unaffected, firefox-esr68 fixed, firefox68 wontfix, firefox69 wontfix, firefox70 fixed)

RESOLVED FIXED
mozilla70
Fission Milestone M4
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- fixed
firefox68 --- wontfix
firefox69 --- wontfix
firefox70 --- fixed

People

(Reporter: peterv, Assigned: peterv)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

We're running into a test failure in browser/components/extensions/test/browser/browser_ext_chrome_settings_overrides_home.js with session history running in the parent.
I've debugged it, what looks to be happening is that in test_doorhanger_homepage_button the preference observer for the homepage pref in browser/components/extensions/parent/ext-chrome-settings-overrides.js (in beforeDisableAddon in the lazy getter for homepagePopup) doesn't necessarily finish before the test moves to the next task (test_doorhanger_new_window). The tests does wait for the homepage pref to be changed (await prefPromise), but that doesn't mean the observer in ext-chrome-settings-overrides.js is done. The observer in ext-chrome-settings-overrides.js ends up doing something to the popup, and confuses the next test (test_doorhanger_new_window).

Session history running in the parent makes the test fail, because it adds a bunch of sync IPC that ends up delaying the pref observer running enough to trigger this. But it seems there might be other ways to trigger it. Making the test wait for the new homepage to be loaded seems to fix the test.

Blocks: 1567283
Fission Milestone: --- → M4
Priority: -- → P2
Assignee: nobody → peterv
Status: NEW → ASSIGNED
Version: unspecified → other
Pushed by pvanderbeken@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d02248cec4c0
Make test_doorhanger_homepage_button (in browser_ext_chrome_settings_overrides_home.js) wait on page load before moving to next task. r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70

Does this issue require manual QA? If so, please add the "qe verify +" flag and the steps to reproduce.
If it does not, then please update it using the "qe verify -" flag.
Thank you

Flags: needinfo?(peterv)
Flags: qe-verify-
Flags: needinfo?(peterv)
Flags: in-testsuite+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: