Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply DelayAsyncScriptExecution only for cross site scripts
This CL adds kDelayAsyncScriptExecutionCrossSiteOnlyParam feature param so that DelayAsyncScriptExecution is applied only for cross site scripts. Bug: 1340837 Change-Id: Ib6d83174e244f770af29c4c99350ec03cdc2ad83 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3816163 Reviewed-by: Shunya Shishido <sisidovski@chromium.org> Commit-Queue: Minoru Chikamune <chikamune@chromium.org> Reviewed-by: Dominic Farolino <dom@chromium.org> Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Cr-Commit-Position: refs/heads/main@{#1034328}
- Loading branch information
1 parent
28c67b8
commit ff4716e
Showing
15 changed files
with
83 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...-to-cross-site-only/wpt_internal/async-script-scheduling/execution-order.sub-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This is a testharness.js-based test. | ||
FAIL Async Script Execution Order Uncaught Error: assert_equals: expected "async_preload;async_blocking_render;async;async;inline1;external;inline2;defer;DOMContentLoaded" but got "async_preload;async_blocking_render;async;inline1;external;inline2;defer;DOMContentLoaded;async" | ||
Harness: the test ran to completion. | ||
|
4 changes: 0 additions & 4 deletions
4
...duling-finished-parsing/wpt_internal/async-script-scheduling/execution-order-expected.txt
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...ng-finished-parsing/wpt_internal/async-script-scheduling/execution-order.sub-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This is a testharness.js-based test. | ||
FAIL Async Script Execution Order Uncaught Error: assert_equals: expected "async_preload;async_blocking_render;async;async;inline1;external;inline2;defer;DOMContentLoaded" but got "async_preload;async_blocking_render;inline1;external;inline2;defer;DOMContentLoaded;async;async" | ||
Harness: the test ran to completion. | ||
|
4 changes: 0 additions & 4 deletions
4
...int-or-finished-parsing/wpt_internal/async-script-scheduling/execution-order-expected.txt
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...or-finished-parsing/wpt_internal/async-script-scheduling/execution-order.sub-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This is a testharness.js-based test. | ||
FAIL Async Script Execution Order Uncaught Error: assert_equals: expected "async_preload;async_blocking_render;async;async;inline1;external;inline2;defer;DOMContentLoaded" but got "async_preload;async_blocking_render;inline1;external;inline2;defer;DOMContentLoaded;async;async" | ||
Harness: the test ran to completion. | ||
|
5 changes: 5 additions & 0 deletions
5
...nk/web_tests/virtual/async-script-scheduling-apply-to-cross-site-only/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# DelayAsyncScriptExecution | ||
This suite runs the tests in wpt_internal/async-script-scheduling/ with | ||
`--enable-features=DelayAsyncScriptExecution:cross_site_only/true`. | ||
|
||
See crbug.com/1340837. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
third_party/blink/web_tests/wpt_internal/async-script-scheduling/resources/script.js
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
third_party/blink/web_tests/wpt_internal/async-script-scheduling/resources/script.sub.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
logScript("{{GET[label]}}"); |