Bug 1408118 - Disable Mac's insertion of its own full screen menu item as we already provide one. r=spohl

MozReview-Commit-ID: EgCWL00ZfUT

--HG--
extra : rebase_source : b59ddbe9dd6d2e7335d9a414fa77baf3f78ccaed
This commit is contained in:
Mark Banner 2017-10-13 08:47:56 +01:00
Родитель 96ab77b884
Коммит a02deb60ef
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -297,6 +297,12 @@ ProcessPendingGetURLAppleEvents()
NS_OBJC_END_TRY_ABORT_BLOCK_NIL;
}
- (void)applicationWillFinishLaunching:(NSNotification*)notification {
// We provide our own full screen menu item, so we don't want the OS providing
// one as well.
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];
}
// If we don't handle applicationShouldTerminate:, a call to [NSApp terminate:]
// (from the browser or from the OS) can result in an unclean shutdown.
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender