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

Unified Diff: third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl

Issue 2207423002: Implement '[SecureContext]' IDL attribute for interfaces, methods and attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/tests/idls/core/TestInterfaceSecureContext.idl
diff --git a/third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl b/third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl
new file mode 100644
index 0000000000000000000000000000000000000000..8ca46d1936fe78d934560d11fc32add61d92efef
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceSecureContext.idl
@@ -0,0 +1,19 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[Exposed=(Window,Worker)]
+interface TestInterfaceSecureContext {
haraken 2016/08/04 13:51:17 Instead of adding a new IDL file, can we add these
Mike West 2016/08/04 17:38:15 Is there really a cost to more test result files?
bashi 2016/08/04 23:16:13 Don't we need to have a test for an interface whic
haraken 2016/08/05 04:05:38 Yeah, good point. So shall we add: - these attrib
Mike West 2016/08/05 07:42:47 Done.
+ [SecureContext] void secureContextMethod();
+ [SecureContext] attribute bool secureContextAttribute;
+ [SecureContext,RuntimeEnabled=SecureFeature] void secureContextRuntimeEnabledMethod();
+ [SecureContext,RuntimeEnabled=SecureFeature] attribute bool secureContextRuntimeEnabledAttribute;
+ [SecureContext,Exposed=Window] void secureContextWindowExposedMethod();
+ [SecureContext,Exposed=Window] attribute bool secureContextWindowExposedAttribute;
+ [SecureContext,Exposed=Worker] void secureContextWorkerExposedMethod();
+ [SecureContext,Exposed=Worker] attribute bool secureContextWorkerExposedAttribute;
+ [SecureContext,Exposed=Window,RuntimeEnabled=SecureFeature] void secureContextWindowExposedRuntimeEnabledMethod();
+ [SecureContext,Exposed=Window,RuntimeEnabled=SecureFeature] attribute bool secureContextWindowExposedRuntimeEnabledAttribute;
+ [SecureContext,Exposed=Worker,RuntimeEnabled=SecureFeature] void secureContextWorkerExposedRuntimeEnabledMethod();
+ [SecureContext,Exposed=Worker,RuntimeEnabled=SecureFeature] attribute bool secureContextWorkerExposedRuntimeEnabledAttribute;
+};

Powered by Google App Engine
This is Rietveld 408576698