Skip to content

Commit 833bc12

Browse files
committed
For macOS, support applicationSupportsSecureRestorableState to avoid warning on modern macOS (12+), Intel-based platforms. Thanks Juan for the hint!
1 parent 1b15c7e commit 833bc12

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

platforms/iOS/vm/OSX/SqueakOSXAppDelegate.m

+9
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sende
133133
return NSTerminateCancel;
134134
}
135135

136+
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)sender {
137+
// macOS 12.0+
138+
// We do not handle save/restore ourselves. Thus, it is fine to let
139+
// the operating system handle it securely.
140+
// See https://sector7.computest.nl/post/2022-08-process-injection-
141+
// breaking-all-macos-security-layers-with-a-single-vulnerability/
142+
return YES;
143+
}
144+
136145
- (void) initializeTheWindowHandler {
137146
[windowHandler mainViewOnWindow: self.mainView];
138147
self.mainView.windowLogic = windowHandler;

0 commit comments

Comments
 (0)