]> git.gir.st - VimFx.git/commit
improve contentAreaClick
authorgirst <girst@users.noreply.github.com>
Sun, 25 Feb 2024 14:28:58 +0000 (15:28 +0100)
committergirst <girst@users.noreply.github.com>
Sun, 3 Mar 2024 13:23:12 +0000 (14:23 +0100)
commit74ba1b9df0da15efabeaeecee83929b81ab02d75
tree6f6ca0e33f07e8bc7a5961f5fa0f8d5d6fa65d30
parent73b82cddaeb5c5422ae222dc1a135424acb94608
improve contentAreaClick

This adds a few missing options used by BrowserUtils.whereToOpenLink, as
well as finally passing CSP and ReferrerInfo. Unlike Mozilla, we call
contentAreaClick directly from the parent process (they from
ClickHandlerChild), so we don't need to serialize/deserialize these
objects. However, they get CSP from event.originalTarget.ownerDocument
and try to init ReferrerInfo from initWithNode(event.composedTarget),
neither of which we have access to from the parent process.

Note that referrerInfo.initWithDocument() was introduced with mozilla69:
https://hg.mozilla.org/mozilla-central/rev/b5df2e6d8478cb4aea88d109259714ca2772b6cd#l1.29
extension/lib/commands.coffee
extension/lib/utils.coffee
Imprint / Impressum