From 9db2ea36c6daac0634615b700de36e12ff1b41f4 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Fri, 18 Aug 2017 17:27:37 -0400 Subject: [PATCH] Add history.index Closes #2710. --- source | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/source b/source index 3f2825f9f56..a49694f8ee3 100644 --- a/source +++ b/source @@ -80303,6 +80303,7 @@ interface BarProp { [Exposed=Window] interface History { + readonly attribute unsigned long index; readonly attribute unsigned long length; attribute ScrollRestoration scrollRestoration; readonly attribute any state; @@ -80315,7 +80316,16 @@ interface History {
-
window . history . length
+
window . history . index
+ +
+ +

Returns the index of the current entry of the joint session history within the + joint session history.

+ +
+ +
window . history . length
@@ -80422,6 +80432,13 @@ interface History {
+

The length attribute of the + History interface, on getting, must return the index of the current entry of + the joint session history within the top-level browsing context's joint + session history. If this History object is associated with a + Document that is not fully active, getting must instead throw a + "SecurityError" DOMException.

+

The length attribute of the History interface, on getting, must return the number of entries in the top-level browsing context's joint session history. If this