Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
WebCore:
2008-05-16 Antti Koivisto <antti@apple.com> Reviewed by Anders. Fix <rdar://problem/5934400> Movie controller does not update on first load of http://www.apple.com/getamac/ads/ The issue is that we execute scripts while there are still pending stylesheet loads. If the script depends on a stylesheet having been applied it may fail. This will make external script execution block on external stylesheet loads. A full fix (as discussed with Hyatt) will also need to block inline script execution. Test: http/tests/local/stylesheet-and-script-load-order-http.html * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::notifyFinished): LayoutTests: 2008-05-16 Antti Koivisto <antti@apple.com> Reviewed by Anders. Test for <rdar://problem/5934400> Movie controller does not update on first load of http://www.apple.com/getamac/ads/ * http/tests/local/stylesheet-and-script-load-order-http-expected.txt: Added. * http/tests/local/stylesheet-and-script-load-order-http.html: Added. Canonical link: https://commits.webkit.org/26408@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@33544 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
47 additions
and 5 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
@@ -0,0 +1,3 @@ | ||
Test that stylesheet loads complete before external scripts are executed. | ||
|
||
PASS |
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
@@ -0,0 +1,13 @@ | ||
<html> | ||
<head> | ||
<script> | ||
if (window.layoutTestController) | ||
layoutTestController.dumpAsText(); | ||
</script> | ||
<link rel=stylesheet href="http://127.0.0.1:8000/local/slow-css-pass.cgi"> | ||
</head> | ||
<body> | ||
<p>Test that stylesheet loads complete before external scripts are executed.</p> | ||
<script src="http://127.0.0.1:8000/local/stylesheet-dependent.js"></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
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