Bug 1598225 - Call restoreNormalRefresh before closing window. r=m_kato
authorHiroyuki Ikezoe <hikezoe.birchill@mozilla.com>
Fri, 22 Nov 2019 01:35:03 +0000
changeset 503234 cf36cb9d33e3c683bb36c5d4de6192d3936f83e9
parent 503233 0257181c4fe257620f921992ccb98edf0313fcc1
child 503235 30248fce0f939186b3d8485df93bb59e4ee6b2fb
push id36831
push userapavel@mozilla.com
push dateFri, 22 Nov 2019 09:15:12 +0000
treeherdermozilla-central@80ab213de5a9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersm_kato
bugs1598225
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1598225 - Call restoreNormalRefresh before closing window. r=m_kato Differential Revision: https://phabricator.services.mozilla.com/D54197
editor/libeditor/tests/test_bug549262.html
--- a/editor/libeditor/tests/test_bug549262.html
+++ b/editor/libeditor/tests/test_bug549262.html
@@ -116,17 +116,17 @@ function startTest() {
   synthesizeKey("VK_DOWN", {}, win);
 
   step();
 
   is(win.scrollY, oldY, "Page is not scrolled down");
   is(win.getSelection().focusNode, ed.firstChild, "Correct element selected");
   is(win.getSelection().focusOffset, ed.textContent.length, "Selection should be moved to the end");
 
+  cwu.restoreNormalRefresh();
   win.close();
-  cwu.restoreNormalRefresh();
 
   SimpleTest.finish();
 }
 </script>
 </pre>
 </body>
 </html>