New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify MiniBrowser settings menu construction #5992
Simplify MiniBrowser settings menu construction #5992
Conversation
EWS run on current version of this PR (hash 9dc15e8) |
{ | ||
[_menu addItem:[NSMenuItem separatorItem]]; | ||
[_menu addItem:[[[NSMenuItem alloc] initWithTitle:title action:nil keyEquivalent:@""] autorelease]]; | ||
NSMenuItem *submenuItem = [[[NSMenuItem alloc] initWithTitle:title action:nil keyEquivalent:@""] autorelease]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to ARCify MiniBrowser code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, may do that at some point.
https://bugs.webkit.org/show_bug.cgi?id=247305 Reviewed by Simon Fraser. * Tools/MiniBrowser/mac/SettingsController.m: (-[SettingsController initWithMenu:]): (addItemToMenuWithTarget): (addSeparatorToMenu): (addSubmenuToMenu): (-[SettingsController _populateMenu:]): (-[SettingsController buildUserAgentsMenu:]): (-[SettingsController validateMenuItem:]): (-[SettingsController changeCustomUserAgent:]): (-[SettingsController dealloc]): Deleted. (-[SettingsController _addItemWithTitle:action:indented:]): Deleted. (-[SettingsController _addHeaderWithTitle:]): Deleted. (-[SettingsController _populateMenu]): Deleted. (-[SettingsController changeCutomUserAgent:]): Deleted. Simplify the menu construction with some more helper functions. Move the resource usage overlays into the overlay submenu. Remove the empty WebKit1-only settings section. Fix some typos. Canonical link: https://commits.webkit.org/256195@main
9dc15e8
to
d8123ac
Compare
Committed 256195@main (d8123ac): https://commits.webkit.org/256195@main Reviewed commits have been landed. Closing PR #5992 and removing active labels. |
d8123ac
9dc15e8
π§ͺ api-iosπ§ͺ api-macπ§ͺ mac-AS-debug-wk2