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

Side by Side Diff: Source/core/dom/Document.idl

Issue 884213006: Make document.location unforgeable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: drop DoNotCheckSecurity Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/dom/HTMLDocument/document-special-properties-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 readonly attribute HTMLCollection embeds; 121 readonly attribute HTMLCollection embeds;
122 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins; 122 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins;
123 readonly attribute HTMLCollection links; 123 readonly attribute HTMLCollection links;
124 readonly attribute HTMLCollection forms; 124 readonly attribute HTMLCollection forms;
125 readonly attribute HTMLCollection scripts; 125 readonly attribute HTMLCollection scripts;
126 readonly attribute HTMLCollection anchors; 126 readonly attribute HTMLCollection anchors;
127 readonly attribute DOMString lastModified; 127 readonly attribute DOMString lastModified;
128 128
129 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); 129 [PerWorldBindings] NodeList getElementsByName(DOMString elementName);
130 130
131 [PutForwards=href] readonly attribute Location location; 131 [PutForwards=href, Unforgeable] readonly attribute Location location;
132 132
133 // IE extensions 133 // IE extensions
134 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs =NullString] attribute DOMString charset; 134 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs =NullString] attribute DOMString charset;
135 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read only attribute DOMString defaultCharset; 135 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read only attribute DOMString defaultCharset;
136 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat e; 136 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat e;
137 137
138 Element elementFromPoint(long x, long y); 138 Element elementFromPoint(long x, long y);
139 [MeasureAs=DocumentCaretRangeFromPoint] 139 [MeasureAs=DocumentCaretRangeFromPoint]
140 Range caretRangeFromPoint([Default=Undefined] optional long x, 140 Range caretRangeFromPoint([Default=Undefined] optional long x,
141 [Default=Undefined] optional long y); 141 [Default=Undefined] optional long y);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting 206 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting
207 // document in the console. It's possible http://crbug.com/43394 will resolv e this. 207 // document in the console. It's possible http://crbug.com/43394 will resolv e this.
208 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState; 208 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState;
209 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 209 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
210 210
211 readonly attribute HTMLScriptElement currentScript; 211 readonly attribute HTMLScriptElement currentScript;
212 }; 212 };
213 213
214 Document implements GlobalEventHandlers; 214 Document implements GlobalEventHandlers;
215 Document implements ParentNode; 215 Document implements ParentNode;
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/HTMLDocument/document-special-properties-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698