зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1236194. Use a string rather than URL interface to prevent DNS lookups. r=mfinkle
This commit is contained in:
Родитель
dde4b8dc8e
Коммит
c0da37b8f5
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче