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

Unified Diff: third_party/WebKit/Source/bindings/scripts/v8_interface.py

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/scripts/v8_interface.py
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_interface.py b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
index 6f6901392d4538cb41b636a93a5a2e5195c500bc..db6ab27a37cba8f45ab45b335572c3c05981d572 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_interface.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
@@ -557,10 +557,10 @@ def interface_context(interface):
# Conditionally enabled members
has_conditional_attributes_on_instance = any(
- attribute['exposed_test'] and attribute['on_instance']
+ (attribute['exposed_test'] or attribute['secure_context_test']) and attribute['on_instance']
for attribute in attributes)
has_conditional_attributes_on_prototype = any(
- attribute['exposed_test'] and attribute['on_prototype']
+ (attribute['exposed_test'] or attribute['secure_context_test']) and attribute['on_prototype']
for attribute in attributes)
context.update({
'has_conditional_attributes_on_instance':
@@ -788,6 +788,7 @@ def overloads_context(interface, overloads):
'runtime_determined_lengths': runtime_determined_lengths,
'runtime_determined_maxargs': runtime_determined_maxargs,
'runtime_enabled_function_all': common_value(overloads, 'runtime_enabled_function'), # [RuntimeEnabled]
+ 'secure_context_test_all': common_value(overloads, 'secure_context_test'), # [SecureContext]
'valid_arities': (lengths
# Only need to report valid arities if there is a gap in the
# sequence of possible lengths, otherwise invalid length means
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/v8_attributes.py ('k') | third_party/WebKit/Source/bindings/scripts/v8_methods.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698