Index: third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js |
diff --git a/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js b/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js |
index cd41078875d5f77063214312a75a31a68ec432a4..b94f37fe23d5d95bcce4f015bf06b98f8bb8e4e0 100644 |
--- a/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js |
+++ b/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js |
@@ -562,7 +562,7 @@ InjectedScript.prototype = { |
if (descriptor) { |
if (accessorPropertiesOnly && !("get" in descriptor || "set" in descriptor)) |
continue; |
- if ("get" in descriptor && "set" in descriptor && name != "__proto__" && InjectedScriptHost.isDOMWrapper(object) && !doesAttributeHaveObservableSideEffectOnGet(object, name)) { |
+ if ("get" in descriptor && "set" in descriptor && name != "__proto__" && InjectedScriptHost.formatAccessorsAsProperties(object) && !doesAttributeHaveObservableSideEffectOnGet(object, name)) { |
descriptor.value = InjectedScriptHost.suppressWarningsAndCallFunction(function(attribute) { return this[attribute]; }, object, [name]); |
descriptor.isOwn = true; |
delete descriptor.get; |
@@ -1025,7 +1025,7 @@ InjectedScript.prototype = { |
_isHTMLAllCollection: function(object) |
{ |
// document.all is reported as undefined, but we still want to process it. |
- return (typeof object === "undefined") && InjectedScriptHost.isHTMLAllCollection(object); |
+ return (typeof object === "undefined") && !!InjectedScriptHost.subtype(object); |
}, |
/** |