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

Unified Diff: third_party/WebKit/Source/bindings/IDLExtendedAttributes.md

Issue 2668753006: Special-case LocalDOMWindow for same-origin access in bindings. (Closed)
Patch Set: . Created 3 years, 11 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/IDLExtendedAttributes.md
diff --git a/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md b/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
index 9d5dd81304b186b575fed42eeb257db22b6a2ae9..8b4dbc7dc74bfd9e02af7f29e82592651db8bef6 100644
--- a/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
+++ b/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
@@ -1478,6 +1478,20 @@ reads would leak cross-origin information.
With both `Getter` and `Setter`, allows both cross-origin reads and cross-origin
writes. This is used for the `Window.location` attribute.
+### [SameOriginImplementedAs] _(i)
+
+Summary: Used in conjunction with (#_CrossOrigin_i). Allows a different C++
+class to be used for a same-origin access.
+
+Usage for interfaces:
+```webidl
+[
+ SameOriginImplementedAs=LocalDOMWindow,
+] interface Window {
+ ...
+};
+```
+
### [CustomConstructor] _(i)_
Summary: They allow you to write custom bindings for constructors.

Powered by Google App Engine
This is Rietveld 408576698