mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
mac: Add applicationSupportsSecureRestorableState
Requests that any state restoration archive be created with secure encoding (macOS 12+ only). See https://crrev.com/c737387656 for details. This also fixes an issue with macOS default behavior incorrectly restoring windows after hard reset (holding down the power button).
This commit is contained in:
@@ -522,6 +522,14 @@ void RemoveMenuItem(NSMenu* menu, SEL action_selector) {
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
// Requests that any state restoration archive be created with secure encoding
|
||||
// (macOS 12+ only). See https://crrev.com/c737387656 for details. This also
|
||||
// fixes an issue with macOS default behavior incorrectly restoring windows
|
||||
// after hard reset (holding down the power button).
|
||||
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication*)app {
|
||||
return YES;
|
||||
}
|
||||
@end
|
||||
|
||||
namespace client {
|
||||
|
@@ -119,6 +119,14 @@
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
// Requests that any state restoration archive be created with secure encoding
|
||||
// (macOS 12+ only). See https://crrev.com/c737387656 for details. This also
|
||||
// fixes an issue with macOS default behavior incorrectly restoring windows
|
||||
// after hard reset (holding down the power button).
|
||||
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication*)app {
|
||||
return YES;
|
||||
}
|
||||
@end
|
||||
|
||||
// Entry point function for the browser process.
|
||||
|
Reference in New Issue
Block a user