⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 117829 in webkit


Ignore:
Timestamp:
May 21, 2012, 4:26:57 PM (14 years ago)
Author:
Lucas Forschler
Message:

Merged r116864.

Location:
branches/safari-536-branch
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/safari-536-branch/LayoutTests/ChangeLog

    r117180 r117829  
     12012-05-21  Lucas Forschler  <lforschler@apple.com>
     2
     3    Merge 116864
     4
     5    2012-05-12  Abhishek Arya  <inferno@chromium.org>
     6
     7            Crash in HTMLSelectElement::setOption
     8            https://bugs.webkit.org/show_bug.cgi?id=85420
     9
     10            Reviewed by Eric Seidel.
     11
     12            * fast/dom/HTMLSelectElement/option-add-crash-expected.txt: Added.
     13            * fast/dom/HTMLSelectElement/option-add-crash.html: Added.
     14
    1152012-05-15  Lucas Forschler  <lforschler@apple.com>
    216
  • branches/safari-536-branch/Source/WebCore/ChangeLog

    r117364 r117829  
     12012-05-21  Lucas Forschler  <lforschler@apple.com>
     2
     3    Merge 116864
     4
     5    2012-05-12  Abhishek Arya  <inferno@chromium.org>
     6
     7            Crash in HTMLSelectElement::setOption
     8            https://bugs.webkit.org/show_bug.cgi?id=85420
     9
     10            Reviewed by Eric Seidel
     11
     12            RefPtr before option in HTMLSelectElement::setOption since it
     13            can get destroyed due to mutation events.
     14
     15            Test: fast/dom/HTMLSelectElement/option-add-crash.html
     16
     17            * html/HTMLSelectElement.cpp:
     18            (WebCore::HTMLSelectElement::setOption):
     19
    1202012-05-16  Lucas Forschler  <lforschler@apple.com>
    221
  • branches/safari-536-branch/Source/WebCore/html/HTMLSelectElement.cpp

    r114870 r117829  
    414414        index = maxSelectItems - 1;
    415415    int diff = index - length();
    416     HTMLElement* before = 0;
     416    RefPtr<HTMLElement> before = 0;
    417417    // Out of array bounds? First insert empty dummies.
    418418    if (diff > 0) {
     
    425425    // Finally add the new element.
    426426    if (!ec) {
    427         add(option, before, ec);
     427        add(option, before.get(), ec);
    428428        if (diff >= 0 && option->selected())
    429429            optionSelectionStateChanged(option, true);
Note: See TracChangeset for help on using the changeset viewer.