author Andrea Marchesini <>
Mon, 23 Nov 2015 20:05:26 +0000
changeset 295314 adc09292d0240b3e5a39e633106545cd00364f4e
parent 295313 058e26487efa4bac4d6dd2b5d04e1168f14c735a
child 322293 1c286374a5183f6407a9fef085e9e930fee16ffe
permissions -rw-r--r--
Bug 1227206 - Location.assign and Location.replace should use USVStrings instead DOMStrings, r=bz

/* -*- 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
 * The origin of this IDL file is
 * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
 * Opera Software ASA. You are granted a license to use, reproduce
 * and create derivative works of this document.

interface Location {
  // Bug 824857: no support for stringifier attributes yet.
  //  stringifier attribute USVString href;

  // Bug 824857 should remove this.

  [Throws, CrossOriginWritable]
           attribute USVString href;
  readonly attribute USVString origin;
           attribute USVString protocol;
           attribute USVString host;
           attribute USVString hostname;
           attribute USVString port;
           attribute USVString pathname;
           attribute USVString search;
           attribute USVString hash;

  [Throws, UnsafeInPrerendering]
  void assign(USVString url);

  [Throws, CrossOriginCallable, UnsafeInPrerendering]
  void replace(USVString url);

  // XXXbz there is no forceget argument in the spec!  See bug 1037721.
  [Throws, UnsafeInPrerendering]
  void reload(optional boolean forceget = false);

  // Bug 1085214 [SameObject] readonly attribute USVString[] ancestorOrigins;