Closed Bug 521410 Opened 15 years ago Closed 15 years ago

buttons without labels should ignore the images-in-buttons setting (RSS icon doesn't appear in the Firefox URL bar)

Categories

(Toolkit :: UI Widgets, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1
Tracking Status
blocking2.0 --- alpha1+

People

(Reporter: hidenosuke, Assigned: dao)

References

Details

Attachments

(1 file, 2 obsolete files)

There is no feed button on the location bar with recent Linux trunk build.

Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a1pre) Gecko/20091009 Minefield/3.7a1pre

My Environment:
Distro : Debian GNU/Linux unstable
GNOME: 2.28
GTK+: 2.18.2-1
GLIB: 2.22.2-1

Addtional information:
Bookmarks -> Subscribe to This Page does work.
The icon is present on Windows Vista.
Blocks: 509671
Assignee: nobody → dao
Component: Location Bar and Autocomplete → XUL Widgets
Product: Firefox → Toolkit
QA Contact: location.bar → xul.widgets
Attached patch patch (obsolete) — Splinter Review
Attachment #405640 - Flags: review?(gavin.sharp)
Could we get away with

button[label]:not([label=""]):not(:-moz-system-metric(images-in-buttons)) .button-icon

instead, to avoid having to make the button.xml changes?

(is there a bug about removing the apparently unused buttonleft-ile binding?)
(In reply to comment #3)
> Could we get away with
> 
> button[label]:not([label=""]):not(:-moz-system-metric(images-in-buttons))
> .button-icon
> 
> instead, to avoid having to make the button.xml changes?

We could, but what's the problem with the button.xml changes? We did this for toolbarbuttons too.

> (is there a bug about removing the apparently unused buttonleft-ile binding?)

bug 521547
(In reply to comment #4)
> We could, but what's the problem with the button.xml changes? We did this for
> toolbarbuttons too.

What use are labels on <xul:image>s, apart from allowing you to use a more efficient selector for this particular case?
It's just that, the more efficient selector.
Comment on attachment 405640 [details] [diff] [review]
patch

This should instead be fixed by changing the patch for bug 509671, either by reopening the bug or filing a new one.
Attachment #405640 - Flags: review?(gavin.sharp) → review-
Assignee: dao → nobody
Blocks: 520988
Summary: No feed button (orange icon) on the location bar → Buttons without labels should ignore the images-in-buttons setting
No longer blocks: 520988
Attachment #405640 - Flags: review- → review?(enndeakin)
Comment on attachment 405640 [details] [diff] [review]
patch

Looks right to me (but get Neil to sign off on it anyways)
Attachment #405640 - Flags: review+
I don't really like the idea of copying the string on every button just for this feature. We should at least only do this on linux.

Is a rule button[label]:not... .buttonicon less efficient?

The right way, of course, is to have an <imagebutton> element specifically for buttons intended to be used with images. I'll file a bug on adding this.
The efficiency of button[label]:not... depends on whether we can use > to get to the .button-icon. Without >, every node up to the root element needs to be tested if button[label]:not... doesn't match the button element.
Summary: Buttons without labels should ignore the images-in-buttons setting → buttons without labels should ignore the images-in-buttons setting (RSS icon doesn't in the Firefox URL bar)
Attached patch patch v2 (obsolete) — Splinter Review
(In reply to comment #10)
> I don't really like the idea of copying the string on every button just for
> this feature. We should at least only do this on linux.
> 
> Is a rule button[label]:not... .buttonicon less efficient?

Addressed this by using:
button[label]:not([label=""]) > .button-box > .button-icon
... for ordinary buttons and:
button[label]:not([label=""]) > .button-box > .box-inherit > .button-icon
... for menu buttons.
Assignee: nobody → dao
Attachment #405640 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #405640 - Flags: review?(enndeakin)
Attached patch patch v2Splinter Review
the right file
Attachment #420501 - Attachment is obsolete: true
http://hg.mozilla.org/mozilla-central/rev/abb82f981e02
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
I confirmed to fix the problem with recent build.
Thanks for great work.
Summary: buttons without labels should ignore the images-in-buttons setting (RSS icon doesn't in the Firefox URL bar) → buttons without labels should ignore the images-in-buttons setting (RSS icon doesn't appear in the Firefox URL bar)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: