Chromium Code Reviews| Index: Source/core/inspector/InjectedScriptSource.js |
| diff --git a/Source/core/inspector/InjectedScriptSource.js b/Source/core/inspector/InjectedScriptSource.js |
| index 234c0a831a3eb73c6ac57de6a3ba89256daebddb..0b454f1b96f9e346bb86e16e30e442e397763ee5 100644 |
| --- a/Source/core/inspector/InjectedScriptSource.js |
| +++ b/Source/core/inspector/InjectedScriptSource.js |
| @@ -555,7 +555,7 @@ InjectedScript.prototype = { |
| if (descriptor) { |
| if (accessorPropertiesOnly && !("get" in descriptor || "set" in descriptor)) |
| continue; |
| - if ("get" in descriptor && "set" in descriptor && InjectedScriptHost.isPopularDOMObject(object) && name != "__proto__") { |
| + if ("get" in descriptor && "set" in descriptor && name != "__proto__" && InjectedScriptHost.isDOMAttributeWithNoSideEffect(object, name)) { |
|
haraken
2015/03/05 15:14:26
If pfeldman@ is fine, IMHO, we should do the black
pfeldman
2015/03/05 17:42:54
I'm fine with it as long as the instanceof Request
haraken
2015/03/06 02:29:19
If we want to implement the instanceof Request/Res
|
| descriptor.value = InjectedScriptHost.suppressWarningsAndCallFunction(function(attribute) { return this[attribute]; }, object, [name]); |
| delete descriptor.get; |
| delete descriptor.set; |