2004-10-19 Darin Adler <darin@apple.com>
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Oct 2004 19:01:15 +0000 (19:01 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Oct 2004 19:01:15 +0000 (19:01 +0000)
commit152b39d4281bfd2fd6e202594fd61b8cc5351790
treedf7deb0ce417a84f6e527be5fa93db6dc022d4f9
parent8939524234d0b701e1fe030fd1e187c3204f0d4a
 2004-10-19  Darin Adler  <darin@apple.com>

        Reviewed by Maciej.

        - follow-on to my fix yesterday, which broke a layout test because I rolled out a fix that Maciej had done

        * khtml/html/htmltokenizer.cpp: (khtml::HTMLTokenizer::write): Need to check the actual queue of external
        scripts being loaded here. If the current code being run is the external script itself, then we don't want
        to defer parsing. But loadingExtScript has to stay true until after the script runs. The old code would
        assume that any time we're running a script there's no need to look at loadingExtScript, but that was also
        wrong since there can be a script loading in that case too. Layout tests check for both problems.

        * layout-tests/fast/tokenizer/external-script-document-write-expected.txt: Added.
        * layout-tests/fast/tokenizer/external-script-document-write.html: Added.
        * layout-tests/fast/tokenizer/resources/external-script-document-write.js: Added.

        * layout-tests/fast/tokenizer/004.html: Fixed line endings (were CR, should be LF).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/fast/tokenizer/external-script-document-write-expected.txt [new file with mode: 0644]
LayoutTests/fast/tokenizer/external-script-document-write.html [new file with mode: 0644]
LayoutTests/fast/tokenizer/resources/external-script-document-write.js [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/htmltokenizer.cpp