Bug 1455282 - [wdspec] Ignore exceptions when switching to top-level browsing context. draft
authorHenrik Skupin <mail@hskupin.info>
Mon, 23 Apr 2018 23:37:31 +0200
changeset 786811 84803e0354ef58cc5005cff97a2b9b43eb29b295
parent 785590 fd06018fb60ab97eae946ae767089dbb7a6105dd
child 786812 f15797d998ddf918cf9537c8810fd1099bceec43
child 787083 1b105a51afee15a6c82fbf1f15d3e349912e4d07
push id107579
push userbmo:hskupin@gmail.com
push dateMon, 23 Apr 2018 21:46:32 +0000
bugs1455282
milestone61.0a1
Bug 1455282 - [wdspec] Ignore exceptions when switching to top-level browsing context. 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)