Changeset 203392 in webkit


Ignore:
Timestamp:
Jul 18, 2016, 7:02:37 PM (9 years ago)
Author:
achristensen@apple.com
Message:

webbookmarksd needs to use the same AppCache directory as MobileSafari
https://bugs.webkit.org/show_bug.cgi?id=159912
Source/WebCore:

Reviewed by Alexey Proskuryakov.

No new tests. This only changes behavior for webbookmarksd.

  • platform/RuntimeApplicationChecks.h:
  • platform/RuntimeApplicationChecks.mm:

(WebCore::IOSApplication::isWebBookmarksD): Added.

Source/WebKit2:

<rdar://problem/27056844>

Reviewed by Alexey Proskuryakov.

  • UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm:

(API::WebsiteDataStore::defaultApplicationCacheDirectory):
Make webbookmarksd match MobileSafari by adding a matching runtime exception.

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r203391 r203392  
     12016-07-18  Alex Christensen  <achristensen@webkit.org>
     2
     3        webbookmarksd needs to use the same AppCache directory as MobileSafari
     4        https://bugs.webkit.org/show_bug.cgi?id=159912
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        No new tests.  This only changes behavior for webbookmarksd.
     9
     10        * platform/RuntimeApplicationChecks.h:
     11        * platform/RuntimeApplicationChecks.mm:
     12        (WebCore::IOSApplication::isWebBookmarksD): Added.
     13
    1142016-07-18  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebCore/platform/RuntimeApplicationChecks.h

    r202719 r203392  
    6363WEBCORE_EXPORT bool isMobileMail();
    6464WEBCORE_EXPORT bool isMobileSafari();
     65WEBCORE_EXPORT bool isWebBookmarksD();
    6566bool isDumpRenderTree();
    6667bool isMobileStore();
  • trunk/Source/WebCore/platform/RuntimeApplicationChecks.mm

    r202719 r203392  
    171171}
    172172
     173bool IOSApplication::isWebBookmarksD()
     174{
     175    static bool isWebBookmarksD = applicationBundleIsEqualTo("com.apple.webbookmarksd");
     176    return isWebBookmarksD;
     177}
     178
    173179bool IOSApplication::isDumpRenderTree()
    174180{
  • trunk/Source/WebKit2/ChangeLog

    r203387 r203392  
     12016-07-18  Alex Christensen  <achristensen@webkit.org>
     2
     3        webbookmarksd needs to use the same AppCache directory as MobileSafari
     4        https://bugs.webkit.org/show_bug.cgi?id=159912
     5        <rdar://problem/27056844>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm:
     10        (API::WebsiteDataStore::defaultApplicationCacheDirectory):
     11        Make webbookmarksd match MobileSafari by adding a matching runtime exception.
     12
    1132016-07-18  Anders Carlsson  <andersca@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm

    r199854 r203392  
    4141    // This quirk used to make these apps share application cache storage, but doesn't accomplish that any more.
    4242    // Preserving it avoids the need to migrate data when upgrading.
    43     // FIXME: Ideally we should just have Safari and WebApp create a data store with
     43    // FIXME: Ideally we should just have Safari, WebApp, and webbookmarksd create a data store with
    4444    // this application cache path, but that's not supported as of right now.
    45     if (WebCore::IOSApplication::isMobileSafari() || WebCore::IOSApplication::isWebApp()) {
     45    if (WebCore::IOSApplication::isMobileSafari() || WebCore::IOSApplication::isWebApp() || WebCore::IOSApplication::isWebBookmarksD()) {
    4646        NSString *cachePath = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches/com.apple.WebAppCache"];
    4747
Note: See TracChangeset for help on using the changeset viewer.