2012-12-22 08:27:27 +00: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-06 21:38:08 +00:00
|
|
|
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
|
2012-12-22 08:27:27 +00:00
|
|
|
* Opera Software ASA. You are granted a license to use, reproduce
|
|
|
|
* and create derivative works of this document.
|
|
|
|
*/
|
|
|
|
|
2016-04-30 02:59:40 +00:00
|
|
|
[Unforgeable, NonOrdinaryGetPrototypeOf]
|
2013-04-10 17:49:06 +00:00
|
|
|
interface Location {
|
2015-11-23 20:05:26 +00:00
|
|
|
// Bug 824857: no support for stringifier attributes yet.
|
|
|
|
// stringifier attribute USVString href;
|
|
|
|
|
|
|
|
// Bug 824857 should remove this.
|
|
|
|
[Throws]
|
|
|
|
stringifier;
|
|
|
|
|
|
|
|
[Throws, CrossOriginWritable]
|
|
|
|
attribute USVString href;
|
|
|
|
[Throws]
|
|
|
|
readonly attribute USVString origin;
|
|
|
|
[Throws]
|
|
|
|
attribute USVString protocol;
|
|
|
|
[Throws]
|
|
|
|
attribute USVString host;
|
|
|
|
[Throws]
|
|
|
|
attribute USVString hostname;
|
|
|
|
[Throws]
|
|
|
|
attribute USVString port;
|
|
|
|
[Throws]
|
|
|
|
attribute USVString pathname;
|
|
|
|
[Throws]
|
|
|
|
attribute USVString search;
|
|
|
|
[Throws]
|
|
|
|
attribute USVString hash;
|
|
|
|
|
2015-01-14 13:35:02 +00:00
|
|
|
[Throws, UnsafeInPrerendering]
|
2015-11-23 20:05:26 +00:00
|
|
|
void assign(USVString url);
|
2015-11-23 20:05:26 +00:00
|
|
|
|
2015-01-14 13:35:02 +00:00
|
|
|
[Throws, CrossOriginCallable, UnsafeInPrerendering]
|
2015-11-23 20:05:26 +00:00
|
|
|
void replace(USVString url);
|
2015-11-23 20:05:26 +00:00
|
|
|
|
2014-07-11 23:31:46 +00:00
|
|
|
// XXXbz there is no forceget argument in the spec! See bug 1037721.
|
2015-01-14 13:35:02 +00:00
|
|
|
[Throws, UnsafeInPrerendering]
|
2014-07-11 23:31:46 +00:00
|
|
|
void reload(optional boolean forceget = false);
|
2014-11-03 08:18:22 +00:00
|
|
|
|
2015-11-23 20:05:26 +00:00
|
|
|
// Bug 1085214 [SameObject] readonly attribute USVString[] ancestorOrigins;
|
|
|
|
};
|