-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Add TimedHTMLParserBudget to fieldtrial_testing_config.json"
This reverts commit 8538a928dc7750dfa8a3fe1661e518f86882995b. Reason for revert: Significant number of web test and wpt test failures on the Linux debug bot starting with: https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20Tests%20(dbg)(1)/105948/overview (which also had significant problems due to another change that has already been reverted) and on the linux MSAN bot starting with: https://ci.chromium.org/p/chromium/builders/ci/WebKit%20Linux%20MSAN/15453 Original change's description: > Add TimedHTMLParserBudget to fieldtrial_testing_config.json > > This exposed cases where some web_tests were implicitly depending on > the parser yielding at specific times. The fixes here should make > these tests less brittle in general. > > These issues can be reproduced with the current token based parser > logic by inserting a bunch of <span>s at certain places in the HTML > to force the parser to yield. The list of fixes: > - createImageBitmap-sizeOverflow.html: this test was just broken in > general. It was not waiting for the assert_throws_dom code to run. > The test is now fixed by switching to a promise_test. > - resource-selection-invoke-*: These tests were depending on not > yielding between scripts. The check they had in the separate > script was not very important and was brittle, and in the sync version > was already failing (see FAIL in expectations file). > - track-selection-metadata.html: this test was depending on the parser > not yielding after executing the script. This was fixed by moving > the script outside the <video> element. > - execution-timing/080.html: depended on the parser not yielding > between scripts. > - about-blank-replacement-blank-nested-frame.html: depended on parser > not yielding between scripts. > - fast/frames/*: exposed an existing bug where frame borders would not > be drawn if the parser yields at certain times. Filed this at > crbug.com/1338331. I fixed this by using CSS borders for the frames > instead of frameborder. > > Bug: 1314493 > Change-Id: I8ad7708659bc9690be2641a22bf4d5f24165dc8c > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3716825 > Reviewed-by: Mason Freed <[email protected]> > Commit-Queue: Clark DuVall <[email protected]> > Cr-Commit-Position: refs/heads/main@{#1017439} Bug: 1314493 Change-Id: I33559fc381f943a12cfca56fd50ea378303c10c9 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3721408 Bot-Commit: Rubber Stamper <[email protected]> Commit-Queue: David Baron <[email protected]> Cr-Commit-Position: refs/heads/main@{#1017627}
- Loading branch information
1 parent
20cb864
commit 7de183d
Showing
6 changed files
with
87 additions
and
38 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
30 changes: 30 additions & 0 deletions
30
html/semantics/scripting-1/the-script-element/execution-timing/080.html
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,30 @@ | ||
<!DOCTYPE html> | ||
<html><head> | ||
<title>scheduler: IFRAMEs added with DOM (appendChild), javascript: URL</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="testlib/testlib.js"></script> | ||
</head> | ||
<body> | ||
|
||
<div id="log">FAILED (This TC requires JavaScript enabled)</div> | ||
<div></div> | ||
<script>log('inline script #1'); | ||
var iframe=document.createElement('iframe'); | ||
iframe.src='javascript:parent.log(\'JS URL\');\'<html><script>parent.log(\\\'frame script\\\')<\/script></html>\''; | ||
document.getElementsByTagName('div')[1].appendChild(iframe); | ||
log('end script #1'); | ||
</script> | ||
|
||
<script type="text/javascript"> | ||
log( 'inline script #2' ); | ||
var t = async_test() | ||
|
||
function test() { | ||
assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'inline script #2', 'JS URL', 'frame script']); | ||
t.done(); | ||
} | ||
onload = t.step_func(function(){setTimeout(t.step_func(test), 400);}) | ||
</script> | ||
|
||
</body></html> |
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