Changeset 60801 in webkit


Ignore:
Timestamp:
Jun 7, 2010 2:40:03 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-07 Eric Seidel <eric@webkit.org>

Reviewed by Adam Barth.

HTML5 parser hits ASSERT in http/tests/misc/window-dot-stop.html
https://bugs.webkit.org/show_bug.cgi?id=40264

  • html/HTML5Tokenizer.cpp: (WebCore::HTML5Tokenizer::executeScript):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r60800 r60801  
     12010-06-07  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        HTML5 parser hits ASSERT in http/tests/misc/window-dot-stop.html
     6        https://bugs.webkit.org/show_bug.cgi?id=40264
     7
     8        * html/HTML5Tokenizer.cpp:
     9        (WebCore::HTML5Tokenizer::executeScript):
     10
    1112010-06-07  Kinuko Yasuda  <kinuko@chromium.org>
    212
  • trunk/WebCore/html/HTML5Tokenizer.cpp

    r60553 r60801  
    165165    // oldInsertionPoint.prepent(m_source) as that would ASSERT if
    166166    // m_source.escaped() (it had characters pushed back onto it).
    167     m_source.append(oldInsertionPoint);
     167    // If m_source was closed, then the tokenizer was stopped, and we discard
     168    // any pending data as though an EOF character was inserted into the stream.
     169    if (!m_source.isClosed())
     170        m_source.append(oldInsertionPoint);
    168171}
    169172
Note: See TracChangeset for help on using the changeset viewer.