Changeset 85606 in webkit


Ignore:
Timestamp:
May 3, 2011 9:18:29 AM (13 years ago)
Author:
caseq@chromium.org
Message:

2011-05-03 Andrey Kosyakov <caseq@chromium.org>

Reviewed by Dimitri Glazkov.

[Chromium] toV8(Node*) will enter infinite recursion when called with a node of type SHADOW_ROOT_NODE
https://bugs.webkit.org/show_bug.cgi?id=60026

Return a wrapper for Node in toV8(Node*) when called with a node of type
SHADOW_ROOT_NODE instead of entering infinite recursion.

  • bindings/v8/custom/V8NodeCustom.cpp: (WebCore::toV8Slow):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r85603 r85606  
     12011-05-03  Andrey Kosyakov  <caseq@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        [Chromium] toV8(Node*) will enter infinite recursion when called with a node of type SHADOW_ROOT_NODE
     6        https://bugs.webkit.org/show_bug.cgi?id=60026
     7
     8        Return a wrapper for Node in toV8(Node*) when called with a node of type
     9        SHADOW_ROOT_NODE instead of entering infinite recursion.
     10
     11        * bindings/v8/custom/V8NodeCustom.cpp:
     12        (WebCore::toV8Slow):
     13
    1142011-05-02  Adam Roben  <aroben@apple.com>
    215
  • trunk/Source/WebCore/bindings/v8/custom/V8NodeCustom.cpp

    r84520 r85606  
    165165    case Node::DOCUMENT_FRAGMENT_NODE:
    166166        return toV8(static_cast<DocumentFragment*>(impl), forceNewObject);
    167     case Node::SHADOW_ROOT_NODE:
    168         return toV8(static_cast<ShadowRoot*>(impl), forceNewObject);
    169167    case Node::NOTATION_NODE:
    170168        return toV8(static_cast<Notation*>(impl), forceNewObject);
     169    case Node::SHADOW_ROOT_NODE: // There's no IDL class for ShadowRoot, fall-through to default and use Node instead.
    171170    default: break; // XPATH_NAMESPACE_NODE
    172171    }
Note: See TracChangeset for help on using the changeset viewer.