Bug 1287007 - Fix timing issue in browser_ext_tabs_onUpdated.js
Reload about:blank tab after opening it and registering the
`tabs.onUpdated` event. This is needed because about:blank loads very
fast, before the callback of `tabs.create` is invoked. This effect is
amplified by the fact that the APIs are now proxied.
MozReview-Commit-ID: DgPtIqHSUDx
--- a/browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js
+++ b/browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js
@@ -185,13 +185,14 @@ add_task(function* test_without_tabs_per
if (changeInfo.status == "complete") {
browser.tabs.onUpdated.removeListener(onUpdated);
browser.tabs.remove(tabId);
browser.test.notifyPass("finish");
}
}
});
+ browser.tabs.reload(tab.id);
});
}, false /* withPermissions */);
});
add_task(forceGC);