зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1069640 - Prompt for input when users turn off e10s in Nightly. r=billm
This commit is contained in:
Родитель
a6b445bb97
Коммит
74080ca6cb
|
@ -2276,6 +2276,25 @@ let E10SUINotification = {
|
|||
this._showE10sAccessibilityWarning();
|
||||
}
|
||||
} else {
|
||||
let displayFeedbackRequest = false;
|
||||
try {
|
||||
displayFeedbackRequest = Services.prefs.getBoolPref("browser.requestE10sFeedback");
|
||||
} catch (e) {}
|
||||
|
||||
if (displayFeedbackRequest) {
|
||||
let win = RecentWindow.getMostRecentBrowserWindow();
|
||||
if (!win) {
|
||||
return;
|
||||
}
|
||||
|
||||
Services.prefs.clearUserPref("browser.requestE10sFeedback");
|
||||
let url = Services.urlFormatter.formatURLPref("app.feedback.baseURL");
|
||||
url += "?utm_source=tab&utm_campaign=e10sfeedback";
|
||||
|
||||
win.openUILinkIn(url, "tab");
|
||||
return;
|
||||
}
|
||||
|
||||
let e10sPromptShownCount = 0;
|
||||
try {
|
||||
e10sPromptShownCount = Services.prefs.getIntPref("browser.displayedE10SPrompt");
|
||||
|
|
|
@ -141,6 +141,10 @@ var gMainPane = {
|
|||
for (let prefToChange of prefsToChange) {
|
||||
prefToChange.value = e10sCheckbox.checked;
|
||||
}
|
||||
if (!e10sCheckbox.checked) {
|
||||
Services.prefs.setBoolPref("browser.requestE10sFeedback", true);
|
||||
Services.prompt.alert(window, brandName, "After restart, a tab will open to input.mozilla.org where you can provide us feedback about your e10s experience.");
|
||||
}
|
||||
Services.startup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче