tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Location.webidl (1927B)


      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/.
      5 *
      6 * The origin of this IDL file is
      7 * https://html.spec.whatwg.org/multipage/history.html#the-location-interface
      8 *
      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.
     12 */
     13 
     14 [LegacyUnforgeable,
     15 Exposed=Window,
     16 InstrumentedProps=(ancestorOrigins)]
     17 interface Location {
     18  [Throws, CrossOriginWritable, NeedsSubjectPrincipal]
     19  stringifier attribute UTF8String href;
     20  [Throws, NeedsSubjectPrincipal]
     21  readonly attribute UTF8String origin;
     22  [Throws, NeedsSubjectPrincipal]
     23           attribute UTF8String protocol;
     24  [Throws, NeedsSubjectPrincipal]
     25           attribute UTF8String host;
     26  [Throws, NeedsSubjectPrincipal]
     27           attribute UTF8String hostname;
     28  [Throws, NeedsSubjectPrincipal]
     29           attribute UTF8String port;
     30  [Throws, NeedsSubjectPrincipal]
     31           attribute UTF8String pathname;
     32  [Throws, NeedsSubjectPrincipal]
     33           attribute UTF8String search;
     34  [Throws, NeedsSubjectPrincipal]
     35           attribute UTF8String hash;
     36 
     37  [Throws, NeedsSubjectPrincipal]
     38  undefined assign(UTF8String url);
     39 
     40  [Throws, CrossOriginCallable, NeedsSubjectPrincipal]
     41  undefined replace(UTF8String url);
     42 
     43  // XXXbz there is no forceget argument in the spec!  See bug 1037721.
     44  [Throws, NeedsSubjectPrincipal]
     45  undefined reload(optional boolean forceget = false);
     46 
     47  // https://html.spec.whatwg.org/#dom-location-ancestororigins
     48  [Throws, LegacyUnforgeable, GetterNeedsSubjectPrincipal, Pref="dom.location.ancestorOrigins.enabled"]
     49  readonly attribute DOMStringList ancestorOrigins;
     50 };