Skip to content

Commit

Permalink
fix 'F' and 'et'
Browse files Browse the repository at this point in the history
reported by @alexnguyennn (#1001). note that mozilla's original patch
[1] (lazily) imports BrowserUtils.sys.mjs while we just reuse the one
from the window object (like we did in v0.27.1). this patch seems to
have been uplifted into devedition 126 as well as nightly 127.

regressed by: bugzil.la/1742889
[1]: https://hg.mozilla.org/mozilla-central/diff/d85012b3aa3d67faba01f3f896a6ace6dbdbc37e/browser/actors/ClickHandlerParent.sys.mjs
  • Loading branch information
girst committed May 18, 2024
1 parent 57913c9 commit 822f3ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extension/lib/utils.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,11 @@ contentAreaClick = (data, browser) ->
try if not PrivateBrowsingUtils.isWindowPrivate(window)
PlacesUIUtils.markPageAsFollowedLink(data.href)

window.openLinkIn(data.href, window.whereToOpenLink(data), params)
where = try
window.BrowserUtils.whereToOpenLink(data) # >=fx127
catch
window.whereToOpenLink(data) # <=fx126
window.openLinkIn(data.href, where, params)

simulateMouseEvents = (element, sequence, browserOffset) ->
window = element.ownerGlobal
Expand Down

0 comments on commit 822f3ba

Please sign in to comment.