Changeset 143670 in webkit


Ignore:
Timestamp:
Feb 21, 2013 5:13:25 PM (11 years ago)
Author:
abarth@webkit.org
Message:

Threaded HTML Parser fails fast/dom/Document/readystate.html
https://bugs.webkit.org/show_bug.cgi?id=110529

Reviewed by Eric Seidel.

Source/WebCore:

We need to create the tokenizer even when we finish a script-created
parser. Most of the time, the tokenizer has already been created at
this point because it is created by calls to document.write.

Test: fast/parser/body-should-exist-after-open-close.html

  • html/parser/HTMLDocumentParser.cpp:

(WebCore::HTMLDocumentParser::finish):

LayoutTests:

This test is a reduction of the original issue.

  • fast/parser/body-should-exist-after-open-close-expected.txt: Added.
  • fast/parser/body-should-exist-after-open-close.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r143668 r143670  
     12013-02-21  Adam Barth  <abarth@webkit.org>
     2
     3        Threaded HTML Parser fails fast/dom/Document/readystate.html
     4        https://bugs.webkit.org/show_bug.cgi?id=110529
     5
     6        Reviewed by Eric Seidel.
     7
     8        This test is a reduction of the original issue.
     9
     10        * fast/parser/body-should-exist-after-open-close-expected.txt: Added.
     11        * fast/parser/body-should-exist-after-open-close.html: Added.
     12
    1132013-02-21  Rouslan Solomakhin  <rouslan@chromium.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r143669 r143670  
     12013-02-21  Adam Barth  <abarth@webkit.org>
     2
     3        Threaded HTML Parser fails fast/dom/Document/readystate.html
     4        https://bugs.webkit.org/show_bug.cgi?id=110529
     5
     6        Reviewed by Eric Seidel.
     7
     8        We need to create the tokenizer even when we finish a script-created
     9        parser. Most of the time, the tokenizer has already been created at
     10        this point because it is created by calls to document.write.
     11
     12        Test: fast/parser/body-should-exist-after-open-close.html
     13
     14        * html/parser/HTMLDocumentParser.cpp:
     15        (WebCore::HTMLDocumentParser::finish):
     16
    1172013-02-21  Emil A Eklund  <eae@chromium.org>
    218
  • trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp

    r143661 r143670  
    698698    }
    699699
    700     if (shouldUseThreading() && !wasCreatedByScript()) {
    701         ASSERT(!m_tokenizer && !m_token);
     700    if (!m_tokenizer) {
     701        ASSERT(!m_token);
    702702        // We're finishing before receiving any data. Rather than booting up
    703703        // the background parser just to spin it down, we finish parsing
Note: See TracChangeset for help on using the changeset viewer.