Changeset 170516 in webkit
- Timestamp:
- Jun 26, 2014, 7:43:21 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r170510 r170516 1 2014-06-26 Brady Eidson <beidson@apple.com> 2 3 MiniBrowser should support a preference to override the default URL 4 https://bugs.webkit.org/show_bug.cgi?id=134373 5 6 Reviewed by Darin Adler. 7 8 * MiniBrowser/mac/AppDelegate.m: 9 (-[BrowserAppDelegate applicationDidFinishLaunching:]): See if there’s a pref 10 overriding the default URL, and use it if there is. 11 1 12 2014-06-26 Brent Fulgham <bfulgham@apple.com> 2 13 -
trunk/Tools/MiniBrowser/mac/AppDelegate.m
r170305 r170516 33 33 static NSString *defaultURL = @"http://www.webkit.org/"; 34 34 static NSString *useWebKit2ByDefaultPreferenceKey = @"UseWebKit2ByDefault"; 35 static NSString *defaultURLPreferenceKey = @"DefaultURL"; 35 36 36 37 enum { … … 91 92 92 93 [[NSUserDefaults standardUserDefaults] setBool:@YES forKey:@"WebKitDeveloperExtrasEnabled"]; 94 NSString *newDefaultURL = [[NSUserDefaults standardUserDefaults] stringForKey:defaultURLPreferenceKey]; 95 if (newDefaultURL) 96 defaultURL = [newDefaultURL retain]; 97 93 98 [self newWindow:self]; 94 99 }
Note:
See TracChangeset
for help on using the changeset viewer.