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

Unified Diff: Source/core/inspector/InjectedScriptSource.js

Issue 978233002: bindings,devtools: Shows DOM attributes' values in DevTools. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698