Bug 1498687 - Make webcompat-reporter WebExtension load about:blank instead of about:newtab in the reporter tab. r=twisniewski
☠☠ backed out by 9626e5c3b4a4 ☠ ☠
authorMike Conley <mconley@mozilla.com>
Fri, 12 Oct 2018 19:57:49 +0000
changeset 489393 620be2ce2c8c8f346f4fa30a167e7c6afd995fd1
parent 489392 d0b593b6d065227a080fc483eb73919dc020a2de
child 489394 a0d97137f1d6686476466a57e0fcba6451663a09
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerstwisniewski
bugs1498687
milestone64.0a1
Bug 1498687 - Make webcompat-reporter WebExtension load about:blank instead of about:newtab in the reporter tab. r=twisniewski Differential Revision: https://phabricator.services.mozilla.com/D8596
browser/extensions/webcompat-reporter/background.js
--- a/browser/extensions/webcompat-reporter/background.js
+++ b/browser/extensions/webcompat-reporter/background.js
@@ -104,17 +104,17 @@ async function openWebCompatTab(compatIn
   };
   if (details["gfx.webrender.all"] || details["gfx.webrender.enabled"]) {
     params.label.push("type-webrender-enabled");
   }
   if (compatInfo.hasTrackingContentBlocked) {
     params.label.push(`type-tracking-protection-${compatInfo.blockList}`);
   }
 
-  const tab = await browser.tabs.create({});
+  const tab = await browser.tabs.create({url: "about:blank"});
   const json = stripNonASCIIChars(JSON.stringify(params));
   await browser.tabExtras.loadURIWithPostData(tab.id, url.href, json,
                                               "application/json");
   await browser.tabs.executeScript(tab.id, {
     runAt: "document_end",
     code: `(function() {
       async function sendScreenshot(dataURI) {
         const res = await fetch(dataURI);