Bug 1501562 - Don't set window.opened window to explicitly load about:blank r=jgraham
☠☠ backed out by 3c1b4fc52fe2 ☠ ☠
authorJames Graham <james@hoppipolla.co.uk>
Fri, 19 Apr 2019 21:09:26 +0000
changeset 470336 00f60c8cf8fbd9173079e8616251fe764bef3f1a
parent 470335 fddb75448c79cf2db033f10127d0f6c6384d125b
child 470337 64c05e3826cdcc90e96c55e83015cf9c0bd67f3f
push id112865
push usershindli@mozilla.com
push dateMon, 22 Apr 2019 15:52:44 +0000
treeherdermozilla-inbound@b4b482a09cf0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1501562
milestone68.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 1501562 - Don't set window.opened window to explicitly load about:blank r=jgraham Differential Revision: https://phabricator.services.mozilla.com/D28160
testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py
@@ -703,17 +703,17 @@ class MarionetteTestharnessExecutor(Test
     def do_testharness(self, protocol, url, timeout):
         parent_window = protocol.testharness.close_old_windows(protocol)
 
         if self.protocol.coverage.is_enabled:
             self.protocol.coverage.reset()
 
         format_map = {"url": strip_server(url)}
 
-        protocol.base.execute_script("window.open('about:blank', '%s', 'noopener')" % self.window_id)
+        protocol.base.execute_script("window.open(undefined, '%s', 'noopener')" % self.window_id)
         test_window = protocol.testharness.get_test_window(self.window_id, parent_window,
                                                            timeout=10*self.timeout_multiplier)
         self.protocol.base.set_window(test_window)
         handler = CallbackHandler(self.logger, protocol, test_window)
         protocol.marionette.navigate(url)
         while True:
             result = protocol.base.execute_script(
                 self.script_resume % format_map, async=True)