Bug 1455282 - [wdspec] Ignore exceptions when switching to top-level browsing context. r=ato
authorHenrik Skupin <mail@hskupin.info>
Mon, 23 Apr 2018 23:37:31 +0200
changeset 468797 90908c3a6f9ede9a0c541dedecbd74a4a34807e3
parent 468796 e60e61507ef4a95ab2456d13126f6fef9086109a
child 468798 2ec2ee71cc277daf81db6ae6bb21db9495c229b3
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1455282
milestone61.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 1455282 - [wdspec] Ignore exceptions when switching to top-level browsing context. r=ato MozReview-Commit-ID: H8fzguZ66ZC
testing/web-platform/tests/webdriver/tests/support/fixtures.py
--- a/testing/web-platform/tests/webdriver/tests/support/fixtures.py
+++ b/testing/web-platform/tests/webdriver/tests/support/fixtures.py
@@ -71,16 +71,17 @@ def _restore_windows(session):
     for window in _windows(session, exclude=[current_window]):
         session.window_handle = window
         if len(session.handles) > 1:
             session.close()
 
     session.window_handle = current_window
 
 
+@ignore_exceptions
 def _switch_to_top_level_browsing_context(session):
     """If the current browsing context selected by WebDriver is a
     `<frame>` or an `<iframe>`, switch it back to the top-level
     browsing context.
     """
     session.switch_frame(None)