[Webkit-unassigned] [Bug 251857] New: Context menu shows wrong URL and preview when mousedown changes anchor href
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 7 09:11:29 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=251857
Bug ID: 251857
Summary: Context menu shows wrong URL and preview when
mousedown changes anchor href
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Keywords: InRadar
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: cdumez at apple.com
CC: kkinnunen at apple.com, thorton at apple.com,
webkit-bug-importer at group.apple.com,
wenson_hsieh at apple.com
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>
```
--
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/20230207/7bba273e/attachment.htm>
More information about the webkit-unassigned
mailing list