| Index: core/frame/History.idl
|
| diff --git a/core/frame/History.idl b/core/frame/History.idl
|
| index 5462033850909d3376e317015f46f12a648cdc13..bec089019f093ccccc4105629938b53832ba3a84 100644
|
| --- a/core/frame/History.idl
|
| +++ b/core/frame/History.idl
|
| @@ -25,26 +25,20 @@
|
|
|
| // https://html.spec.whatwg.org/#the-history-interface
|
|
|
| +enum ScrollRestoration {"auto", "manual"};
|
| +
|
| [
|
| GarbageCollected,
|
| ] interface History {
|
| - // TODO(philipj): length is long in the spec, use that or change the spec:
|
| - // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28789
|
| readonly attribute unsigned long length;
|
| + [RuntimeEnabled=ScrollRestoration, Measure] attribute ScrollRestoration scrollRestoration;
|
| // TODO(philipj): The SerializedScriptValue type should be any.
|
| [CachedAttribute=stateChanged] readonly attribute SerializedScriptValue state;
|
| - // TODO(philipj): delta does not have a default value in the spec:
|
| - // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28790
|
| [CallWith=ExecutionContext] void go(optional long delta = 0);
|
| [CallWith=ExecutionContext] void back();
|
| [CallWith=ExecutionContext] void forward();
|
| // TODO(philipj): The SerializedScriptValue types should be any.
|
| // TODO(philipj): The title arguments should simply be 'DOMString title'.
|
| - // Note: The options arguments are part of the Scroll Restoration API.
|
| - [RaisesException] void pushState(SerializedScriptValue data, [TreatUndefinedAs=NullString] DOMString? title, optional DOMString? url = null, optional StateOptions options);
|
| - [RaisesException] void replaceState(SerializedScriptValue data, [TreatUndefinedAs=NullString] DOMString? title, optional DOMString? url = null, optional StateOptions options);
|
| -
|
| - // Experimental Scroll Restoration API
|
| - // https://www.chromestatus.com/features/5657284784947200
|
| - [RuntimeEnabled=ScrollRestoration] readonly attribute StateOptions options;
|
| + [RaisesException] void pushState(SerializedScriptValue data, [TreatUndefinedAs=NullString] DOMString? title, optional DOMString? url = null);
|
| + [RaisesException] void replaceState(SerializedScriptValue data, [TreatUndefinedAs=NullString] DOMString? title, optional DOMString? url = null);
|
| };
|
|
|