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

Unified Diff: third_party/WebKit/Source/bindings/templates/methods.cpp

Issue 2207423002: Implement '[SecureContext]' IDL attribute for interfaces, methods and attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback. Created 4 years, 4 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/methods.cpp
diff --git a/third_party/WebKit/Source/bindings/templates/methods.cpp b/third_party/WebKit/Source/bindings/templates/methods.cpp
index c3805dcbd7cf17271c1580d42439f6e6f5588b33..fb7c401afe9c11245abd122c5714747a3ea4b5e6 100644
--- a/third_party/WebKit/Source/bindings/templates/methods.cpp
+++ b/third_party/WebKit/Source/bindings/templates/methods.cpp
@@ -687,6 +687,9 @@ v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTempla
ExecutionContext* executionContext = toExecutionContext(prototypeObject->CreationContext());
ASSERT(executionContext);
{% for method in methods | conditionally_exposed(is_partial) %}
+{% filter secure_context(method.overloads.secure_context_test_all
+ if method.overloads else
+ method.secure_context_test) %}
{% filter exposed(method.overloads.exposed_test_all
if method.overloads else
method.exposed_test) %}
@@ -697,6 +700,7 @@ const V8DOMConfiguration::MethodConfiguration {{method.name}}MethodConfiguration
V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, {{method.name}}MethodConfiguration);
{% endfilter %}{# runtime_enabled() #}
{% endfilter %}{# exposed() #}
+{% endfilter %}{# secure_context() #}
{% endfor %}
{% endif %}
{%- endmacro %}

Powered by Google App Engine
This is Rietveld 408576698