1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * https://html.spec.whatwg.org/multipage/history.html#the-location-interface
9 * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
10 * Opera Software ASA. You are granted a license to use, reproduce
11 * and create derivative works of this document.
16 InstrumentedProps=(ancestorOrigins)]
18 [Throws, CrossOriginWritable, NeedsSubjectPrincipal]
19 stringifier attribute USVString href;
20 [Throws, NeedsSubjectPrincipal]
21 readonly attribute USVString origin;
22 [Throws, NeedsSubjectPrincipal]
23 attribute USVString protocol;
24 [Throws, NeedsSubjectPrincipal]
25 attribute USVString host;
26 [Throws, NeedsSubjectPrincipal]
27 attribute USVString hostname;
28 [Throws, NeedsSubjectPrincipal]
29 attribute USVString port;
30 [Throws, NeedsSubjectPrincipal]
31 attribute USVString pathname;
32 [Throws, NeedsSubjectPrincipal]
33 attribute USVString search;
34 [Throws, NeedsSubjectPrincipal]
35 attribute USVString hash;
37 [Throws, NeedsSubjectPrincipal]
38 undefined assign(USVString url);
40 [Throws, CrossOriginCallable, NeedsSubjectPrincipal]
41 undefined replace(USVString url);
43 // XXXbz there is no forceget argument in the spec! See bug 1037721.
44 [Throws, NeedsSubjectPrincipal]
45 undefined reload(optional boolean forceget = false);
47 // Bug 1085214 [SameObject] readonly attribute USVString[] ancestorOrigins;