Closed Bug 2060396 Opened 2 months ago Closed 1 month ago

Remove OSToolbarButtonPressed and related code.

Categories

(Core :: Widget: Cocoa, task)

task

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(3 files, 2 obsolete files)

No description provided.

I did the digging, and this seems to come from bug 363415, and then morphed shape in multiple ways, but mostly through refactors like bug 743975.

But I don't think macOS titlebars have a "toolbar" button anymore.

See Also: → 363415, 743975

I did the digging, and this seems to come from bug 363415, and then
morphed shape in multiple ways, but mostly through refactors like bug
743975.

But I don't think macOS titlebars have a "toolbar" button anymore. And
I'm pretty sure even if we reached this code this wouldn't work as
expected, since nsIWebBrowserChrome::SetChromeFlags implementations
don't do much (clean up for that incoming).

Severity: -- → S4

I did more digging and this seems to be basically dead code. It seems
older versions of OSX had some sort of toolbar control button? But it's
documented to have no effect at all nowadays:

https://developer.apple.com/documentation/appkit/nswindow/showstoolbarbutton

We only deal with a couple of these flags anyways. The bar changes could
theoretically work, but we don't use them (other than in a test).

Nothing can set this now. Even popup windows opened with location=no
show the urlbar anyway, and we have tests for it.

Attachment #9621553 - Attachment description: Bug 2060396 - Remove CHROME_LOCATIONBAR. r=#urlbar-reviewers! → Bug 2060396 - Remove CHROME_LOCATIONBAR / chromeclass-location. r=#urlbar-reviewers!

As per discussion in D316217. There's a sessionstore caller, but
sessionstore will open the window with the right window features
regardless, so it's effectively a no-op (and after D316217 it is
definitely a no-op).

I tested restoring sessions with popup windows open and such just in
case it wasn't covered by tests, and it works alright.

Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Regressions: 2063215
See Also: → 2063215
Blocks: 2064674

Let me move the unlanded work to a new bug for better tracking.

Status: REOPENED → RESOLVED
Closed: 1 month ago → 1 month ago
Resolution: --- → FIXED
Blocks: 2064683

Comment on attachment 9621553 [details]
Bug 2060396 - Remove CHROME_LOCATIONBAR / chromeclass-location. r=#urlbar-reviewers!

Revision D316218 was moved to bug 2064683. Setting attachment 9621553 [details] to obsolete.

Attachment #9621553 - Attachment is obsolete: true

Comment on attachment 9625528 [details]
Bug 2060396 - Throw on BarProp.visible setter. r=vhilla

Revision D317990 was moved to bug 2064683. Setting attachment 9625528 [details] to obsolete.

Attachment #9625528 - Attachment is obsolete: true
Regressions: 2065228
No longer blocks: 2065234
Type: defect → task
See Also: 2063215 →
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: