Bug 1366808: Fix Eslint failures on inbound. CLOSED TREE r=me
☠☠ backed out by 5a326d6404a7 ☠ ☠
authorStephen A Pohl <spohl.mozilla.bugs@gmail.com>
Mon, 09 Apr 2018 21:08:48 -0400
changeset 779699 23f60e5acaa2543d623ae4cbe5a12331db1ce93c
parent 779698 e9bbfe8e4ba814418981f9df1b557bf9f7d54e15
child 779700 09c9390d42d6bc95ffd2e3a3933053d718a1ebe3
push id105836
push userbmo:ato@sny.no
push dateTue, 10 Apr 2018 12:07:22 +0000
reviewersme
bugs1366808
milestone61.0a1
Bug 1366808: Fix Eslint failures on inbound. CLOSED TREE r=me
browser/base/content/aboutRestartRequired.js
browser/modules/ContentCrashHandlers.jsm
--- a/browser/base/content/aboutRestartRequired.js
+++ b/browser/base/content/aboutRestartRequired.js
@@ -16,18 +16,17 @@ var AboutRestartRequired = {
     if (window.top == window) {
       var button = document.getElementById("restart");
       var parent = button.parentNode;
       button.remove();
       button.setAttribute("autofocus", "true");
       parent.insertAdjacentElement("afterbegin", button);
     }
   },
-  restart()
-  {
+  restart() {
     Services.startup.quit(Ci.nsIAppStartup.eRestart |
                           Ci.nsIAppStartup.eAttemptQuit);
   },
   init() {
     this.addAutofocus();
   },
 };
 
--- a/browser/modules/ContentCrashHandlers.jsm
+++ b/browser/modules/ContentCrashHandlers.jsm
@@ -315,17 +315,16 @@ var TabCrashHandler = {
         return true;
       }
     }
 
     return false;
   },
 
   sendToRestartRequiredPage(browser) {
-    let title = browser.contentTitle;
     let uri = browser.currentURI;
     let gBrowser = browser.ownerGlobal.gBrowser;
     let tab = gBrowser.getTabForBrowser(browser);
     // The restart required page is non-remote by default.
     gBrowser.updateBrowserRemoteness(browser, false);
 
     browser.docShell.displayLoadError(Cr.NS_ERROR_BUILDID_MISMATCH, uri, null);
     tab.setAttribute("crashed", true);