Implement initial part of history.state

This commit is contained in:
Connor Brewster 2017-10-26 14:47:31 -05:00
parent 76b4e5cefb
commit 198ea8f767
26 changed files with 130 additions and 105 deletions

View file

@ -11,16 +11,16 @@ interface History {
readonly attribute unsigned long length;
// [Throws]
// attribute ScrollRestoration scrollRestoration;
// [Throws]
// readonly attribute any state;
[Throws]
readonly attribute any state;
[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);
[Throws]
void pushState(any data, DOMString title, optional USVString? url = null);
[Throws]
void replaceState(any data, DOMString title, optional USVString? url = null);
};