Closed Bug 363415 Opened 18 years ago Closed 17 years ago

Toolbar control (toolbar collapse widget) missing in Cocoafox

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha5

People

(Reporter: philor, Assigned: cbarrett)

Details

(Keywords: regression)

Attachments

(1 file)

There's no pill/button in the window title bar that you can click to hide the toolbars in Cocoa Firefox.
I don't see anything in the Cocoa API that might allow us to do this. It looks like up until 10.4 that button's appearance was automatic, and in 10.4 there is an API but it only affects the window if your window has a native toolbar.
Assignee: joshmoz → nobody
Flags: blocking1.9?
Keywords: regression
I don't see it in Cocoafoxen on 10.3.9, either, though.
Flags: blocking1.9? → blocking1.9-
Whiteboard: [wanted-1.9]
I have a patch in my tree I need to clean up that fixes this.

It uses two private methods on NSWindow that don't look terribly invasive to override.

(BOOL)_hasToolbar;
(void)_toolbarPillButtonClicked:(id)sender;

I found them while poking around with F-Script on something unrelated.
Flags: blocking1.9- → blocking1.9?
Attached patch fix v1.0Splinter Review
Here is the previously mentioned patch.
Assignee: nobody → cbarrett
Status: NEW → ASSIGNED
Attachment #264200 - Flags: review?(joshmoz)
Flags: blocking1.9? → blocking1.9+
Target Milestone: --- → mozilla1.9alpha5
Status: ASSIGNED → NEW
Comment on attachment 264200 [details] [diff] [review]
fix v1.0

mento, can you review this instead, since Josh seems overloaded on other things?
Attachment #264200 - Flags: review?(joshmoz) → review?(mark)
Comment on attachment 264200 [details] [diff] [review]
fix v1.0

Have you tried this out on a Lep seed too?
Attachment #264200 - Flags: review?(mark) → review+
Attachment #264200 - Flags: review+
Comment on attachment 264200 [details] [diff] [review]
fix v1.0

sr=mconnor, please get this landed ASAP
Attachment #264200 - Flags: superreview+
widget/src/cocoa/nsCocoaWindow.h 1.33
widget/src/cocoa/nsCocoaWindow.mm 1.89

Having to check in fixes for my own bugs sure beats having to fix my own bugs :)
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: