Fix race in http/tests/security/mixedContent/blob-url-in-iframe.html
This test started failing with --site-per-process in https://chromium-review.googlesource.com/c/chromium/src/+/636786. The reason appears to be that the test installed the iframe's onload handler after the main page started a navigation to the test's HTTPS location, and the iframe's onload from the old page could fire before the HTTPS navigation completed. With the above CL, the (cross-process) main frame navigation likely became a bit slower due to the extra proxy being created for it, exposing this race. The fix is to only register iframe's onload once the test is at the HTTPS location, similarly to what's done in filesystem-url-in-iframe.html. Bug: 756790 Change-Id: I63e22c25bd3c7adc374b09e227b1d30e36c3d75c Reviewed-on: https://chromium-review.googlesource.com/651609Reviewed-by:Łukasz Anforowicz <lukasza@chromium.org> Commit-Queue: Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#499989}
Showing
Please register or sign in to comment