Changeset 170516 in webkit


Ignore:
Timestamp:
Jun 26, 2014, 7:43:21 PM (11 years ago)
Author:
beidson@apple.com
Message:

MiniBrowser should support a preference to override the default URL
https://bugs.webkit.org/show_bug.cgi?id=134373

Reviewed by Darin Adler.

  • MiniBrowser/mac/AppDelegate.m:

(-[BrowserAppDelegate applicationDidFinishLaunching:]): See if there’s a pref

overriding the default URL, and use it if there is.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r170510 r170516  
     12014-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
    1122014-06-26  Brent Fulgham  <bfulgham@apple.com>
    213
  • trunk/Tools/MiniBrowser/mac/AppDelegate.m

    r170305 r170516  
    3333static NSString *defaultURL = @"http://www.webkit.org/";
    3434static NSString *useWebKit2ByDefaultPreferenceKey = @"UseWebKit2ByDefault";
     35static NSString *defaultURLPreferenceKey = @"DefaultURL";
    3536
    3637enum {
     
    9192   
    9293    [[NSUserDefaults standardUserDefaults] setBool:@YES forKey:@"WebKitDeveloperExtrasEnabled"];
     94    NSString *newDefaultURL = [[NSUserDefaults standardUserDefaults] stringForKey:defaultURLPreferenceKey];
     95    if (newDefaultURL)
     96        defaultURL = [newDefaultURL retain];
     97
    9398    [self newWindow:self];
    9499}
Note: See TracChangeset for help on using the changeset viewer.