Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1095)

Unified Diff: Source/core/frame/History.idl

Issue 927213004: Accept options in history APIs to allow scroll restoration to be disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/History.cpp ('k') | Source/core/frame/StateOptions.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/History.idl
diff --git a/Source/core/frame/History.idl b/Source/core/frame/History.idl
index 81a2839ca7f7c6877f1e8367d1ef1a938d207f67..1da581a37fc43c5bb89fb4b4368c22e1f5dcf631 100644
--- a/Source/core/frame/History.idl
+++ b/Source/core/frame/History.idl
@@ -28,12 +28,13 @@
] interface History {
readonly attribute unsigned long length;
[CachedAttribute=stateChanged] readonly attribute SerializedScriptValue state;
+ [RuntimeEnabled=ScrollRestoration] readonly attribute StateOptions options;
[CallWith=ExecutionContext] void back();
[CallWith=ExecutionContext] void forward();
[CallWith=ExecutionContext] void go([Default=Undefined] optional long distance);
// FIXME: the title arguments below should simply be 'DOMString title'.
- [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);
+ [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);
};
« no previous file with comments | « Source/core/frame/History.cpp ('k') | Source/core/frame/StateOptions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698