Bug 1000722 - Many B2G reftests fail after enabling OOP, because partial drawWindow calls are drawing too small an area. r=dbaron, a=test-only
authorCJKu <cku@mozilla.com>
Wed, 18 Jun 2014 21:39:00 -0400
changeset 195478 7130f4a8e2bb0d8717599acc41283bd69540f4d8
parent 195477 13c4804465d6b6a9cbbd1b19a804c0d7c71d144d
child 195479 019279c9a206616a4a9c485be4fddd7c4db862f0
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-esr52@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron, test-only
bugs1000722
milestone32.0a2
Bug 1000722 - Many B2G reftests fail after enabling OOP, because partial drawWindow calls are drawing too small an area. r=dbaron, a=test-only
layout/tools/reftest/reftest.js
--- a/layout/tools/reftest/reftest.js
+++ b/layout/tools/reftest/reftest.js
@@ -266,17 +266,17 @@ this.OnRefTestLoad = function OnRefTestL
       gBrowser = gContainingWindow.document.createElementNS(XUL_NS, "xul:browser");
     }
     gBrowser.setAttribute("id", "browser");
     gBrowser.setAttribute("type", "content-primary");
     gBrowser.setAttribute("remote", gBrowserIsRemote ? "true" : "false");
     gBrowser.setAttribute("mozasyncpanzoom", "true");
     // Make sure the browser element is exactly 800x1000, no matter
     // what size our window is
-    gBrowser.setAttribute("style", "min-width: 800px; min-height: 1000px; max-width: 800px; max-height: 1000px");
+    gBrowser.setAttribute("style", "padding: 0px; margin: 0px; border:none; min-width: 800px; min-height: 1000px; max-width: 800px; max-height: 1000px");
 
 #ifdef BOOTSTRAP
 #ifdef REFTEST_B2G
     var doc = gContainingWindow.document.getElementsByTagName("html")[0];
 #else
     var doc = gContainingWindow.document.getElementById('main-window');
 #endif
     while (doc.hasChildNodes()) {