[Webkit-unassigned] [Bug 221547] New: history.length starts at 2 in a new tab opened by target="_blank"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 8 05:51:43 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=221547

            Bug ID: 221547
           Summary: history.length starts at 2 in a new tab opened by
                    target="_blank"
           Product: WebKit
           Version: Safari 14
          Hardware: iPhone / iPad
                OS: iOS 14
            Status: NEW
          Severity: Major
          Priority: P2
         Component: History
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: potassium634iodide828 at gmail.com

Created attachment 419581

  --> https://bugs.webkit.org/attachment.cgi?id=419581&action=review

Demonstration of this bug

Safari version: Safari 604.1
iOS version: iOS 14.2


Sample URL:
https://ss1.xrea.com/ango.g3.xrea.com/jkkn/safari_bug.html


Step to reproduce the issue:
1. Open a new tab via target="_blank"
2. Check history.length


Expected results:

history.length should start at 1.

All of Google Chrome for iPhone (Chrios), Chrome for Android, Firefox for iOS (Fxios), Chrome for Desktop, and Firefox for Desktop return 1 correctly.

Even MDN says " For example, for a page loaded in a new tab this property returns 1."
https://developer.mozilla.org/en-US/docs/Web/API/History/length


Actually results:

history.length starts at 2.
Only Safari for iOS and iPadOS incorrectly return 2 in a new tab.


*Note:
This bug might be related to Bug 221546:
https://bugs.webkit.org/show_bug.cgi?id=221546

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210208/dd9d2200/attachment.htm>


More information about the webkit-unassigned mailing list