Changeset 61410 in webkit


Ignore:
Timestamp:
Jun 18, 2010 8:55:44 AM (14 years ago)
Author:
mitz@apple.com
Message:

REGRESSION (r61379?): Assertion failure in Element::getURLAttribute() when accessing the src attribute of a script element
https://bugs.webkit.org/show_bug.cgi?id=40831

Reviewed by Anders Carlsson.

WebCore:

Test: fast/dom/HTMLScriptElement/isURLAttribute.html

  • html/HTMLScriptElement.cpp:

(WebCore::HTMLScriptElement::isURLAttribute): Check for the 'src' attribute.

LayoutTests:

  • fast/dom/HTMLScriptElement/isURLAttribute-expected.txt: Added.
  • fast/dom/HTMLScriptElement/isURLAttribute.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r61409 r61410  
     12010-06-18  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        REGRESSION (r61379?): Assertion failure in Element::getURLAttribute() when accessing the src attribute of a script element
     6        https://bugs.webkit.org/show_bug.cgi?id=40831
     7
     8        * fast/dom/HTMLScriptElement/isURLAttribute-expected.txt: Added.
     9        * fast/dom/HTMLScriptElement/isURLAttribute.html: Added.
     10
    1112010-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
    212
  • trunk/WebCore/ChangeLog

    r61408 r61410  
     12010-06-18  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        REGRESSION (r61379?): Assertion failure in Element::getURLAttribute() when accessing the src attribute of a script element
     6        https://bugs.webkit.org/show_bug.cgi?id=40831
     7
     8        Test: fast/dom/HTMLScriptElement/isURLAttribute.html
     9
     10        * html/HTMLScriptElement.cpp:
     11        (WebCore::HTMLScriptElement::isURLAttribute): Check for the 'src' attribute.
     12
    1132010-06-18  Sheriff Bot  <webkit.review.bot@gmail.com>
    214
  • trunk/WebCore/html/HTMLScriptElement.cpp

    r61293 r61410  
    5151bool HTMLScriptElement::isURLAttribute(Attribute* attr) const
    5252{
    53     return attr->name() == sourceAttributeValue();
     53    return attr->name() == srcAttr;
    5454}
    5555
Note: See TracChangeset for help on using the changeset viewer.