Closed sittaneumayer closed 3 years ago
Thanks for the detailed reproduction steps.
I followed your steps, and while I am able to see that the tooltip has the old URL, the actual URL that opens (or is copied when the context menu is chosen) is sanitized.
The reason for the tooltip being off is that Google turns the link into an unsanitized URL again (from a mousedown
, touchstart
or focus
handler) after the extension has sanitized it (at mousedown
). While this doesn't impact the clicked link, it does make the tooltip ugly. I can try to counter this by sanitizing the URL ASAP whenever the mouse pointer moves (or on a timer after sanitizing the link once), but that does slightly increase the complexity of the extension.
Do you still see a problem with the current behavior (i.e. copied/opened link is sanitized even though the tooltip sometimes is not)?
Demonstrating the first click being unsanitised here
Fixed and published as version 4.24, thanks again for your report and STR.
Using version 4.23.1 on Firefox 85.0.2.