2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-12-22 12:27:27 +04:00
|
|
|
/* 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
|
2019-10-23 07:55:54 +03:00
|
|
|
* https://html.spec.whatwg.org/multipage/history.html#the-location-interface
|
2012-12-22 12:27:27 +04:00
|
|
|
*
|
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.
|
|
|
|
*/
|
|
|
|
|
2021-04-11 06:13:32 +03:00
|
|
|
[LegacyUnforgeable,
|
2023-09-28 22:40:50 +03:00
|
|
|
Exposed=Window,
|
|
|
|
InstrumentedProps=(ancestorOrigins)]
|
2013-04-10 21:49:06 +04:00
|
|
|
interface Location {
|
2018-10-12 18:07:18 +03:00
|
|
|
[Throws, CrossOriginWritable, NeedsSubjectPrincipal]
|
2019-10-23 07:55:54 +03:00
|
|
|
stringifier 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;
|
2023-07-31 19:06:51 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString hash;
|
|
|
|
|
2017-12-15 01:03:14 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined assign(USVString url);
|
2015-11-23 23:05:26 +03:00
|
|
|
|
2017-12-15 01:03:14 +03:00
|
|
|
[Throws, CrossOriginCallable, NeedsSubjectPrincipal]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined 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.
|
2017-12-15 01:03:14 +03:00
|
|
|
[Throws, NeedsSubjectPrincipal]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined 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;
|
|
|
|
};
|