Bug 1555012 - Skip about:addons in browser_aboutURLs.js r=rpl a=jcristau
authorRob Wu <rob@robwu.nl>
Wed, 12 Jun 2019 10:45:01 +0000
changeset 536919 fa39f1f84dbd753fb836bd12063f744912ef5351
parent 536918 0f9cc16a870b5ae16f88139e069c8ec609b18f44
child 536920 f2fce0eb3d26339f6f40aae062b66202765c2d68
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrpl, jcristau
Bug 1555012 - Skip about:addons in browser_aboutURLs.js r=rpl a=jcristau Upon enabling the HTML about:addons discovery pane, about:addons page start to send a fetch request from the default user context, instead of a content load request with the tab's user context. This mismatch in userContextId triggers the following debug assertion: https://searchfox.org/mozilla-central/rev/c606cdd6d014f/netwerk/base/nsNetUtil.cpp#3021-3024 This assertion can be ignored, because the request has no credentials, so its context should not matter. Differential Revision: https://phabricator.services.mozilla.com/D34688
--- a/browser/components/contextualidentity/test/browser/browser_aboutURLs.js
+++ b/browser/components/contextualidentity/test/browser/browser_aboutURLs.js
@@ -8,16 +8,21 @@ add_task(async function() {
   await SpecialPowers.pushPrefEnv({"set": [
     ["signon.management.page.enabled", true],
   let aboutURLs = [];
   // List of about: URLs that may cause problem, so we skip them in this test.
   let skipURLs = [
+    // about:addons triggers an assertion in NS_CompareLoadInfoAndLoadContext:
+    // "The value of mUserContextId in the loadContext and in the loadInfo are not the same"
+    // This is due to a fetch request that has the default user context. Since
+    // the fetch request omits credentials, the user context doesn't matter.
+    "addons",
     // about:credits will initiate network request.
     // about:telemetry will fetch Telemetry asynchronously and takes longer,
     // so we skip this for now.
     // about:downloads causes a shutdown leak with stylo-chrome. bug 1419943.
     // about:debugging requires specific wait code for internal pending RDP requests.