From 2f17d5e2df52490f411657c5746c89b36ceaef11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= <emilio@crisal.io>
Date: Tue, 13 Sep 2022 04:09:33 +0300
Subject: [PATCH] Bug 1781434 - Tentative fix tor test_bug398289.html CLOSED
 TREE

---
 dom/xul/test/test_bug398289.html | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/dom/xul/test/test_bug398289.html b/dom/xul/test/test_bug398289.html
index eae7f2d923b96..c93ef8a43516d 100644
--- a/dom/xul/test/test_bug398289.html
+++ b/dom/xul/test/test_bug398289.html
@@ -6,25 +6,23 @@
   <script src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script>
   <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
 </head>
-<body style="height: 100%" onload="setTimeout(onBodyLoad, 0);">
-  <iframe id="test" src="398289-resource.xhtml" width="100%" height="100%">
-  </iframe>
-
+<body style="height: 100%; overflow: hidden; margin: 0" onload="setTimeout(onBodyLoad, 0);">
+  <iframe frmeborder=0 scrolling=no id="test" src="398289-resource.xhtml" width="100%" height="100%"></iframe>
   <script class="testbody" type="text/javascript">
     var snap1, snap2;
-  
+
     SimpleTest.waitForExplicitFinish();
-  
+
     async function onBodyLoad() {
       window.frames[0].document.getElementById("test").selectedIndex = 0;
       window.frames[0].document.getElementById("test").selectedIndex = 1;
-      
+
       snap1 = await snapshotWindow(window);
-      
+
       document.getElementById("test").onload = onFrameLoad;
       window.frames[0].location.reload();
     }
-    
+
     async function onFrameLoad() {
       snap2 = await snapshotWindow(window);
 
@@ -32,7 +30,6 @@
       [equal, str1, str2] = compareSnapshots(snap1, snap2, true);
 
       ok(equal, "persistent attribute in tab box broken, expected: "+str1+" got: "+str2);
-          
       SimpleTest.finish();
     }
   </script>
-- 
GitLab