Changeset 169288 in webkit


Ignore:
Timestamp:
May 23, 2014 4:25:52 PM (10 years ago)
Author:
andersca@apple.com
Message:

Fix test failures on the bot.

  • UIProcess/API/Cocoa/WKProcessPool.mm:

(websiteDataDirectoryURL):
If we have no bundle identifier, use the process name.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r169282 r169288  
     12014-05-23  Anders Carlsson  <andersca@apple.com>
     2
     3        Fix test failures on the bot.
     4
     5        * UIProcess/API/Cocoa/WKProcessPool.mm:
     6        (websiteDataDirectoryURL):
     7        If we have no bundle identifier, use the process name.
     8
    192014-05-23  Enrica Casucci  <enrica@apple.com>
    210
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKProcessPool.mm

    r169271 r169288  
    116116
    117117        url = [url URLByAppendingPathComponent:@"WebKit" isDirectory:YES];
    118         url = [url URLByAppendingPathComponent:[[NSBundle mainBundle] bundleIdentifier] isDirectory:YES];
     118
     119        NSString *bundleIdentifier = [NSBundle mainBundle].bundleIdentifier;
     120        if (!bundleIdentifier)
     121            bundleIdentifier = [NSProcessInfo processInfo].processName;
     122
     123        url = [url URLByAppendingPathComponent:bundleIdentifier isDirectory:YES];
    119124
    120125        websiteDataURL = [[url URLByAppendingPathComponent:@"WebsiteData" isDirectory:YES] retain];
Note: See TracChangeset for help on using the changeset viewer.