Changeset 139673 in webkit


Ignore:
Timestamp:
Jan 14, 2013 3:02:19 PM (11 years ago)
Author:
arko@motorola.com
Message:

Microdata: REGRESSION(r138725): Causes crash in chromium port
https://bugs.webkit.org/show_bug.cgi?id=106828

Reviewed by Ryosuke Niwa.

Source/WebCore:

We should hold PropertyNodeList in RefPtr<PropertyNodeList>.

Test: fast/dom/MicroData/propertiescollection-crash.html

  • bindings/v8/custom/V8HTMLCollectionCustom.cpp:

(WebCore::V8HTMLCollection::namedPropertyGetter):

LayoutTests:

  • fast/dom/MicroData/propertiescollection-crash-expected.txt: Added.
  • fast/dom/MicroData/propertiescollection-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r139671 r139673  
     12013-01-14  Arko Saha  <arko@motorola.com>
     2
     3        Microdata: REGRESSION(r138725): Causes crash in chromium port
     4        https://bugs.webkit.org/show_bug.cgi?id=106828
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * fast/dom/MicroData/propertiescollection-crash-expected.txt: Added.
     9        * fast/dom/MicroData/propertiescollection-crash.html: Added.
     10
    1112013-01-14  Stephen Chenney  <schenney@chromium.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r139669 r139673  
     12013-01-14  Arko Saha  <arko@motorola.com>
     2
     3        Microdata: REGRESSION(r138725): Causes crash in chromium port
     4        https://bugs.webkit.org/show_bug.cgi?id=106828
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        We should hold PropertyNodeList in RefPtr<PropertyNodeList>.
     9
     10        Test: fast/dom/MicroData/propertiescollection-crash.html
     11
     12        * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
     13        (WebCore::V8HTMLCollection::namedPropertyGetter):
     14
    1152013-01-14  Tien-Ren Chen  <trchen@chromium.org>
    216
  • trunk/Source/WebCore/bindings/v8/custom/V8HTMLCollectionCustom.cpp

    r138725 r139673  
    5555#if ENABLE(MICRODATA)
    5656    if (imp->type() == ItemProperties) {
    57         PropertyNodeList* item = static_cast<HTMLPropertiesCollection*>(imp)->propertyNodeList(toWebCoreAtomicString(name)).get();
     57        RefPtr<PropertyNodeList> item = static_cast<HTMLPropertiesCollection*>(imp)->propertyNodeList(toWebCoreAtomicString(name));
    5858        if (!item)
    5959            return v8Undefined();
    60         return toV8(item, info.Holder(), info.GetIsolate());
     60        return toV8(item.release(), info.Holder(), info.GetIsolate());
    6161    }
    6262#endif
Note: See TracChangeset for help on using the changeset viewer.