Korean/Japanese composition unexpectedly stops when mouse select triggers Firefox builtin AI chatbot popup icon
Categories
(Core :: Machine Learning: Frontend, defect, P1)
Tracking
()
People
(Reporter: rbucata, Assigned: yjamora)
References
(Regression, )
Details
(5 keywords, Whiteboard: [webcompat-source:web-bugs][webcompat:sightline][webcompat:japan][genai])
User Story
platform:windows,mac,linux impact:workflow-broken configuration:general affects:some branch:release user-impact-score:360
Attachments
(1 file)
|
1.54 MB,
video/x-matroska
|
Details |
Environment:
Operating system: Windows 10
Firefox version: Firefox 144.0
Preconditions:
- Korean input installed
Steps to reproduce:
- Navigate to: https://www.google.com/
- Searching for something
- Change the keyword with mouse select
- Type something in Korean
- Observe the input field
Expected Behavior:
Input does not break
Actual Behavior:
The first letter breaks
Notes:
- Reproduces regardless of the status of ETP
- Reproduces in firefox-nightly, and firefox-release
- Does not reproduce in chrome
Created from https://github.com/webcompat/web-bugs/issues/182893
| Reporter | ||
Comment 1•3 months ago
|
||
| Reporter | ||
Updated•3 months ago
|
Comment 2•3 months ago
|
||
Updated•3 months ago
|
Comment 3•3 months ago
|
||
STR needs to include enabling AI chatbot.
Comment 4•3 months ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Updated•3 months ago
|
Comment 5•3 months ago
|
||
The chatbot icon started to still the focus, which is the problem. Bisecting now.
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 7•3 months ago
|
||
:ngrato, since you are the author of the regressor, bug 1922623, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 9•3 months ago
|
||
Is that really a website issue if the regressor is a Firefox code change? Is the Severity ok? Thanks
Comment 10•3 months ago
|
||
Well, we track everything as a site-report that's breaking a website, no matter "why" it's broken. So from that point of view, yeah, it's a WebCompat bug (that's caused by a regression).
The S4 is based on our rating that this only affects some users, not all users, which drops the WebCompat impact score a lot. However, since this affects Japan, I think we should treat this higher. I'll bump this to S2, which it would be if we'd say it affects "all" users, which seems fair.
Comment 11•2 months ago
|
||
Yubin, can you take a look at this per comment 8?
| Assignee | ||
Comment 12•2 months ago
|
||
Thank you for reporting the bug. Kagami Rosylight [:saschanaz] (they/them) is right.
The chatbot icon started to still the focus, which is the problem. Bisecting now.
Will work on that.
| Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
| Assignee | ||
Comment 14•1 month ago
•
|
||
Sorry for the delay. I looked into the issue today and as Kagami Rosylight [:saschanaz] (they/them) mentioned the problem is hidePopup() steals focus, which breaks Korean IME composition when typing in input fields.
@mardak,
wonder would it be acceptable to skip showing aiActionButton for the shortcut when user selects text inside input/textarea/contenteditable elements? This avoids the hidePopup() focus issue entirely. or the only way I could fix it was moving the panel offscreen with panel.moveTo(-9999, -9999) instead of calling hidePopup() which i don't want to do it. - actually we need the shortcut for the proofread in input/textarea...
Updated•20 days ago
|
Updated•17 days ago
|
Comment 15•17 days ago
|
||
i suppose there could be 2 parts of this bug of showing the shortcut in the first place when selecting text with a mouse click hhttps://searchfox.org/firefox-main/rev/93aad2a6615f670b1279c229dd37f7397236131a/browser/components/genai/GenAIChild.sys.mjs#62-69,85-89
or hiding when the selection changes https://searchfox.org/firefox-main/rev/93aad2a6615f670b1279c229dd37f7397236131a/browser/components/genai/GenAIChild.sys.mjs#110
link preview had a related korean typing issue bug 1967131 where we worked around with some typing backoff heuristic (and later removed the shift shortcut completely for other shift issues)
it is a desired feature to get prompts like proofread for inputs, so that would require product input. is there a way to be more narrowly targeting when the popup appears such as the content or previous composing actions? i suppose the tricky part is the user didn't necessarily type into this particular input box yet so we don't know if there will be future composition
i suppose just to check, deleting the text first before typing avoids the issue?
Comment 17•17 days ago
|
||
i suppose just to check, deleting the text first before typing avoids the issue?
That removes text selection, which then won't open popup, so yes.
Comment 18•10 days ago
|
||
:mardak, what's the plan for a fix here? Wondering if we will have in time for Fx148 or what is the plan?
Comment 19•9 days ago
|
||
yubin, is there a quick/small fix we could potentially uplift? it seems unlikely product would accept some of the proposed fixes unless maybe we narrowly target to some locales or input languages perhaps ja and ko?
i'll also ping jolie but i suspect smart window will be higher priority
| Assignee | ||
Comment 20•9 days ago
|
||
Instead of doing panel hide, we could do a really hacky thing like moving the panel offscreen with panel.moveTo(-9999, -9999). Not sure if it's acceptable, and also I don't know what other regressions it would cause..
Updated•6 days ago
|
Comment 21•6 days ago
|
||
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/textarea is also affected.
Google Spreadsheets(https://docs.google.com/spreadsheets) and Excel(https://excel.cloud.microsoft) are also affected.
Comment 22•5 days ago
|
||
[Tracking Requested - why for this release]: IME user cannot input text if pre-filled text is selected in textarea. Please back out the offending patch.
Updated•4 days ago
|
Comment 23•4 days ago
|
||
The bug is marked as tracked for firefox148 (beta) and tracked for firefox149 (nightly). However, the bug still isn't assigned.
:Mardak, could you please find an assignee for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.
For more information, please visit BugBot documentation.
Comment 24•4 days ago
|
||
looks like address bar does this position fixed top: -999px https://searchfox.org/firefox-main/rev/e315c373bd165aa45994c218186b3b5df83a66da/browser/themes/shared/urlbar-searchbar.css#1270-1273
i guess we can try your comment 20 suggestion for those who want to keep the text selection shortcut functionality? we'll want to make sure it doesn't break other typing/focus by keeping the panel open
Comment 25•3 days ago
|
||
:yubin jamora, next week is the last week of beta for Fx148.
I see this was set as a P1, so mentioning hopefully we'll have a patch in time that is safe to uplift?
| Assignee | ||
Updated•1 day ago
|
Description
•