Bug 1236194. Use a string rather than URL interface to prevent DNS lookups. r=mfinkle

This commit is contained in:
Mike Taylor 2016-01-04 20:07:42 -06:00
Родитель dde4b8dc8e
Коммит c0da37b8f5
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -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);
}
}
};