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

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: Addressing nits Created 4 years, 1 month 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 a0db267f80be05e3204c5d0571e613c0c0e52834..9f7a2414bce05723b8e3f1ef54f4334061a8725f 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;
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp ('k') | third_party/WebKit/Source/core/frame/Frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698