Bug 1317101: Follow-up: Don't use remote-browser bindings for reftests.
authorKris Maglione <maglione.k@gmail.com>
Wed, 16 Nov 2016 17:47:19 -0800
changeset 323252 478d8f5e7ebb18092190b68eb49921b076e32d18
parent 323251 93ef05cf81ef89a9810e97f820a80db8ef784885
child 323253 06ef26669994ec4018e5072defb55b1af360c9f2
push id21
push usermaklebus@msu.edu
push dateThu, 01 Dec 2016 06:22:08 +0000
bugs1317101
milestone53.0a1
Bug 1317101: Follow-up: Don't use remote-browser bindings for reftests. MozReview-Commit-ID: AHGpFSOTaVz
layout/tools/reftest/reftest.jsm
toolkit/content/xul.css
--- a/layout/tools/reftest/reftest.jsm
+++ b/layout/tools/reftest/reftest.jsm
@@ -306,16 +306,17 @@ this.OnRefTestLoad = function OnRefTestL
       gContainingWindow = win;
     }
 
     if (gBrowserIsIframe) {
       gBrowser = gContainingWindow.document.createElementNS(XHTML_NS, "iframe");
       gBrowser.setAttribute("mozbrowser", "");
     } else {
       gBrowser = gContainingWindow.document.createElementNS(XUL_NS, "xul:browser");
+      gBrowser.setAttribute("class", "lightweight");
     }
     gBrowser.setAttribute("id", "browser");
     gBrowser.setAttribute("type", "content-primary");
     gBrowser.setAttribute("remote", gBrowserIsRemote ? "true" : "false");
     // Make sure the browser element is exactly 800x1000, no matter
     // what size our window is
     gBrowser.setAttribute("style", "padding: 0px; margin: 0px; border:none; min-width: 800px; min-height: 1000px; max-width: 800px; max-height: 1000px");
 
--- a/toolkit/content/xul.css
+++ b/toolkit/content/xul.css
@@ -163,17 +163,17 @@ editor,
 iframe {
   display: inline;
 }
 
 browser {
   -moz-binding: url("chrome://global/content/bindings/browser.xml#browser");
 }
 
-browser[remote=true] {
+browser[remote=true]:not(.lightweight) {
   -moz-binding: url("chrome://global/content/bindings/remote-browser.xml#remote-browser");
 }
 
 editor {
   -moz-binding: url("chrome://global/content/bindings/editor.xml#editor");
 }
 
 iframe {