[Webkit-unassigned] [Bug 233420] New: Window.location setter not adding new history item

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 22 06:46:13 PST 2021


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

            Bug ID: 233420
           Summary: Window.location setter not adding new history item
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
               URL: https://lapcatsoftware.com/articles/history.html
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Page Loading
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gsnedders at apple.com
                CC: beidson at apple.com

<div>
<button id="mybutton1" type="button">
Change location
</button>
</div>

<script>
function MyClick1(event) {
  location = "https://underpassapp.com";
}
document.getElementById("mybutton1")
.addEventListener("click", MyClick1);
</script>

In Firefox and Chrome this creates a a new history item, in Safari this doesn't.

Perhaps https://wpt.fyi/results/html/browsers/browsing-the-web/navigating-across-documents/replace-before-load?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&q=location-setter, but likely we have some WPT coverage for this.

-- 
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/20211122/a9357502/attachment.htm>


More information about the webkit-unassigned mailing list