2012-12-22 12:27:27 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#the-location-interface
|
|
|
|
*
|
2013-05-07 01:38:08 +04:00
|
|
|
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
|
2012-12-22 12:27:27 +04:00
|
|
|
* Opera Software ASA. You are granted a license to use, reproduce
|
|
|
|
* and create derivative works of this document.
|
|
|
|
*/
|
|
|
|
|
2016-04-30 05:59:40 +03:00
|
|
|
[Unforgeable, NonOrdinaryGetPrototypeOf]
|
2013-04-10 21:49:06 +04:00
|
|
|
interface Location {
|
2015-11-23 23:05:26 +03:00
|
|
|
// Bug 824857: no support for stringifier attributes yet.
|
|
|
|
// stringifier attribute USVString href;
|
|
|
|
|
|
|
|
// Bug 824857 should remove this.
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
stringifier;
|
|
|
|
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, CrossOriginWritable, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString href;
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
readonly attribute USVString origin;
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString protocol;
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString host;
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString hostname;
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString port;
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString pathname;
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString search;
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString hash;
|
|
|
|
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, UnsafeInPrerendering, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
void assign(USVString url);
|
2015-11-23 23:05:26 +03:00
|
|
|
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, CrossOriginCallable, UnsafeInPrerendering, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
void replace(USVString url);
|
2015-11-23 23:05:26 +03:00
|
|
|
|
2014-07-12 03:31:46 +04:00
|
|
|
// XXXbz there is no forceget argument in the spec! See bug 1037721.
|
2016-09-29 09:55:21 +03:00
|
|
|
[Throws, UnsafeInPrerendering, NeedsSubjectPrincipal]
|
2014-07-12 03:31:46 +04:00
|
|
|
void reload(optional boolean forceget = false);
|
2014-11-03 11:18:22 +03:00
|
|
|
|
2015-11-23 23:05:26 +03:00
|
|
|
// Bug 1085214 [SameObject] readonly attribute USVString[] ancestorOrigins;
|
|
|
|
};
|