Bug 1401561 - Avoid prompting about compatibility issues with JAWS when e10s is pref'd off. r=jaws, a=sledru
authorJim Mathies <jmathies@mozilla.com>
Mon, 25 Sep 2017 13:07:45 -0500
changeset 432014 75e965089708d0937fad036eff7e3fce01994e0e
parent 432013 54a5c274f8a49ce12cf560e3d715ab9e922dec52
child 432015 8a3071abbaf1a1f5e8ad810480abc5f265e3cb12
push id7870
push userryanvm@gmail.com
push dateMon, 02 Oct 2017 13:47:52 +0000
treeherdermozilla-beta@b7b894f5fad8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, sledru
bugs1401561
milestone57.0
Bug 1401561 - Avoid prompting about compatibility issues with JAWS when e10s is pref'd off. r=jaws, a=sledru MozReview-Commit-ID: 2ejZ7Ga2lLk
browser/components/nsBrowserGlue.js
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -2835,18 +2835,20 @@ var JawsScreenReaderVersionCheck = {
     }
   },
 
   onWindowsRestored() {
     Services.tm.dispatchToMainThread(() => this._checkVersionAndPrompt());
   },
 
   _checkVersionAndPrompt() {
-    // This executes a JAWS version check.
-    if (!Services.appinfo.shouldBlockIncompatJaws) {
+    // Make sure we only prompt for versions of JAWS we do not
+    // support and never prompt if e10s is disabled.
+    if (!Services.appinfo.shouldBlockIncompatJaws ||
+        !Services.appinfo.browserTabsRemoteAutostart) {
       return;
     }
 
     let win = RecentWindow.getMostRecentBrowserWindow();
     if (!win || !win.gBrowser || !win.gBrowser.selectedBrowser) {
       Services.console.logStringMessage(
           "Content access support for older versions of JAWS is disabled " +
           "due to compatibility issues with this version of Firefox.");