Fix a race - synchronize test completion with media's loadstart event.
Presence of OOPIFs introduces a delay into loading of cross-origin media and exposes a race in the http/tests/security/mixedContent/insecure-audio-video-in-main-frame.html test. To get rid of the race, we should wait until media has actually started to load, before posting / reporting that the test is "done". BUG=582541 TEST=The affected test passes when run 100 times with and without --site-per-process flag. Review URL: https://codereview.chromium.org/1703333002 Cr-Commit-Position: refs/heads/master@{#376065}
Showing
Please register or sign in to comment