Closed Bug 1377358 Opened 9 years ago Closed 9 years ago

browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js fails when Activity Stream is enabled

Categories

(Firefox Graveyard :: Activity Streams: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox56 fixed)

RESOLVED FIXED
Firefox 56
Tracking Status
firefox56 --- fixed

People

(Reporter: ursula, Assigned: ursula)

Details

Attachments

(2 files)

We're now loading about:newtab in the content process when activity stream is enabled, and this causes some raciness to happen in this test. We'll check if the url is about:newtab and return early out of the callback to fix this.
Assignee: nobody → usarracini
Comment on attachment 8882462 [details] Bug 1377358 - browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js fails when Activity Stream is enabled https://reviewboard.mozilla.org/r/153590/#review159034 ::: browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js:162 (Diff revision 1) > - browser.test.log("onUpdate: " + JSON.stringify(changeInfo)); > if ("url" in changeInfo) { > + // When activity stream is enabled, about:newtab runs in the content process > + // which causes some timing issues for onUpdated. So if we encounter > + // about:newtab, we return early out of the callback. > + if ("about:newtab" === changeInfo.url) { We should still get the correct onUpdated event for about:blank after this, so we just need to return early from the listener, but not remove the listener or end the test.
Attachment #8882462 - Flags: review?(kmaglione+bmo)
Comment on attachment 8882844 [details] Bug 1377358 - browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js fails when Activity Stream is enabled. https://reviewboard.mozilla.org/r/153908/#review159036
Attachment #8882844 - Flags: review?(kmaglione+bmo) → review+
Pushed by edilee@gmail.com: https://hg.mozilla.org/integration/autoland/rev/39754f1db01c browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js fails when Activity Stream is enabled. r=kmag
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: