Commit b8cd5513 authored by Eric Orth's avatar Eric Orth Committed by Chromium LUCI CQ

Improve captive portal test stability

Tests expecting a new popup window (just secure DNS tests) were
expecting the new window to always be the "last active" Browser window,
but that is apparently not the case despite everything appearing to work
correctly with creation of the new popup. Remove checks against
GetLastActive().

Also fix cases where it was assumed GetLastActive() could be used as a
shortcut to retrieve the popup window. Instead the code for validating
creation of the popup window can optionally return a pointer to the
created window.

Bug: 11139282
Change-Id: Ic900d0deb881eacc53099de07c5e8cdd68b39be9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2606525
Commit-Queue: Eric Orth <ericorth@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#840215}
parent 3b373d56
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment