Click event triggering when using non-primary button

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

User avatar
hawkeye116477
Apollo supporter
Apollo supporter
Posts: 33
Joined: 2020-02-01, 16:29

Click event triggering when using non-primary button

Post by hawkeye116477 » 2025-09-11, 12:16

Hello. Looks like I noticed weird behaviour, which happens on extensions, for example at uBlock Origin. If you click using other than primary button, then it works as double function, so for example if I right click, then I see context menu and also can click to change uBO's tab. This doesn't happen with websites. I don't know if that's intended, but seems like same symptoms as in viewtopic.php?t=30469.

Browser: Pale Moon 33.8.2

Update: I digged and looks like last working good was 33.2.1, so something at 33.3.0 was changed.

User avatar
Moonchild
Project founder
Project founder
Posts: 38837
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Click event triggering when using non-primary button

Post by Moonchild » 2025-09-11, 14:16

This would be because of Issue #2515 (UXP).
Chrome clicks are handled differently than content, and explicitly handle non-primary button clicks within events. This is intended behaviour, and extensions need to check for non-primary as well if they do not want to have non-primary events handled, similar to what we've done with devtools to adjust for this behaviour, .
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite