Commit d6485b57 authored by Adithya Srinivasan's avatar Adithya Srinivasan Committed by Commit Bot

Portals: Deflake browser tests

Previously, in multiple instances, we used a navigation observer to wait
for the first portal navigation with the assumption that navigation wasn't
already complete. This assumption was incorrect, the portal could navigate
before we return from the ExecJs call that initiated the navigation. This
CL creates the observer before calling ExecJs

Bug: 990717, 998107
Change-Id: I8d73b2c39e343e625fa9423291568af2c69e35cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1873239Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
Commit-Queue: Adithya Srinivasan <adithyas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709009}
parent 83c0ace0
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