From c0da37b8f5209a0ace1f0f5ac170613cd4b92fa2 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 4 Jan 2016 20:07:42 -0600 Subject: [PATCH] Bug 1236194. Use a string rather than URL interface to prevent DNS lookups. r=mfinkle --- mobile/android/chrome/content/WebcompatReporter.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mobile/android/chrome/content/WebcompatReporter.js b/mobile/android/chrome/content/WebcompatReporter.js index b3e4ac27e54a..b7ceda6099ba 100644 --- a/mobile/android/chrome/content/WebcompatReporter.js +++ b/mobile/android/chrome/content/WebcompatReporter.js @@ -87,13 +87,11 @@ var WebcompatReporter = { }, reportIssue: function(url) { - let webcompatURL = new URL("https://webcompat.com/"); - webcompatURL.searchParams.append("open", "1"); - webcompatURL.searchParams.append("url", url); + let webcompatURL = `https://webcompat.com/?open=1&url=${url}`; if (PrivateBrowsingUtils.isBrowserPrivate(BrowserApp.selectedTab.browser)) { - BrowserApp.addTab(webcompatURL.href, {parentId: BrowserApp.selectedTab.id, isPrivate: true}); + BrowserApp.addTab(webcompatURL, {parentId: BrowserApp.selectedTab.id, isPrivate: true}); } else { - BrowserApp.addTab(webcompatURL.href); + BrowserApp.addTab(webcompatURL); } } };