[Webkit-unassigned] [Bug 221546] New: history.back() in a new tab incorrectly loads its parent page in the same tab, instead of closing it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 8 05:47:16 PST 2021


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

            Bug ID: 221546
           Summary: history.back() in a new tab incorrectly loads its
                    parent page in the same tab, instead of closing it
           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 419580

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

demonstration video 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_bug2.html


Step to reproduce the issue:
1. Open a new tab via target="_blank"
2. history.back()


Expected results:

history.back() should do nothing (like other browsers) or close the new tab (just like the back button at the bottom left)


Actually results:

history.back() loads its parent page in the same tab, and doesn't close the new tab.
As a result, the tabs look like they are duplicated.
Please check the attached video.


Note: This bug might be related to Issue 8980387:
https://feedbackassistant.apple.com/feedback/8980387

-- 
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/528b54fc/attachment-0001.htm>


More information about the webkit-unassigned mailing list