Bug 1420485 - Fix an exception raised by browser_ext_tabs_insertCSS.js on injecting the same cached preloaded stylesheet twice. r=mixedpuppy, a=RyanVM
authorLuca Greco <lgreco@mozilla.com>
Fri, 24 Nov 2017 19:19:27 +0100
changeset 454715 dbc6d70aff8771875986647eaa24f35da0882061
parent 454714 24e9a78c27eb173d9eba4b0ab029b318a03bd97c
child 454716 a20b24dc938970597c9268b11e4cbc4f8ae3bcb2
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmixedpuppy, RyanVM
bugs1420485
milestone59.0
Bug 1420485 - Fix an exception raised by browser_ext_tabs_insertCSS.js on injecting the same cached preloaded stylesheet twice. r=mixedpuppy, a=RyanVM MozReview-Commit-ID: Jq2JdXwt7zC
browser/components/extensions/test/browser/browser_ext_tabs_insertCSS.js
--- a/browser/components/extensions/test/browser/browser_ext_tabs_insertCSS.js
+++ b/browser/components/extensions/test/browser/browser_ext_tabs_insertCSS.js
@@ -26,38 +26,38 @@ add_task(async function testExecuteScrip
         foreground: "rgb(0, 113, 4)",
         promise: () => {
           return browser.tabs.insertCSS({
             code: "* { background: rgb(42, 42, 42) }",
           });
         },
       },
       {
-        background: "rgb(42, 42, 42)",
+        background: "rgb(43, 43, 43)",
         foreground: "rgb(0, 113, 4)",
         promise: () => {
           return browser.tabs.insertCSS({
             code: "* { background: rgb(100, 100, 100) !important }",
             cssOrigin: "author",
           }).then(r => browser.tabs.insertCSS({
-            code: "* { background: rgb(42, 42, 42) !important }",
+            code: "* { background: rgb(43, 43, 43) !important }",
             cssOrigin: "author",
           }));
         },
       },
       {
         background: "rgb(100, 100, 100)",
         foreground: "rgb(0, 113, 4)",
         promise: () => {
           // User has higher importance
           return browser.tabs.insertCSS({
             code: "* { background: rgb(100, 100, 100) !important }",
             cssOrigin: "user",
           }).then(r => browser.tabs.insertCSS({
-            code: "* { background: rgb(42, 42, 42) !important }",
+            code: "* { background: rgb(44, 44, 44) !important }",
             cssOrigin: "author",
           }));
         },
       },
     ];
 
     function checkCSS() {
       let computedStyle = window.getComputedStyle(document.body);