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

Unified Diff: core/frame/Location.idl

Issue 155973006: Roll IDL to 1750 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 10 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
« no previous file with comments | « core/frame/ImageBitmap.idl ('k') | core/frame/WebKitPoint.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/frame/Location.idl
diff --git a/core/frame/Location.idl b/core/frame/Location.idl
index 1d1c89389ebe7e181ee8649fc3b52e6f1ab65b66..5ce29901ece1c12697f524c54e386b17d61a3071 100644
--- a/core/frame/Location.idl
+++ b/core/frame/Location.idl
@@ -27,16 +27,21 @@
*/
[
- CheckSecurity
+ CheckSecurity=Frame,
] interface Location {
- [SetterCallWith=ActiveWindow&FirstWindow, DoNotCheckSecurityOnSetter, Unforgeable] attribute DOMString href;
+ // |assign|, |replace|, and *writing* |href| do not require a security
+ // check, as they *change* the page, and thus these do not change any
+ // property of an *existing* document at a different origin.
+ // However, *reading* |href|, or accessing any component, is a security
+ // problem, since that allows tracking navigation.
+ [SetterCallWith=ActiveWindow&FirstWindow, DoNotCheckSecurity=Setter, Unforgeable] attribute DOMString href;
- [CallWith=ActiveWindow&FirstWindow, DoNotCheckSecurity, Unforgeable, ReadOnly, PerWorldBindings, ActivityLogging=AccessForIsolatedWorlds] void assign([Default=Undefined] optional DOMString url);
- [CallWith=ActiveWindow&FirstWindow, DoNotCheckSecurity, Unforgeable, ReadOnly, PerWorldBindings, ActivityLogging=AccessForIsolatedWorlds] void replace([Default=Undefined] optional DOMString url);
+ [CallWith=ActiveWindow&FirstWindow, DoNotCheckSecurity, Unforgeable, ReadOnly, PerWorldBindings, ActivityLogging=ForIsolatedWorlds] void assign(DOMString url);
+ [CallWith=ActiveWindow&FirstWindow, DoNotCheckSecurity, Unforgeable, ReadOnly, PerWorldBindings, ActivityLogging=ForIsolatedWorlds] void replace(DOMString url);
[CallWith=ActiveWindow, Unforgeable, ReadOnly] void reload();
// URI decomposition attributes
- [SetterCallWith=ActiveWindow&FirstWindow, SetterRaisesException] attribute DOMString protocol;
+ [SetterCallWith=ActiveWindow&FirstWindow, RaisesException=Setter] attribute DOMString protocol;
[SetterCallWith=ActiveWindow&FirstWindow] attribute DOMString host;
[SetterCallWith=ActiveWindow&FirstWindow] attribute DOMString hostname;
[SetterCallWith=ActiveWindow&FirstWindow] attribute DOMString port;
« no previous file with comments | « core/frame/ImageBitmap.idl ('k') | core/frame/WebKitPoint.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698