The search mode indicator disappears when Ctrl or Shift key is pressed if Windows 10 animations are disabled
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox83 | --- | wontfix |
firefox84 | --- | wontfix |
firefox85 | --- | verified |
firefox86 | --- | verified |
People
(Reporter: alice0775, Assigned: mak)
References
Details
(Keywords: inputmethod, nightly-community, ux-mode-error)
Attachments
(2 files)
This is annoying when IME is activated
Steps to reproduce:
- Activate Search mode
type @google and space - IME on (MS-IME and ATOK japanese IME)
- Type some composition string
- Press Ctrl key
--- Bug, The search mode indicator disappears.
--- Bug, IME composition string moves to the left. - Release Ctrl key
--- The search mode indicator reappears.
--- IME composition string moves to the original position.
Actual results:
The search mode indicator disappears.
IME composition string moves to the left. this is annoying.
Expected results:
The search mode indicator should not disappear.
![]() |
Reporter | |
Updated•4 years ago
|
![]() |
Reporter | |
Comment 1•4 years ago
|
||
Screencast: https://youtu.be/ePnFFWL5rbo
![]() |
Reporter | |
Updated•4 years ago
|
Comment 2•4 years ago
|
||
:alice0775, if you think that's a regression, could you try to find a regression range using for example mozregression?
![]() |
Reporter | |
Comment 3•4 years ago
|
||
Assignee | ||
Comment 4•4 years ago
|
||
not a regression, update 2 IS search mode, this was just not implemented correctly from the beginning. I suspect my patch in bug 1673669 may be fixing this.
![]() |
Reporter | |
Updated•4 years ago
|
![]() |
Reporter | |
Comment 5•4 years ago
|
||
I can still reproduce on Nightly(20201206213246). Bug 1673669 did not fix this.
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
|
||
I'm sorry Alice0775, I'm still having difficulties reproducing the bug. I'm on Win10, I type "@google " and that enters search mode, then I enable Japanese IME, press A, the IME popup opens, I try pressing CTRL but nothing happens, I try picking something from the panel and press CTRL, nothing happens. Could you please provide more detailed steps?
I can't find a way for CTRL to make the search mode chiclet disappear, thus I'm probably missing some step or setting, or I'm using the wrong keyboard layout.
![]() |
Reporter | |
Comment 7•4 years ago
|
||
*Nothing special on Windows10 version 1909.
Your str is sufficient to reproduce the issue for me.
Type "@google " and that enters search mode, then I enable Japanese IME, press A, the IME popup opens, I try pressing CTRL.
*If You use Windoes10 version 2004 and 20H2, You may need following Workaround to mitigate MS bug.
-
Without the Workaround,
The search mode indicator disappear when Ctrl keydown.
The search mode indicator does not reappear when Ctrl keyup. <- different from version 1909.
Assignee | ||
Comment 8•4 years ago
|
||
yes, I'm on Windows 2004, are you suggesting that if I "Turn on Use previous version of Microsoft IME" then I should be able to reproduce the bug? I wonder if this CTRL behavior is actually a bug of 1909... I'll try later with that workaround, if I still can't reproduce I may have to hand-off the bug to someone else that can reproduce it.
Assignee | ||
Comment 9•4 years ago
|
||
Yeah, unfortunately I still cannot reproduce even with the old IME version enabled. I'm unassigning because I'm not sure how to proceed without being able to reproduce the bug. If you have further ideas I'll surely try those.
Harry, can you reproduce this one on your Win system?
Assignee | ||
Updated•4 years ago
|
![]() |
Reporter | |
Comment 10•4 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #8)
yes, I'm on Windows 2004, are you suggesting that if I "Turn on Use previous version of Microsoft IME" then I should be able to reproduce the bug?
Yes.
But even without the workaround, the search mode indicator disappears when Ctrl keydown.
I wonder if this CTRL behavior is actually a bug of 1909... I'll try later with that workaround, if I still can't reproduce I may have to hand-off the bug to someone else that can reproduce it.
Nakano san, can you reproduce this?
![]() |
Reporter | |
Comment 11•4 years ago
•
|
||
STR without IME on (Although I'm not sure this is the same root cause.)
- Type @google and hit spacebar
- Hit Windows key so that start menu will pop up
- Hit Windows key again so that start menu will hide
- Ctrl Keydown and keyup
:mak, Can you please try the above STR?
Comment 13•4 years ago
|
||
I cannot reproduce it too. Alice san, what keydown
and keyup
events are fired for Ctrl
key during composition in your environment?
https://w3c.github.io/uievents/tools/key-event-viewer.html
![]() |
Reporter | |
Comment 14•4 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900)(Got a cold, working slower) from comment #13)
I cannot reproduce it too. Alice san, what
keydown
andkeyup
events are fired forCtrl
key during composition in your environment?
https://w3c.github.io/uievents/tools/key-event-viewer.html
Attached. See screenshot.
Comment 15•4 years ago
|
||
Odd, same result with mine, but we got different behavior...
Ctrl
key events are not handled by MS-IME and ATOK, so, these events are exposed as-is.
According to the screen capture, you hit this style change:
https://searchfox.org/mozilla-central/rev/4415bec7a49c50a338167d9c8934527b9cae59d0/browser/base/content/browser.css#654
It's caused by here:
https://searchfox.org/mozilla-central/rev/4415bec7a49c50a338167d9c8934527b9cae59d0/browser/components/urlbar/UrlbarInput.jsm#2151-2152
It's called by URLBarInput#__on_keydown
https://searchfox.org/mozilla-central/rev/4415bec7a49c50a338167d9c8934527b9cae59d0/browser/components/urlbar/UrlbarInput.jsm#3095,3116
But I don't see the caller... (perhaps, called with Event.type
?) So, I still don't see what a pref or something switches the behavior.
![]() |
Reporter | |
Comment 16•4 years ago
|
||
STR without IME:
- Click @amazon in top site
--- Search mode indicator appears. and it has background color as expected.
--- Dropdown of Addressbar appears as expected. - Type something
--- Search suggestions in the dropdown are shown as expected. - Hit Windows key or f6 key
--- Focus moves to elsewhere as expected.
--- Dropdown of Addressbar is gone.
--- Background color of the indicator is lost. - Hit Windows key or f6 key again
--- Addressbar gets focus again as expected.
--- However, the background color of the indicator is still lost. - Ctrl(or Shift) Keydown and keyup
--- The indicator disappears/appears
Screencast: https://youtu.be/SXj6uIH8UTY
Can you please try the above STR? (Thank you for your trouble)
Comment 17•4 years ago
|
||
(In reply to Alice0775 White from comment #16)
- Hit Windows key or f6 key again
--- Addressbar gets focus again as expected.
--- However, the background color of the indicator is still lost.
I don't reproduce this symptom. The megabar gets focused again and the colors are restored correctly. (85.0a1 (2020-12-10), 20H2 (19042.685))
![]() |
Reporter | |
Comment 18•4 years ago
|
||
Okay,
No Bug, if Windows10 animations are enabled.
Bug appears, if Windows10 animations are disabled.
(To turn off animations in Windows 10:
Open "Ease of Access" by pressing the Windows logo key + U > Select "Display" on the left pane>
scroll down to the "Simply and personalize Windows" section > Turn off "Show animations in Windows")
Can you please try STR again? (Thank you very much)
![]() |
Reporter | |
Comment 19•4 years ago
|
||
And I can also reproduce the issue on Ubunto20.04 if set ui.prefersReducedMotion to 1 in about:config.
Assignee | ||
Comment 20•4 years ago
|
||
Ah, that helps, I see something with ui.prefersReducedMotion set to 1, let's see
Assignee | ||
Comment 21•4 years ago
|
||
The reason for this behavior is that when ui.prefersReducedMotion is set to 1, pressing ESC closes the panel and reverts to the "compact" representation of search mode, that is part of #urlbar-label-box, that (wrongly) obeys to actionoverride for any result type. It should only obey it for overridable result types, that is basically only switchtab.
Assignee | ||
Comment 22•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 23•4 years ago
|
||
Comment 24•4 years ago
|
||
bugherder |
Comment 25•4 years ago
|
||
I have managed to reproduce the issue using the steps and information provided in comment 16 and comment 18 on Fx85.0a1 2020-12-06.
The issue is verified fixed using the latest Fx86.0a1 and Fx85.0b3 on Windows 10 and Ubuntu 18.04. Pressing CTRL no longer makes the search engine disappear from the address bar.
Description
•