Changeset 86649 in webkit


Ignore:
Timestamp:
May 16, 2011 6:42:14 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-05-16 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Remove bogus ASSERT in Document::setCompatibilityMode
https://bugs.webkit.org/show_bug.cgi?id=60935

This test case triggers the ASSERT.

  • fast/parser/append-child-followed-by-document-write-expected.txt: Added.
  • fast/parser/append-child-followed-by-document-write.html: Added.

2011-05-16 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Remove bogus ASSERT in Document::setCompatibilityMode
https://bugs.webkit.org/show_bug.cgi?id=60935

The ASSERT is invalid when the parser is in the initial state and the
document is non-empty, which is strange but not impossible.

Test: fast/parser/append-child-followed-by-document-write.html

  • dom/Document.cpp: (WebCore::Document::setCompatibilityMode):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r86648 r86649  
     12011-05-16  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Remove bogus ASSERT in Document::setCompatibilityMode
     6        https://bugs.webkit.org/show_bug.cgi?id=60935
     7
     8        This test case triggers the ASSERT.
     9
     10        * fast/parser/append-child-followed-by-document-write-expected.txt: Added.
     11        * fast/parser/append-child-followed-by-document-write.html: Added.
     12
    1132011-05-16  Ian Henderson  <ianh@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r86647 r86649  
     12011-05-16  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Remove bogus ASSERT in Document::setCompatibilityMode
     6        https://bugs.webkit.org/show_bug.cgi?id=60935
     7
     8        The ASSERT is invalid when the parser is in the initial state and the
     9        document is non-empty, which is strange but not impossible.
     10
     11        Test: fast/parser/append-child-followed-by-document-write.html
     12
     13        * dom/Document.cpp:
     14        (WebCore::Document::setCompatibilityMode):
     15
    1162011-05-16  MORITA Hajime  <morrita@google.com>
    217
  • trunk/Source/WebCore/dom/Document.cpp

    r86588 r86649  
    654654    if (m_compatibilityModeLocked || mode == m_compatibilityMode)
    655655        return;
    656     ASSERT(!documentElement() && !m_styleSheets->length());
     656    ASSERT(!m_styleSheets->length());
    657657    bool wasInQuirksMode = inQuirksMode();
    658658    m_compatibilityMode = mode;
Note: See TracChangeset for help on using the changeset viewer.