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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | test_safari.sh » ('j') | test_safari.sh » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
ahe 2016/04/08 12:56:53 I'm not sure if this should be a script like this,
2
3 lsof -t /Applications/Safari.app/Contents/MacOS/Safari | xargs kill
4 pkill -HUP com.apple.Safari
5
6 rm -rf ~/Library/Caches/com.apple.Safari ~/Library/Safari ~/Library/Saved\ Appli cation\ State/com.apple.Safari.savedState ~/Library/Caches/Metadata/Safari
7
8 defaults delete com.apple.safari
9
10 defaults write com.apple.safari '{
11 DefaultBrowserPromptingState2 = 2;
12 StartPageViewControllerMode = 0;
13 TestDriveOriginBrowser = 1;
14 TestDriveUserDecision = 2;
15 TestDriveState = 3;
16 AlwaysRestoreSessionAtLaunch = 0;
17 NewTabBehavior = 1;
18 NewWindowBehavior = 1;
19 LastSafariVersionWithWelcomePage = "9.0";
20 OpenNewTabsInFront = 0;
21 TabCreationPolicy = 0;
22
23 IncludeDevelopMenu = 1;
24 WebKitDeveloperExtrasEnabledPreferenceKey = 1;
25 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" = 1;
26
27 AutoFillCreditCardData = 0;
28 AutoFillMiscellaneousForms = 0;
29 AutoFillPasswords = 0;
30
31 SuppressSearchSuggestions = 1;
32
33 PreloadTopHit = 0;
34 ShowFavoritesUnderSmartSearchField = 0;
35 WebsiteSpecificSearchEnabled = 0;
36
37 WarnAboutFraudulentWebsites = 0;
38
39
40 WebKitJavaScriptEnabled = 1;
41 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptEnabled" = 1;
42
43 WebKitJavaScriptCanOpenWindowsAutomatically = 1;
44 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptCanOpenWindows Automatically" = 1;
45
46 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2WebGLEnabled" = 1;
47 WebGLDefaultLoadPolicy = WebGLPolicyAllowNoSecurityRestrictions;
48
49
50 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2PluginsEnabled" = 0;
51
52 BlockStoragePolicy = 1;
53 WebKitStorageBlockingPolicy = 0;
54 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2StorageBlockingPolicy" = 0;
55
56
57 SafariGeolocationPermissionPolicy = 0;
58
59 CanPromptForPushNotifications = 0;
60
61 InstallExtensionUpdatesAutomatically = 0;
62
63 ShowFullURLInSmartSearchField = 1;
64
65 "com.apple.Safari.ContentPageGroupIdentifier.WebKit2PlugInSnapshottingEnable d" = 0;
66
67
68 }'
69
70 # OpenPrivateWindowWhenNotRestoringSessionAtLaunch = 1;
OLDNEW
« 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