Can't dismiss instagram's "use the app" banner on Fennec / GeckoView
Categories
(Core :: Panning and Zooming, defect, P2)
Tracking
()
People
(Reporter: TYLin, Unassigned)
References
Details
(Whiteboard: [bcs:p2] [geckoview:m1912] [See comment 2 for workaround][fenix:p1])
+++ This bug was initially created as a clone of Bug #1516963 +++
STR:
- Go to an instagram profile on Fennec, e.g: https://www.instagram.com/mozilla/
- Try to dismiss the "The best Instagram experience is on the app." banner.
Expected:
You can dismiss it.
Actual:
You can't easily dismiss the banner unless clicking it multiple times, or force zoom-in the page to make the X larger enough to click.
I fixed bug 1516963 which makes AccessibleCaret doesn't show when clicking on the X, but per bug 1516963 comment 12 the banner still cannot be dismissed easily.
This might somewhat be related to touch event handling or pan zoom. CC :kats and :botond.
Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Does it work better if you set ui.mouse.radius.enabled to true?
Reporter | ||
Comment 2•6 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #1)
Does it work better if you set ui.mouse.radius.enabled to true?
Yes! It does. I can dismiss the Instagram banner easily with ui.mouse.radius.enabled=true
.
Comment 3•6 years ago
|
||
:snorp, any thoughts on re-enabling this pref? It's still the first thing I enable on any Gecko android browser since without it i find clicking on things basically impossible.
Yeah I think we should revisit this. IIRC, the reason we disabled it was that some hamburger menus were impossible to select. Did we fix that problem?
Randall, do you recall the exact details of why we disabled the touch radius stuff?
Comment 6•6 years ago
|
||
It's because it makes elements that are made clickable with js libraries like jquery become unclickable if there is a regular link object next to it. The touch radius always finds the regular link since the jquery link just looks like a div or such.
(In reply to Randall Barker [:rbarker] from comment #6)
It's because it makes elements that are made clickable with js libraries like jquery become unclickable if there is a regular link object next to it. The touch radius always finds the regular link since the jquery link just looks like a div or such.
Ah, and I think some frameworks always connect listeners to the document or something so we can't immediately see that there is a click handler. It's coming back now.
Comment 8•6 years ago
|
||
Yes,all the clicks/touches were being processed by the root so there wasn't an obvious way to know if a element was clickable. We thought about doing a two pass method where if the point failed to be processed, use the radius to test for a clickable element. But I could never get it to work.
Comment 9•6 years ago
|
||
FWIW I never run into this problem with the mouse radius enabled. But I'm constantly frustrated by not being able to tap on things with the mouse radius disabled.
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 11•6 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #9)
FWIW I never run into this problem with the mouse radius enabled. But I'm constantly frustrated by not being able to tap on things with the mouse radius disabled.
I tested this in Chrome and the Instagram banner is also difficult to dismiss in Chrome. However, Fennec/Fenix makes it even more difficult because the "SELECT ALL" context menu opens when your tap misses the X
button.
Bug 1437372 and bug 1465743 describe related difficult-to-click-button problems in Fennec.
Randall disabled ui.mouse.radius.enabled
in bug 1247095 three years ago to unbreak multiple broken sites: bug 1192558, bug 1233272, and bug 1235339.
So it seems like this bug is at a standstill: fixing in makes some links unclickable, but not fixing it makes some links difficult-but-not-impossible to click.
Comment 12•6 years ago
|
||
Hi, I've retested this issue using the latest Nightly build (68.0a1 from the 6th of May) on a Google Pixel 3XL(Android 9)and the problem can still be replicated.
As per the attached video and by judging the cursor, the selection of the 'X' button has to be quite precise to be able to dismiss the banner.
Comment 13•6 years ago
|
||
Wouldn't this be more of an accessibility issue on Instagram's part? And so filing a bug with them, when resolved would fix the issue on all browsers?
Comment 14•5 years ago
|
||
QA reports a similar problem trying to tap the dismiss button on Vimeo.com's cookie banner:
Comment 15•5 years ago
|
||
Since this popup banner is also difficult to close in Chrome, I asked our WebCompat team if we have contacts at Instagram:
https://mozilla.slack.com/archives/C4FMB0AJY/p1571862510021900
Comment 16•5 years ago
|
||
This has now been moved to Fenix's top priority queue.
Comment 17•5 years ago
|
||
(In reply to Emily Toop (:fluffyemily) from comment #16)
This has now been moved to Fenix's top priority queue.
Comment 18•5 years ago
•
|
||
I still think the right way forward here is to re-enable the pref by default, and then revise the code to exclude the mouse fluffing in additional scenarios. If we exclude it on elements with :hover CSS, that would resolve bug 1192558. If we exclude it from happening on long-press events, that would resolve bug 1233272. If we exclude it on pages with click listeners on the root html element, that should fix those jquery cases. At the very least we should be able to get the overall UX to a better state than it is now.
If nobody has objections to the above approach, I'm willing to take ownership of ensuring it gets disabled in whatever scenarios it's getting mis-applied in. Worst case we can always turn the pref back off later if we run into cases where it's too hard to resolve.
Reporter | ||
Comment 19•5 years ago
|
||
Thanks Kats. I think it would be great to enable the pref and exclude it under certain conditions.
Comment 20•5 years ago
|
||
Adding Fenix priority tag
Comment 21•5 years ago
|
||
Calling this fixed via bug 1618532. However when I try to repro with the STR in comment 0, the "use the app" banner doesn't have an "X" close button, instead it has a "not now" link that is easy to click on. So either I got A/B tested into a different variant of the banner or they changed their site. Either way this doesn't seem to be a problem any more, and with bug 1618532 in place it shouldn't be a problem if they change it back.
Description
•