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

Unified Diff: Source/bindings/modules/v8/ModuleBindingsInitializer.cpp

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
Index: Source/bindings/modules/v8/ModuleBindingsInitializer.cpp
diff --git a/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp b/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp
index e9fb320c775fbbc87014bf29fc5d1bbf2042468b..5362f838f13752f761fdfcd84bed484fc9276e6f 100644
--- a/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp
+++ b/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp
@@ -8,6 +8,8 @@
#include "bindings/core/v8/ModuleProxy.h"
#include "bindings/core/v8/V8PerIsolateData.h"
#include "bindings/modules/v8/SerializedScriptValueForModulesFactory.h"
+#include "bindings/modules/v8/V8Request.h"
+#include "bindings/modules/v8/V8Response.h"
#include "core/dom/ExecutionContext.h"
namespace blink {
@@ -20,6 +22,10 @@ void ModuleBindingsInitializer::init()
{
initPartialInterfacesInModules();
SerializedScriptValueFactory::initialize(new SerializedScriptValueForModulesFactory);
+
+ // Makes the Inspector not show (i.e. not evaluate) the following DOM attributes.
+ AttributesWithObservableSideEffectOnGet::add(&V8Request::wrapperTypeInfo, "body");
+ AttributesWithObservableSideEffectOnGet::add(&V8Response::wrapperTypeInfo, "body");
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698