Bug 898170 - Skip login manager event handlers in e10s mode (r=felipe)
authorBill McCloskey <wmccloskey@mozilla.com>
Fri, 26 Jul 2013 14:26:22 -0700
changeset 140235 1fb07a6886de97209301e32bdfb8f65c6b698055
parent 140234 02e569264881e364cd5583084b58698e6c994743
child 140236 bf57ad8c6635ed0a52324466785d19ee5f985467
push id1951
push userryanvm@gmail.com
push dateSun, 28 Jul 2013 01:55:51 +0000
treeherderfx-team@73b69c146ca6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe
bugs898170
milestone25.0a1
Bug 898170 - Skip login manager event handlers in e10s mode (r=felipe)
browser/base/content/content.js
--- a/browser/base/content/content.js
+++ b/browser/base/content/content.js
@@ -29,17 +29,19 @@ addMessageListener("Browser:HideSessionR
   let doc = content.document;
   let container;
   if (doc.documentURI.toLowerCase() == "about:home" &&
       (container = doc.getElementById("sessionRestoreContainer"))){
     container.hidden = true;
   }
 });
 
-addEventListener("DOMContentLoaded", function(event) {
-  LoginManagerContent.onContentLoaded(event);
-});
-addEventListener("DOMAutoComplete", function(event) {
-  LoginManagerContent.onUsernameInput(event);
-});
-addEventListener("blur", function(event) {
-  LoginManagerContent.onUsernameInput(event);
-});
+if (!Services.prefs.getBoolPref("browser.tabs.remote")) {
+  addEventListener("DOMContentLoaded", function(event) {
+    LoginManagerContent.onContentLoaded(event);
+  });
+  addEventListener("DOMAutoComplete", function(event) {
+    LoginManagerContent.onUsernameInput(event);
+  });
+  addEventListener("blur", function(event) {
+    LoginManagerContent.onUsernameInput(event);
+  });
+}