Closed Bug 1460763 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 10957 - Properly switching window focus after close of window

Categories

(Testing :: geckodriver, enhancement, P4)

enhancement

Tracking

(firefox62 fixed)

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 10957 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/w3c/web-platform-tests/pull/10957
Details from upstream follow.

Jim Evans <james.h.evans.jr@gmail.com> wrote:
>  Properly switching window focus after close of window
>  
>  The test_handle_prompt_accept test for closing a window tests to see if an
>  alert was handled. It does so by calling the Get Alert Text end point.
>  However, the Get Alert Text end point requires an active, valid top-level
>  browsing context to have the focus. The test now switches focus back to
>  the previous window before checking that an alert was handled. In between
>  checking the alert, confirm, and prompt cases, it recreates the new window
>  required so it can be closed.
Component: web-platform-tests → geckodriver
Ran 1 tests and 5 subtests
OK     : 1
PASS   : 4
FAIL   : 1
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e9ba48b7bf4b
[wpt PR 10957] - Properly switching window focus after close of window, a=testonly
https://hg.mozilla.org/mozilla-central/rev/e9ba48b7bf4b
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.