fix: implement missing applicationSupportsSecureRestorableState (#40296)

This commit is contained in:
Milan Burda 2023-10-31 10:22:58 -04:00 committed by GitHub
parent 8210d0f90e
commit 4b1c31e4db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,4 +198,12 @@ static NSDictionary* UNNotificationResponseToNSDictionary(
} }
} }
// This only has an effect on macOS 12+, and requests any state restoration
// archive to be created with secure encoding. See the article at
// https://sector7.computest.nl/post/2022-08-process-injection-breaking-all-macos-security-layers-with-a-single-vulnerability/
// for more details.
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication*)app {
return YES;
}
@end @end