Make History attributes and methods throw

This commit is contained in:
Connor Brewster 2017-05-02 11:22:36 -06:00
parent 5e2d383274
commit 5c53f5b7fa
2 changed files with 26 additions and 12 deletions

View file

@ -7,12 +7,20 @@
// https://html.spec.whatwg.org/multipage/#the-history-interface
[Exposed=(Window,Worker)]
interface History {
[Throws]
readonly attribute unsigned long length;
// [Throws]
// attribute ScrollRestoration scrollRestoration;
// [Throws]
// readonly attribute any state;
[Throws] void go(optional long delta = 0);
[Throws]
void go(optional long delta = 0);
[Throws]
void back();
[Throws]
void forward();
// [Throws]
// void pushState(any data, DOMString title, optional USVString? url = null);
// [Throws]
// void replaceState(any data, DOMString title, optional USVString? url = null);
};