dom/webidl/History.webidl
author Mike de Boer <mdeboer@mozilla.com>
Fri, 10 Apr 2015 13:23:14 +0200
changeset 267072 719d7e41abeac7fee33b6d7ab4676ed6b537c3af
parent 252543 c556f8cd6f3a526d4a86087f031c7d8d6f5ccdb7
child 314648 84163eb4992b55414c20f471daacca9ac475d132
permissions -rw-r--r--
Bug 1132301 - Part 5: Add unit tests for the Social Sharing feature of Loop. r=Standard8, a=lizzard

/* -*- 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-history-interface
 *
 * © 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 History {
  [Throws]
  readonly attribute unsigned long length;
  [Throws]
  readonly attribute any state;
  [Throws, UnsafeInPrerendering]
  void go(optional long delta = 0);
  [Throws, UnsafeInPrerendering]
  void back();
  [Throws, UnsafeInPrerendering]
  void forward();
  [Throws]
  void pushState(any data, DOMString title, optional DOMString? url = null);
  [Throws]
  void replaceState(any data, DOMString title, optional DOMString? url = null);
};