PSA if you ever ran my SafariPrivacyTest sample app

from blog The Desolation of Blog, | ↗ original
A month ago I disclosed a macOS privacy protections bypass, and I offered a sample app for download that demonstrates the issue. Unfortunately, it turns out that the app had a little bug. In applicationDidFinishLaunching it calls CFPreferencesSetValue(KeepsWindowsOpenPref, kCFBooleanTrue, kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesCurrentHost), and in applicationWillTerminate it calls CFPreferencesSetValue(KeepsWindowsOpenPref, kCFBooleanFalse, kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesCurrentHost), where KeepsWindowsOpenPref = CFSTR("NSQuitAlwaysKeepsWindows"). The bug is that kCFPreferencesCurrentHost should have been kCFPreferencesAnyHost.