Closed Bug 575437 Opened 14 years ago Closed 11 years ago

When bookmarks button is on an autohide menubar it should stay on navbar

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 581238

People

(Reporter: mak, Unassigned)

References

Details

(Keywords: regression, Whiteboard: [places-next-wanted][needs evaluation])

Attachments

(1 file)

This was implemented through isElementVisible but that caused 2 weird issues:
- it was not consistent when opening new windows on Win
- it was causing button handling in pinstripe to not work at all

We need to find a better way to handle this special case without regressing pinstripe and being more consistent on win.
remind this should be tested to be working correctly also with an empty bookmarks toolbar, that means bo.width will most likely be 0
Blocks: 575218
No longer depends on: 575218
Keywords: regression
http://hg.mozilla.org/mozilla-central/rev/fa7b6f39faf4 should be reverted when this gets fixed.
that rule hides the button if the menubar is visible, that is something we always want, no?
I think we should just check if bookmarks items element is on a bar with autohide=true, and if so don't move it to it, checking the attribute should be more reliable than using isElementVisible and won't cause reflows.
This means just adding an additional condition on the first if in updatePosition
(In reply to comment #3)
> that rule hides the button if the menubar is visible, that is something we
> always want, no?

Ah, yes, we probably still want that. I misread that code as #toolbar-menubar[autohide="true"] > ...
Attached patch patch v1.0Splinter Review
something like this, btw if we find something even faster, it will be fine.
since menubar is the only toolbar with autohide we could even just check parentNode.id != "toolbar-menubar"
Whiteboard: [places-next-wanted][needs evaluation]
Related to bug 581238 / bug 631330.
just duping, the plan is bug 748894 btw.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: