diff options
author | ddkilzer <ddkilzer@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2006-07-02 11:39:43 +0000 |
---|---|---|
committer | ddkilzer <ddkilzer@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2006-07-02 11:39:43 +0000 |
commit | b99f6c3bdee4f6b3af530098fe167101c74478d9 (patch) | |
tree | 44bdfd73bcaebc391508f7181ecb68eb0c62d114 /third_party/WebKit/LayoutTests/fast/tokenizer/nested-cached-scripts.html | |
parent | ae6380d58aa3a1667a511c7a8a066f7df2e70ad9 (diff) | |
download | chromium_src-b99f6c3bdee4f6b3af530098fe167101c74478d9.zip chromium_src-b99f6c3bdee4f6b3af530098fe167101c74478d9.tar.gz chromium_src-b99f6c3bdee4f6b3af530098fe167101c74478d9.tar.bz2 |
WebCore:
Reviewed by Darin. Patch by Mitz.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9674
REGRESSION (r15075): Blank or incomplete pages on digg.com
Replaced the requestingScript state bit added in the fix for bug 9317
with a m_requestingScript bool that is set before and restored
after calling ref() on a CachedScript.
Test: fast/tokenizer/nested-cached-scripts.html
* html/HTMLTokenizer.cpp:
(WebCore::HTMLTokenizer::HTMLTokenizer):
(WebCore::HTMLTokenizer::begin):
(WebCore::HTMLTokenizer::scriptHandler):
(WebCore::HTMLTokenizer::notifyFinished):
* html/HTMLTokenizer.h:
(WebCore::HTMLTokenizer::State::):
LayoutTests:
Reviewed by Darin. Patch by Mitz.
- test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9674
REGRESSION (r15075): Blank or incomplete pages on digg.com
* fast/tokenizer/nested-cached-scripts-expected.txt: Added.
* fast/tokenizer/nested-cached-scripts.html: Added.
* fast/tokenizer/resources/nested-1.js: Added.
* fast/tokenizer/resources/nested-2.js: Added.
git-svn-id: svn://svn.chromium.org/blink/trunk@15134 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/tokenizer/nested-cached-scripts.html')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/tokenizer/nested-cached-scripts.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/tokenizer/nested-cached-scripts.html b/third_party/WebKit/LayoutTests/fast/tokenizer/nested-cached-scripts.html new file mode 100644 index 0000000..640afa9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/tokenizer/nested-cached-scripts.html @@ -0,0 +1,30 @@ +<html> +<head> + <title></title> + <script type="text/javascript"> + if (window.layoutTestController) + layoutTestController.dumpAsText(); + var caching = true; + </script> + <!-- cache the scripts --> + <script type="text/javascript" src="resources/nested-1.js"></script> + <script type="text/javascript" src="resources/nested-2.js"></script> + <script type="text/javascript"> + caching = false; + </script> +</head> +<body> + <p> + This is a regression test for + <i><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=9674">http://bugzilla.opendarwin.org/show_bug.cgi?id=9674</a> + REGRESSION (r15075): Blank or incomplete pages on digg.com</i>. + </p> + <p> + It should say “PASS” under the line. + </p> + <hr> + <script type="text/javascript" src="resources/nested-1.js"></script> + <script type="text/javascript" src="resources/nested-1.js"></script> + PASS +</body> +</html> |