Closed Bug 1363407 Opened 7 years ago Closed 7 years ago

Awesome bar results and one-off buttons have different blue shades on keyboard selection

Categories

(Firefox :: Address Bar, defect, P1)

55 Branch
All
Windows 7
defect

Tracking

()

VERIFIED FIXED
Firefox 55
Tracking Status
firefox53 --- disabled
firefox54 --- disabled
firefox55 --- verified

People

(Reporter: sbadau, Assigned: adw)

References

Details

(Whiteboard: [fxsearch])

Attachments

(2 files)

Attached image DifferentBlueShades.png
[Affected versions]:
- Nightly 55.0a1

[Affected platforms]:
- Windows and Mac OS X

[Steps to reproduce]:
1. Launch Firefox
2. Type "moz" in the URL bar
3. Press Down arrow key until you reach the last awesome bar result (right above the one-offs bar)
4. Press ALT+ UP arrow keys to focus one one-off button
5. Observe the 2 key selections 

[Expected result]:
- The 2 selections should have the same color.

[Actual result]:
- The 2 selections have different shades of blue. 

[Notes]:
If I set the preference browser.urlbar.oneOffSearches to true this issue is reproducible also in Firefox 51.
Drew is this on purpose? Are we using a system color perhaps?
Flags: needinfo?(adw)
Whiteboard: [fxsearch]
We're using a hardcoded color for the list items and Highlight for the one-offs.  I guess they should both use Highlight.

List items: https://dxr.mozilla.org/mozilla-central/source/browser/themes/osx/browser.css#860

One-offs: https://dxr.mozilla.org/mozilla-central/source/browser/themes/osx/searchbar.css#210
Flags: needinfo?(adw)
(In reply to Drew Willcoxon :adw from comment #2)
> We're using a hardcoded color for the list items and Highlight for the
> one-offs.  I guess they should both use Highlight.

Yep, I agree.
Comment on attachment 8866588 [details]
Bug 1363407 - Awesome bar results and one-off buttons have different blue shades on keyboard selection.

https://reviewboard.mozilla.org/r/138194/#review141402

::: browser/themes/windows/browser.css:1414
(Diff revision 1)
>    font: message-box;
>    border-radius: 2px;
>    border: 1px solid transparent;
>  }
>  
> +.autocomplete-richlistitem[selected] {

I suspect the .autocomplete-richlistitem:hover will now unintentionally override this since you changed the order.
Comment on attachment 8866588 [details]
Bug 1363407 - Awesome bar results and one-off buttons have different blue shades on keyboard selection.

https://reviewboard.mozilla.org/r/138194/#review141672
Attachment #8866588 - Flags: review?(dao+bmo)
Yep, thanks.
Comment on attachment 8866588 [details]
Bug 1363407 - Awesome bar results and one-off buttons have different blue shades on keyboard selection.

https://reviewboard.mozilla.org/r/138194/#review141692

::: browser/themes/windows/browser.css:1445
(Diff revision 2)
>  @media (-moz-windows-default-theme) {
>    .autocomplete-richlistitem:hover,
>    treechildren.searchbar-treebody::-moz-tree-row(hover) {
>      background-color: hsla(0, 0%, 0%, 0.06);
>      border-color: hsla(0, 0%, 0%, 0.1);
>    }

Some kind of hover feedback for non-default themes would be nice. Can you move this outside of the media block and use --arrowpanel-dimmed?
Attachment #8866588 - Flags: review?(dao+bmo) → review+
Done
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.

hg error in cmd: hg rebase -s 7261ebbfac3b -d c79085f94c57: rebasing 395252:7261ebbfac3b "Bug 1363407 - Awesome bar results and one-off buttons have different blue shades on keyboard selection. r=dao" (tip)
merging browser/themes/osx/browser.css
merging browser/themes/shared/toolbarbuttons.inc.css and browser/themes/windows/browser.css to browser/themes/shared/toolbarbuttons.inc.css
merging browser/themes/windows/browser.css
warning: conflicts while merging browser/themes/shared/toolbarbuttons.inc.css! (edit, then use 'hg resolve --mark')
unresolved conflicts (see hg resolve, then hg rebase --continue)
Pushed by dwillcoxon@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/18afc87e7a68
Awesome bar results and one-off buttons have different blue shades on keyboard selection. r=dao
https://hg.mozilla.org/mozilla-central/rev/18afc87e7a68
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Assignee: nobody → adw
I have reproduced this bug with Nightly 55.0a1 (2017-05-09) on Windows 10, 64 bit!

The fix is now verified on Latest Nightly

Build ID 	20170516122050
User Agent 	Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0

[bugday-20170517]
Thanks!
Status: RESOLVED → VERIFIED
Priority: -- → P1
Verified as fixed also on Mac OS X 10.12 (Build ID: 20170518030213). Setting the firefox55 tracking flag to verified.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: