Deflake http/tests/devtools/isolated-code-cache/same-origin-test.js
The test was flaky because the ScriptResource can be garbage collected before the test finished. This CL keeps the ScriptResource alive, by loading the script as a parser-inserted script. This uses a Blink-specific behavior -- a parser-inserted <script> keeps alive its corresponding ScriptResource but a dynamically-inserted <script> doesn't. This is somehow hacky, but seems to work. Bug: 841466, 906320, 927296, 922951 Change-Id: Ia45787d917191d81917e89f6843ad8b0cbcc7e76 Reviewed-on: https://chromium-review.googlesource.com/c/1475077Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Reviewed-by:
Mythri Alle <mythria@chromium.org> Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Cr-Commit-Position: refs/heads/master@{#632755}
Showing
Please register or sign in to comment