Closed Bug 1657742 Opened 4 years ago Closed 4 years ago

Middle button clicking on a tweet in the desktop version of Twitter invokes the popup blocker

Categories

(Core :: DOM: Events, defect, P3)

defect

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: mkaply, Assigned: baku)

References

Details

Attachments

(2 files)

If you're viewing the desktop version of twitter and middle click on a tweet, the popup blocker is invoked.

It should open the tweet in a new (background) tab.

Works in Chrome

If you break here in https://abs.twimg.com/responsive-web/web/main.0396ccb5.js (or whatever the file will be):

t.type is mouseup, which seems like it should be fine, according to https://searchfox.org/mozilla-central/source/modules/libpref/init/all.js#990

I could not reproduce it on Nightly, nor 78 (on Mac).
What version of Firefox you are using?
Could you test it again with a clean profile and all add-on disabled? Thanks.

Flags: needinfo?(mozilla)

I see it on nightly and release, no addons.

And Mike Taylor was seeing it to.

Just tested and I still see it.

Flags: needinfo?(mozilla)

Physical mouse button events (i.e., mousedown and mouseup) may be allowed only when the button is the primary button.
https://searchfox.org/mozilla-central/rev/ab81b8552f4aa9696a2524f97fdfeb59d4dc31c1/dom/base/PopupBlocker.cpp#300,303,308
I think that this limitation is odd.

baku: Why do we limit the button?

Flags: needinfo?(amarchesini)
Flags: needinfo?(amarchesini)
Assignee: nobody → amarchesini
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P3
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4f017088f2e1
PopupBlocker doesn't block Middle mouse button click, r=smaug
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: