Closed Bug 431887 Opened 16 years ago Closed 16 years ago

Search icon on "Get add-ons" window doesn't change if I hover it with mouse

Categories

(Firefox :: Theme, defect)

All
Windows XP
defect
Not set
minor

Tracking

()

VERIFIED FIXED
Firefox 3.1a1

People

(Reporter: Gabri, Assigned: ehsan.akhgari)

References

Details

(Keywords: polish, Whiteboard: [has patch] [has review] [RC2-])

Attachments

(3 files, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008050201 Minefield/3.0pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008050201 Minefield/3.0pre

If I hover or click the searchbox icon

Reproducible: Always
If I hover or click the searchbox icon on 'Get add-ons" window it doesn't change.
Version: unspecified → Trunk
Attached image Screen of bug (deleted) —
The icon that should be changed is this chrome://mozapps/skin/extensions/searchIcons.png

with something like that http://mxr.mozilla.org/mozilla/source/browser/themes/winstripe/browser/Search-glass.png
The css file is chrome://mozapps/skin/extensions/extensions.css
Attachment #319049 - Attachment description: Screen of the bug → Screen of bug
Blocks: 425582
Severity: normal → minor
Status: UNCONFIRMED → NEW
Depends on: 431002
Ever confirmed: true
Toolkit can't be made dependent on browser, so we should need a new icon in the toolkit theme, unless there's one already.  CCing Alex to see what he thinks here.
Keywords: polish
OS: Windows XP → All
Hardware: PC → All
But browser could be made dependent on toolkit.  I was thinking that we could just move the current search glass used for the browser searchbar into toolkit, and then the searchbar CSS could reference the icon in toolkit instead of browser.
Let's add:

Search-glass-aero.png
Search-glass.png
Search-glass-rtl-aero.png
Search-glass-rtl.png

to:

/toolkit/themes/winstripe/global/icons

We can't remove the existing files in browser since extensions might be relying on them.
(In reply to comment #7)
> We can't remove the existing files in browser since extensions might be relying
> on them.
> 

They haven't existed very long in browser, have they?  The 3-state search glass in browser had only recently landed, so any extension that was using that would've had to adjust anyway.  Plus, extensions should not be relying on theme files in the first place because there is no guarantee that custom Firefox themes would use the same filenames.
It's true that we updated the states, but the files themselves were there in Firefox 2.  While extensions probably shouldn't rely on theme files, in practice they actually do, so we want to avoid moving any files this close to RC1 out of courtesy.
Attached file search icons to add to toolkit (deleted) —
These are the 4 search icons to add to /toolkit/themes/winstripe/global/icons
Assignee: nobody → ehsan.akhgari
Status: NEW → ASSIGNED
The bug is present an all the OS.
Attachment #319499 - Flags: approval1.9?
Alex: we need additional icons for other pinstripe and gnomestripe as well.
(In reply to comment #13)
> Alex: we need additional icons for other pinstripe and gnomestripe as well.

On further investigation, pinstripe and gnomestripe don't seem to have equivalent hover effects for the search bar.  Therefore I'm making this bug Windows-specific.
OS: All → Windows XP
Summary: Search's icon on 'Get add-ons" window doesn't change if I hover it with mouse → Search icon on "Get add-ons" window doesn't change if I hover it with mouse
Attached patch Patch (v1) (obsolete) (deleted) — Splinter Review
Simple patch, which should be quick to review.  This patch should land with the icons in attachment 319499 [details].
Attachment #319769 - Flags: review?(gavin.sharp)
Whiteboard: [has patch] [needs review gavin]
Attachment #319778 - Flags: review?(gavin.sharp)
Comment on attachment 319778 [details] [diff] [review]
Patch (v2): it also adds ':hover' and ':hover:active' property at cancel button

(In reply to comment #16)
> Created an attachment (id=319778) [details]
> Patch (v2): it also adds ':hover' and ':hover:active' property at cancel button

This is what bug 431002 is about.  I'm marking this as obsolete, because bug 431002 has a more extensive patch waiting in Gavin's queue.
Attachment #319778 - Attachment is obsolete: true
Attachment #319778 - Flags: review?(gavin.sharp)
Ah ok, I didn't see bug 431002 before.
Comment on attachment 319499 [details]
search icons to add to toolkit

Renom for approval once the patch gets in. No point landing these until then.
Attachment #319499 - Flags: approval1.9? → approval1.9-
(In reply to comment #19)
> (From update of attachment 319499 [details])
> Renom for approval once the patch gets in. No point landing these until then.

Actually I wasn't going to request checkin-needed until my patch gets r,a as well, but it's not a big deal.  I'll ask for approval then.
Blocks: 403154
Attachment #319769 - Flags: review?(gavin.sharp) → review?(dao)
Whiteboard: [has patch] [needs review gavin] → [has patch] [needs review dao]
Comment on attachment 319769 [details] [diff] [review]
Patch (v1)

>Index: toolkit/themes/winstripe/mozapps/extensions/extensions.css

>-  list-style-image: url("chrome://mozapps/skin/extensions/searchIcons.png");

This makes searchIcons.png unused, so you can remove it.

>+.searchbox-search[chromedir="rtl"] {
>+  list-style-image: url("chrome://global/skin/icons/Search-glass-rtl.png");
>+}

.searchbox-search doesn't have a chromedir attribute.

I think we should add and use the search glass as a global toolkit image in all themes consistently.
Attachment #319769 - Flags: review?(dao) → review-
(In reply to comment #14)
> (In reply to comment #13)
> > Alex: we need additional icons for other pinstripe and gnomestripe as well.
> 
> On further investigation, pinstripe and gnomestripe don't seem to have
> equivalent hover effects for the search bar.  Therefore I'm making this bug
> Windows-specific.

These icons are also needed for gnomestripe, therefore
"Search-glass.png" and "Search-glass-rtl.png" (and the appropriate styling)
should also be added for gnomestripe to:
/toolkit/themes/gnomestripe/global/icons

In pinstripe this icon in toolkit is named search-textbox.png (there is no rtl search icon for pinstripe), so that one maybe should be renamed to Search-glass.png also.

This is also needed for bug 403154 because my patch in that bug is referring to
these files.
(In reply to comment #21)
> (From update of attachment 319769 [details] [diff] [review])
> >Index: toolkit/themes/winstripe/mozapps/extensions/extensions.css
> 
> >-  list-style-image: url("chrome://mozapps/skin/extensions/searchIcons.png");
> 
> This makes searchIcons.png unused, so you can remove it.

I guess Alex was opposed to remove images from the theme at this point of the release cycle.  Alex: can you confirm, please?

> >+.searchbox-search[chromedir="rtl"] {
> >+  list-style-image: url("chrome://global/skin/icons/Search-glass-rtl.png");
> >+}
> 
> .searchbox-search doesn't have a chromedir attribute.

I'll address this in the new patch coming along.

> I think we should add and use the search glass as a global toolkit image in all
> themes consistently.

Alex: what do you think?

Dão: can you file a followup on this issue and CC me?  Thanks!
(In reply to comment #22)
> These icons are also needed for gnomestripe, therefore
> "Search-glass.png" and "Search-glass-rtl.png" (and the appropriate styling)
> should also be added for gnomestripe to:
> /toolkit/themes/gnomestripe/global/icons
> 
> In pinstripe this icon in toolkit is named search-textbox.png (there is no rtl
> search icon for pinstripe), so that one maybe should be renamed to
> Search-glass.png also.
> 
> This is also needed for bug 403154 because my patch in that bug is referring to
> these files.

I guess this deserves a new bug...
Attached patch Patch (v1.1) (deleted) — Splinter Review
Added the chromedir attribute to .searchbox-search.
Attachment #319769 - Attachment is obsolete: true
Attachment #320249 - Flags: review?(dao)
>I guess Alex was opposed to remove images from the theme at this point of the
>release cycle.  Alex: can you confirm, please?

Yeah, beltzner very clearly requested that we not remove images late in the cycle since various extensions could be depending on them.

>> I think we should add and use the search glass as a global toolkit image in all
>> themes consistently.
>
>Alex: what do you think?

I would like us to do a massive overhaul of how we organize icons at some point to reduce all of the redundancy and have much cleaner organization and file names.
If we add chrome://global/skin/icons/Search-glass.png to winstripe only, we create a worse dependency scenario, where the image would be present on Windows but missing on Mac and Linux, making it less likely that the author realizes that there's something wrong.
Comment on attachment 320249 [details] [diff] [review]
Patch (v1.1)

Looks like bug 403154 is going to add Search-glass.png for the other platforms.
Attachment #320249 - Flags: review?(dao) → review+
Comment on attachment 320249 [details] [diff] [review]
Patch (v1.1)

Requesting approval for this theme change which adds a polish effect to the Add-on Manager window.
Attachment #320249 - Flags: review?
Comment on attachment 320249 [details] [diff] [review]
Patch (v1.1)

Oops, I meant to set the approval1.9 flag...
Attachment #320249 - Flags: review? → approval1.9?
Whiteboard: [has patch] [needs review dao] → [has patch] [has review] [needs approval]
Comment on attachment 320249 [details] [diff] [review]
Patch (v1.1)

Sorry we are closed for Firefox 3.0.  This may be a possibility for 3.0.1 or definitely 3.1.
Attachment #320249 - Flags: approval1.9? → approval1.9-
Flags: wanted1.9.0.x?
Whiteboard: [has patch] [has review] [needs approval] → [has patch] [has review] [needs approval][RC2?]
Whiteboard: [has patch] [has review] [needs approval][RC2?] → [has patch] [has review] [needs approval][RC2-]
Does it still approval to land ?
+need
Sorry for spam
(In reply to comment #33)
> Does it still approval to land ?

no
Maybe someone should add the checkin-needed keyword ?
Keywords: checkin-needed
Whiteboard: [has patch] [has review] [needs approval][RC2-] → [has patch] [has review] [RC2-]
Comment on attachment 320249 [details] [diff] [review]
Patch (v1.1)

I think it would be nice to consider it on the branch as well.  Bug 403154 needs this one to be checked in to the branch.

In the meantime, this can be pushed on mozilla-central.
Attachment #320249 - Flags: approval1.9.0.1?
Attachment #320249 - Flags: approval1.9.0.1? → approval1.9.0.2?
http://hg.mozilla.org/index.cgi/mozilla-central/rev/916a8b289576

I also removed winstripe/mozapps/extensions/searchIcons.png
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.1a1
Verified with Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1a1pre) Gecko/2008071303 Minefield/3.1a1pre ID:2008071303
Status: RESOLVED → VERIFIED
Comment on attachment 320249 [details] [diff] [review]
Patch (v1.1)

Moving approval request out to 1.9.0.3.
Attachment #320249 - Flags: approval1.9.0.2? → approval1.9.0.3?
Doesn't really meet the "wanted" criteria (security, stability, regression from maintenance release). And likewise, doesn't meet the criteria for 1.9.0.4.
Flags: wanted1.9.0.x?
Attachment #320249 - Flags: approval1.9.0.4? → approval1.9.0.4-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: