Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp

Issue 1813823002: Handle the case where the v8 scriptable object has a property defined with value undefined. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp
index 9e822865bf01303de5c8a28489329e3d4887a8bc..c07c7ab5dbc4e56ffe8fe678589c286bc6ccd1b6 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp
@@ -61,7 +61,7 @@ void getScriptableObjectProperty(PropertyType property, const v8::PropertyCallba
// We quit here to allow the binding code to look up general HTMLObjectElement properties
// if they are not overriden by plugin.
- if (value->IsUndefined())
+ if (value->IsUndefined() && !instance->Has(info.GetIsolate()->GetCurrentContext(), property).FromJust())
return;
v8SetReturnValue(info, value);

Powered by Google App Engine
This is Rietveld 408576698