Changeset 89258 in webkit


Ignore:
Timestamp:
Jun 20, 2011 10:51:40 AM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-06-20 Adam Barth <abarth@webkit.org>

Reviewed by Alexey Proskuryakov.

ASSERT in WebCore::HTMLToken::appendToAttributeName when visiting www.nba.com
https://bugs.webkit.org/show_bug.cgi?id=61774

  • fast/parser/attributes-on-close-script-expected.txt: Added.
  • fast/parser/attributes-on-close-script.html: Added.

2011-06-20 Adam Barth <abarth@webkit.org>

Reviewed by Alexey Proskuryakov.

ASSERT in WebCore::HTMLToken::appendToAttributeName when visiting www.nba.com
https://bugs.webkit.org/show_bug.cgi?id=61774

This ASSERT triggers for the same underlying issue that causes
Bug 62971: When we tokenize a </script> tag, we don't realize that
we've already consumed the "</script>" from the input stream when we
extracted the previous token. That causes the source tracker to be
out-of-sync, triggering the incorrect view-source highlighting and this
ASSERT.

For now, let's just silence the assert while we work on Bug 62971.

Test: fast/parser/attributes-on-close-script.html

  • html/parser/HTMLToken.h: (WebCore::HTMLToken::appendToAttributeName): (WebCore::AtomicHTMLToken::initializeAttributes):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r89257 r89258  
     12011-06-20  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        ASSERT in WebCore::HTMLToken::appendToAttributeName when visiting www.nba.com
     6        https://bugs.webkit.org/show_bug.cgi?id=61774
     7
     8        * fast/parser/attributes-on-close-script-expected.txt: Added.
     9        * fast/parser/attributes-on-close-script.html: Added.
     10
    1112011-06-20  Juan C. Montemayor  <jmont@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r89254 r89258  
     12011-06-20  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        ASSERT in WebCore::HTMLToken::appendToAttributeName when visiting www.nba.com
     6        https://bugs.webkit.org/show_bug.cgi?id=61774
     7
     8        This ASSERT triggers for the same underlying issue that causes
     9        Bug 62971: When we tokenize a </script> tag, we don't realize that
     10        we've already consumed the "</script>" from the input stream when we
     11        extracted the previous token.  That causes the source tracker to be
     12        out-of-sync, triggering the incorrect view-source highlighting and this
     13        ASSERT.
     14
     15        For now, let's just silence the assert while we work on Bug 62971.
     16
     17        Test: fast/parser/attributes-on-close-script.html
     18
     19        * html/parser/HTMLToken.h:
     20        (WebCore::HTMLToken::appendToAttributeName):
     21        (WebCore::AtomicHTMLToken::initializeAttributes):
     22
    1232011-06-20  Andras Becsi  <abecsi@webkit.org>
    224
  • trunk/Source/WebCore/html/parser/HTMLToken.h

    r88411 r89258  
    211211        ASSERT(character);
    212212        ASSERT(m_type == StartTag || m_type == EndTag);
    213         ASSERT(m_currentAttribute->m_nameRange.m_start);
     213        // FIXME: We should be able to add the following ASSERT once we fix
     214        // https://bugs.webkit.org/show_bug.cgi?id=62971
     215        //   ASSERT(m_currentAttribute->m_nameRange.m_start);
    214216        m_currentAttribute->m_name.append(character);
    215217    }
     
    546548            continue;
    547549
    548         ASSERT(attribute.m_nameRange.m_start);
     550        // FIXME: We should be able to add the following ASSERT once we fix
     551        // https://bugs.webkit.org/show_bug.cgi?id=62971
     552        //   ASSERT(attribute.m_nameRange.m_start);
    549553        ASSERT(attribute.m_nameRange.m_end);
    550554        ASSERT(attribute.m_valueRange.m_start);
Note: See TracChangeset for help on using the changeset viewer.