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

Unified Diff: third_party/WebKit/Source/core/dom/Document.idl

Issue 2254533002: [FeaturePolicy] Initial implementation of Feature Policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fp-flag
Patch Set: Don't leak FeaturePolicy 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/core/dom/Document.idl
diff --git a/third_party/WebKit/Source/core/dom/Document.idl b/third_party/WebKit/Source/core/dom/Document.idl
index 42a8f0f060727a43d49ed3c4508a5d8a6f68a634..01cd1376163e151a732afada1b706de03541a44e 100644
--- a/third_party/WebKit/Source/core/dom/Document.idl
+++ b/third_party/WebKit/Source/core/dom/Document.idl
@@ -90,9 +90,9 @@ interface Document : Node {
// resource metadata management
[PutForwards=href, Unforgeable] readonly attribute Location? location;
- [RaisesException=Setter] attribute DOMString domain;
+ [RaisesException=Setter, FeaturePolicy=DocumentDomain] attribute DOMString domain;
readonly attribute DOMString referrer;
- [RaisesException] attribute DOMString cookie;
+ [RaisesException, FeaturePolicy=DocumentCookie] attribute DOMString cookie;
readonly attribute DOMString lastModified;
readonly attribute DocumentReadyState readyState;
@@ -114,8 +114,8 @@ interface Document : Node {
// FIXME: There are two open() methods in the spec.
[Custom, CEReactions, CustomElementCallbacks, RaisesException, MeasureAs=DocumentOpen] void open();
[CEReactions, RaisesException] void close();
- [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesException] void write(DOMString... text);
- [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesException] void writeln(DOMString... text);
+ [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesException, FeaturePolicy=DocumentWrite] void write(DOMString... text);
+ [CallWith=EnteredWindow, CEReactions, CustomElementCallbacks, RaisesException, FeaturePolicy=DocumentWrite] void writeln(DOMString... text);
// user interaction
[ImplementedAs=domWindow] readonly attribute Window? defaultView;

Powered by Google App Engine
This is Rietveld 408576698