Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: nuke_safari.sh

Issue 1871883002: Make Safari tests more robust. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test_safari.sh » ('j') | test_safari.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nuke_safari.sh
diff --git a/nuke_safari.sh b/nuke_safari.sh
new file mode 100755
index 0000000000000000000000000000000000000000..0beeb62c7bda478a47f7a68706331a0fb079c628
--- /dev/null
+++ b/nuke_safari.sh
@@ -0,0 +1,70 @@
+#!/bin/bash
ahe 2016/04/08 12:56:53 I'm not sure if this should be a script like this,
+
+lsof -t /Applications/Safari.app/Contents/MacOS/Safari | xargs kill
+pkill -HUP com.apple.Safari
+
+rm -rf ~/Library/Caches/com.apple.Safari ~/Library/Safari ~/Library/Saved\ Application\ State/com.apple.Safari.savedState ~/Library/Caches/Metadata/Safari
+
+defaults delete com.apple.safari
+
+defaults write com.apple.safari '{
+ DefaultBrowserPromptingState2 = 2;
+ StartPageViewControllerMode = 0;
+ TestDriveOriginBrowser = 1;
+ TestDriveUserDecision = 2;
+ TestDriveState = 3;
+ AlwaysRestoreSessionAtLaunch = 0;
+ NewTabBehavior = 1;
+ NewWindowBehavior = 1;
+ LastSafariVersionWithWelcomePage = "9.0";
+ OpenNewTabsInFront = 0;
+ TabCreationPolicy = 0;
+
+ IncludeDevelopMenu = 1;
+ WebKitDeveloperExtrasEnabledPreferenceKey = 1;
+ "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" = 1;
+
+ AutoFillCreditCardData = 0;
+ AutoFillMiscellaneousForms = 0;
+ AutoFillPasswords = 0;
+
+ SuppressSearchSuggestions = 1;
+
+ PreloadTopHit = 0;
+ ShowFavoritesUnderSmartSearchField = 0;
+ WebsiteSpecificSearchEnabled = 0;
+
+ WarnAboutFraudulentWebsites = 0;
+
+
+ WebKitJavaScriptEnabled = 1;
+ "com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptEnabled" = 1;
+
+ WebKitJavaScriptCanOpenWindowsAutomatically = 1;
+ "com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptCanOpenWindowsAutomatically" = 1;
+
+ "com.apple.Safari.ContentPageGroupIdentifier.WebKit2WebGLEnabled" = 1;
+ WebGLDefaultLoadPolicy = WebGLPolicyAllowNoSecurityRestrictions;
+
+
+ "com.apple.Safari.ContentPageGroupIdentifier.WebKit2PluginsEnabled" = 0;
+
+ BlockStoragePolicy = 1;
+ WebKitStorageBlockingPolicy = 0;
+ "com.apple.Safari.ContentPageGroupIdentifier.WebKit2StorageBlockingPolicy" = 0;
+
+
+ SafariGeolocationPermissionPolicy = 0;
+
+ CanPromptForPushNotifications = 0;
+
+ InstallExtensionUpdatesAutomatically = 0;
+
+ ShowFullURLInSmartSearchField = 1;
+
+ "com.apple.Safari.ContentPageGroupIdentifier.WebKit2PlugInSnapshottingEnabled" = 0;
+
+
+}'
+
+# OpenPrivateWindowWhenNotRestoringSessionAtLaunch = 1;
« no previous file with comments | « no previous file | test_safari.sh » ('j') | test_safari.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698