Steps to reproduce: 1. Open the attached sample "index.html" in Safari 2. Hold down "context menu here" to open the contextual menu Expected results: It shows the URL and preview of https://www.apple.com/ Actual results: It shows the URL and preview of https://www.webkit.org/ Note that if you copy or tap the link, you'll get https://www.apple.com/ rather than https://www.webkit.org/. Here's the relevant HTML source: ``` <p><a href="https://www.webkit.org/">context menu here</a></p> <script>document.querySelector("a").addEventListener("mousedown", (event) => { event.target.href = "https://www.apple.com/"; });</script> ```
<rdar://104512680>
Created attachment 464887 [details] demo