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

Side by Side Diff: third_party/WebKit/Source/core/frame/Location.idl

Issue 2826393004: v8binding: Makes Location's wrapper objects alive, really. (Closed)
Patch Set: Added a layout test. Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/Location.h ('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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 12 matching lines...) Expand all
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 // https://html.spec.whatwg.org/multipage/browsers.html#location 29 // https://html.spec.whatwg.org/multipage/browsers.html#location
30 30
31 [ 31 [
32 CheckSecurity=Receiver, 32 CheckSecurity=Receiver,
33 DependentLifetime,
33 Unforgeable, 34 Unforgeable,
34 ] interface Location { 35 ] interface Location {
35 // |assign| is *NOT* cross-origin accessible in the spec, but it needs 36 // |assign| is *NOT* cross-origin accessible in the spec, but it needs
36 // the Incumbent realm when navigating the page. See the below link. 37 // the Incumbent realm when navigating the page. See the below link.
37 // https://html.spec.whatwg.org/multipage/browsers.html#location-object-navi gate 38 // https://html.spec.whatwg.org/multipage/browsers.html#location-object-navi gate
38 // Unfortunately, Blink does not support the Incumbent realm so far, and 39 // Unfortunately, Blink does not support the Incumbent realm so far, and
39 // we need a hack of assignOriginSafeMethodGetter to simulate the Incumbent 40 // we need a hack of assignOriginSafeMethodGetter to simulate the Incumbent
40 // realm. Thus, we have [CrossOrigin] here just for the hack although 41 // realm. Thus, we have [CrossOrigin] here just for the hack although
41 // |assign| itself is not cross-origin accessible. 42 // |assign| itself is not cross-origin accessible.
42 // TODO(yukishiino): Remove [CrossOrigin] once we support the Incumbent 43 // TODO(yukishiino): Remove [CrossOrigin] once we support the Incumbent
(...skipping 24 matching lines...) Expand all
67 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString hostname; 68 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString hostname;
68 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString port; 69 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString port;
69 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString pathname; 70 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString pathname;
70 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString search; 71 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString search;
71 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString hash; 72 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString hash;
72 73
73 // TODO(foolip): Location does not have a valueOf() override in the spec. 74 // TODO(foolip): Location does not have a valueOf() override in the spec.
74 // See the comment in Location.h for the purpose of this. 75 // See the comment in Location.h for the purpose of this.
75 [NotEnumerable, CallWith=ThisValue] any valueOf(); 76 [NotEnumerable, CallWith=ThisValue] any valueOf();
76 }; 77 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Location.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698