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

Unified Diff: third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl

Issue 2452073002: Freeze global prototype chain per WebIDL (Closed)
Patch Set: Also freeze named properties objects Created 4 years, 2 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/templates/interface_base.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl
index 008729d5f1802e74455337176bb62f3d434a4c67..779b9142e3ef902cb17af8b5b28a63301808d431 100644
--- a/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl
@@ -298,6 +298,10 @@ static void install{{v8_class}}Template(v8::Isolate* isolate, const DOMWrapperWo
{%- if interface_name == 'Window' and not is_partial %}{{newline}}
prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount);
{% endif %}
+ {%if is_immutable_prototype %}{{newline}}
+ // Global object prototype chain consists of Immutable Prototype Exotic Objects
+ prototypeTemplate->SetImmutableProto();
+ {% endif %}
// Register DOM constants, attributes and operations.
{% filter runtime_enabled(runtime_enabled_function) %}

Powered by Google App Engine
This is Rietveld 408576698