2012-12-22 00:27:27 -08: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 14:38:08 -07:00
|
|
|
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
|
2012-12-22 00:27:27 -08:00
|
|
|
* Opera Software ASA. You are granted a license to use, reproduce
|
|
|
|
* and create derivative works of this document.
|
|
|
|
*/
|
|
|
|
|
2014-07-11 16:30:26 -07:00
|
|
|
[Unforgeable]
|
2013-04-10 10:49:06 -07:00
|
|
|
interface Location {
|
2014-07-11 16:31:46 -07:00
|
|
|
[Throws]
|
2012-12-22 00:27:27 -08:00
|
|
|
void assign(DOMString url);
|
2014-07-11 16:32:14 -07:00
|
|
|
[Throws, CrossOriginCallable]
|
2012-12-22 00:27:27 -08:00
|
|
|
void replace(DOMString url);
|
2014-07-11 16:31:46 -07:00
|
|
|
// XXXbz there is no forceget argument in the spec! See bug 1037721.
|
|
|
|
[Throws]
|
|
|
|
void reload(optional boolean forceget = false);
|
2012-12-22 00:27:27 -08:00
|
|
|
};
|
2014-11-03 00:18:22 -08:00
|
|
|
// No support for .searchParams on Location yet. See bug 1082734.
|
|
|
|
|
2014-08-07 17:45:21 -07:00
|
|
|
Location implements URLUtils;
|