Changeset 54581 in webkit
- Timestamp:
- Feb 9, 2010 7:09:25 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r54576 r54581 1 2010-02-09 Anton Muhin <antonm@chromium.org> 2 3 Reviewed by Nate Chapin. 4 5 [v8] Check if returned wrapper is empty before operating on it. 6 https://bugs.webkit.org/show_bug.cgi?id=34746 7 8 * bindings/v8/custom/V8DocumentCustom.cpp: 9 (WebCore::toV8): 10 * bindings/v8/custom/V8HTMLDocumentCustom.cpp: 11 (WebCore::toV8): 12 * bindings/v8/custom/V8SVGDocumentCustom.cpp: 13 (WebCore::toV8): 14 1 15 2010-02-09 Mikhail Naganov <mnaganov@chromium.org> 2 16 -
trunk/WebCore/bindings/v8/custom/V8DocumentCustom.cpp
r54305 r54581 146 146 return toV8(static_cast<SVGDocument*>(impl), forceNewObject); 147 147 v8::Handle<v8::Value> wrapper = V8Document::wrap(impl, forceNewObject); 148 if (wrapper.IsEmpty()) 149 return wrapper; 148 150 if (!V8IsolatedContext::getEntered()) { 149 151 if (V8Proxy* proxy = V8Proxy::retrieve(impl->frame())) -
trunk/WebCore/bindings/v8/custom/V8HTMLDocumentCustom.cpp
r54305 r54581 205 205 return v8::Null(); 206 206 v8::Handle<v8::Object> wrapper = V8HTMLDocument::wrap(impl, forceNewObject); 207 if (wrapper.IsEmpty()) 208 return wrapper; 207 209 if (!V8IsolatedContext::getEntered()) { 208 210 if (V8Proxy* proxy = V8Proxy::retrieve(impl->frame())) -
trunk/WebCore/bindings/v8/custom/V8SVGDocumentCustom.cpp
r54153 r54581 42 42 return v8::Null(); 43 43 v8::Handle<v8::Object> wrapper = V8SVGDocument::wrap(impl, forceNewObject); 44 if (wrapper.IsEmpty()) 45 return wrapper; 44 46 if (!V8IsolatedContext::getEntered()) { 45 47 if (V8Proxy* proxy = V8Proxy::retrieve(impl->frame()))
Note: See TracChangeset
for help on using the changeset viewer.