WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
175884
[Cache API] UIProcess should provide the directory path where to store Cache Storage data
https://bugs.webkit.org/show_bug.cgi?id=175884
Summary
[Cache API] UIProcess should provide the directory path where to store Cache ...
youenn fablet
Reported
2017-08-23 08:18:40 PDT
And its sandbox extension as well.
Attachments
Patch
(18.72 KB, patch)
2017-08-23 08:26 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(18.77 KB, patch)
2017-08-23 09:01 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(16.20 KB, patch)
2017-08-24 17:01 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Fixing typo
(1.65 KB, patch)
2017-08-25 09:20 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2017-08-23 08:26:57 PDT
Created
attachment 318870
[details]
Patch
youenn fablet
Comment 2
2017-08-23 09:01:39 PDT
Created
attachment 318874
[details]
Patch
Brady Eidson
Comment 3
2017-08-24 09:19:16 PDT
Comment on
attachment 318874
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=318874&action=review
R+ with comments
> Source/WebKit/UIProcess/API/C/WKContextConfigurationRef.h:43 > +WK_EXPORT WKStringRef WKContextConfigurationCopyCacheStorageDirectory(WKContextConfigurationRef configuration); > +WK_EXPORT void WKContextConfigurationSetCacheStorageDirectory(WKContextConfigurationRef configuration, WKStringRef cacheStorageDirectory); > +
Since there's no tests and therefore no user of this API, just skip it in this patch. When we do need to expose the API to set the directory, please do so on WKProcessPool instead. The C-API should be a dead man walking at this point.
> Source/WebKit/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm:58 > +String WebsiteDataStore::defaultCacheStorageDirectory() > +{ > + return cacheDirectoryFileSystemRepresentation("CacheStorage"); > +}
I know you're not using this yet, but probably plan to soon. That said, cacheDirectoryFileSystemRepresentation() is wrong as it picks a directory in the NSCachesDirectory folder. I think we want websiteDataDirectoryFileSystemRepresentation() instead
youenn fablet
Comment 4
2017-08-24 17:01:24 PDT
Created
attachment 319040
[details]
Patch for landing
WebKit Commit Bot
Comment 5
2017-08-24 18:08:20 PDT
Comment on
attachment 319040
[details]
Patch for landing Clearing flags on attachment: 319040 Committed
r221175
: <
http://trac.webkit.org/changeset/221175
>
WebKit Commit Bot
Comment 6
2017-08-24 18:08:21 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2017-08-24 18:09:33 PDT
<
rdar://problem/34072441
>
youenn fablet
Comment 8
2017-08-25 09:20:02 PDT
Reopening to attach new patch.
youenn fablet
Comment 9
2017-08-25 09:20:03 PDT
Created
attachment 319082
[details]
Fixing typo
WebKit Commit Bot
Comment 10
2017-08-25 10:01:37 PDT
Comment on
attachment 319082
[details]
Fixing typo Clearing flags on attachment: 319082 Committed
r221190
: <
http://trac.webkit.org/changeset/221190
>
WebKit Commit Bot
Comment 11
2017-08-25 10:01:39 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug