Title: [169288] trunk/Source/WebKit2
Revision
169288
Author
ander...@apple.com
Date
2014-05-23 16:25:52 -0700 (Fri, 23 May 2014)

Log Message

Fix test failures on the bot.

* UIProcess/API/Cocoa/WKProcessPool.mm:
(websiteDataDirectoryURL):
If we have no bundle identifier, use the process name.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (169287 => 169288)


--- trunk/Source/WebKit2/ChangeLog	2014-05-23 22:37:30 UTC (rev 169287)
+++ trunk/Source/WebKit2/ChangeLog	2014-05-23 23:25:52 UTC (rev 169288)
@@ -1,3 +1,11 @@
+2014-05-23  Anders Carlsson  <ander...@apple.com>
+
+        Fix test failures on the bot.
+
+        * UIProcess/API/Cocoa/WKProcessPool.mm:
+        (websiteDataDirectoryURL):
+        If we have no bundle identifier, use the process name.
+
 2014-05-23  Enrica Casucci  <enr...@apple.com>
 
         REGRESSION (iOS WebKit2): Autocorrection is not accurate when changing selection.

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKProcessPool.mm (169287 => 169288)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKProcessPool.mm	2014-05-23 22:37:30 UTC (rev 169287)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKProcessPool.mm	2014-05-23 23:25:52 UTC (rev 169288)
@@ -115,8 +115,13 @@
             RELEASE_ASSERT_NOT_REACHED();
 
         url = "" URLByAppendingPathComponent:@"WebKit" isDirectory:YES];
-        url = "" URLByAppendingPathComponent:[[NSBundle mainBundle] bundleIdentifier] isDirectory:YES];
 
+        NSString *bundleIdentifier = [NSBundle mainBundle].bundleIdentifier;
+        if (!bundleIdentifier)
+            bundleIdentifier = [NSProcessInfo processInfo].processName;
+
+        url = "" URLByAppendingPathComponent:bundleIdentifier isDirectory:YES];
+
         websiteDataURL = [[url URLByAppendingPathComponent:@"WebsiteData" isDirectory:YES] retain];
     });
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to