Open Bug 1878302 Opened 1 year ago Updated 1 year ago

Clicking on the icon will invoke text selection.

Categories

(GeckoView :: General, defect)

Firefox 122
All
Android
defect

Tracking

(Not tracked)

REOPENED

People

(Reporter: yjbrowserjyt, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0

Steps to reproduce:

visit https://www.ghxi.com/
click menu
clike icon
I have outlined the steps in the attachment.

Actual results:

Text selection will be triggered.

Expected results:

Clicking the icon should not trigger text selection.

This is also reproducible on Desktop Firefox with 1) Using Devtools -> Responsive Design mode 2) set about:config layout.accessiblecaret.enabled : true and layout.accessiblecaret.hide_carets_for_mouse_input : false


So i guess Core-> DOM:Selection might be the proper component.

Component: General → DOM: Selection
Product: Fenix → Core

I guess that turning the SVG icon is misunderstood as dragging in the element even without a pointer move, anyway, let's ask TYLin.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(aethanyc)

Thanks for the bug report! I think this is a dup of bug 1698629 since the icon is an <svg> element. Single-clicking on the <svg> actually (wrongly) makes a selection. With AccessibleCaret enabled, it just makes the problem more obvious.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1698629
Flags: needinfo?(aethanyc)
Resolution: --- → DUPLICATE

Could we fix this on GeckoView side? (Since this isn't annoying in Desktop side)

Possible solution: do not show selection when selected text content is empty.

Ref: https://searchfox.org/mozilla-central/rev/90cdd721bc108f735b8f1f9f9715eda7e66e5e47/mobile/android/actors/SelectionActionDelegateChild.sys.mjs#365

Status: RESOLVED → REOPENED
No longer duplicate of bug: 1698629
Resolution: DUPLICATE → ---
See Also: → 1698629
Component: DOM: Selection → General
Product: Core → GeckoView

Possible solution: do not show selection when selected text content is empty.

Sorry, I think it again. this only prevents the menu show, but won't prevent the carets show.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: