Changeset 94831 in webkit
- Timestamp:
- Sep 8, 2011 8:20:59 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r94828 r94831 1 2011-09-08 James Weatherall <wez@chromium.org> 2 3 Release the reference to the HTMLPlugInElement's script object, when the element is removed from the document. This breaks a cyclical reference that would otherwise cause the element to be retained until the document is torn down. 4 https://bugs.webkit.org/show_bug.cgi?id=66181 5 6 Reviewed by Anders Carlsson. 7 8 No new tests - no functional change. 9 10 * html/HTMLPlugInElement.cpp: 11 (WebCore::HTMLPlugInElement::removedFromDocument): 12 * html/HTMLPlugInElement.h: 13 1 14 2011-09-08 Daniel Bates <dbates@webkit.org> 2 15 -
trunk/Source/WebCore/html/HTMLPlugInElement.cpp
r91404 r94831 80 80 81 81 HTMLFrameOwnerElement::detach(); 82 } 83 84 void HTMLPlugInElement::removedFromDocument() 85 { 86 #if ENABLE(NETSCAPE_PLUGIN_API) 87 if (m_NPObject) { 88 _NPN_ReleaseObject(m_NPObject); 89 m_NPObject = 0; 90 } 91 #endif 92 93 HTMLFrameOwnerElement::removedFromDocument(); 82 94 } 83 95 -
trunk/Source/WebCore/html/HTMLPlugInElement.h
r91404 r94831 58 58 59 59 virtual void detach(); 60 60 virtual void removedFromDocument(); 61 61 virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const; 62 62 virtual void parseMappedAttribute(Attribute*);
Note: See TracChangeset
for help on using the changeset viewer.