Changeset 199607 in webkit


Ignore:
Timestamp:
Apr 15, 2016 12:59:20 PM (8 years ago)
Author:
mmaxfield@apple.com
Message:

ASSERT when loading github.com
https://bugs.webkit.org/show_bug.cgi?id=156604
<rdar://problem/19890634>

Reviewed by Darin Adler.

Source/WebCore:

HTMLFormControlElement::m_isValid is a cache of the results of the valid() function.
When cloning the node, we were preserving each individual item, but not the state
of the cache. Therefore, the cache and the attributes didn't agree with each other.

Test: fast/forms/checkValidity-cloneNode-crash.html

  • html/HTMLInputElement.cpp:

(WebCore::HTMLInputElement::copyNonAttributePropertiesFromElement):

LayoutTests:

  • fast/forms/checkValidity-cloneNode-crash-expected.txt: Added.
  • fast/forms/checkValidity-cloneNode-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r199605 r199607  
     12016-04-15  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        ASSERT when loading github.com
     4        https://bugs.webkit.org/show_bug.cgi?id=156604
     5        <rdar://problem/19890634>
     6
     7        Reviewed by Darin Adler.
     8
     9        * fast/forms/checkValidity-cloneNode-crash-expected.txt: Added.
     10        * fast/forms/checkValidity-cloneNode-crash.html: Added.
     11
    1122016-04-15  Brent Fulgham  <bfulgham@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r199605 r199607  
     12016-04-15  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        ASSERT when loading github.com
     4        https://bugs.webkit.org/show_bug.cgi?id=156604
     5        <rdar://problem/19890634>
     6
     7        Reviewed by Darin Adler.
     8
     9        HTMLFormControlElement::m_isValid is a cache of the results of the valid() function.
     10        When cloning the node, we were preserving each individual item, but not the state
     11        of the cache. Therefore, the cache and the attributes didn't agree with each other.
     12
     13        Test: fast/forms/checkValidity-cloneNode-crash.html
     14
     15        * html/HTMLInputElement.cpp:
     16        (WebCore::HTMLInputElement::copyNonAttributePropertiesFromElement):
     17
    1182016-04-15  Brent Fulgham  <bfulgham@apple.com>
    219
  • trunk/Source/WebCore/html/HTMLInputElement.cpp

    r198997 r199607  
    922922    HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source);
    923923
     924    updateValidity();
    924925    setFormControlValueMatchesRenderer(false);
    925926    m_inputType->updateInnerTextValue();
Note: See TracChangeset for help on using the changeset viewer.