WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176055
Setting the cache storage engine root path according the session WebsiteDataStore
https://bugs.webkit.org/show_bug.cgi?id=176055
Summary
Setting the cache storage engine root path according the session WebsiteDataS...
youenn fablet
Reported
2017-08-29 09:42:52 PDT
This will allow cache storage per session/websitedatastore. Ephemeral sessions will have a specific null path so that no access is done at all.
Attachments
Patch
(20.88 KB, patch)
2017-08-29 09:54 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2017-08-29 09:54:45 PDT
Created
attachment 319255
[details]
Patch
Alex Christensen
Comment 2
2017-08-29 13:23:33 PDT
Comment on
attachment 319255
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=319255&action=review
> Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp:53 > + auto addResult = globalEngineMap().add(sessionID, nullptr);
This can probably still use ensure.
> Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp:357 > + channel->read(0, std::numeric_limits<size_t>::max(), m_ioQueue.get(), [callback = WTFMove(callback)](const Data& data, int error) mutable { > + RunLoop::main().dispatch([callback = WTFMove(callback), data, error]() mutable {
Will this create a copy of data, or just capture a reference to something that will probably be gone?
youenn fablet
Comment 3
2017-08-29 13:45:15 PDT
Comment on
attachment 319255
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=319255&action=review
>> Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp:53 >> + auto addResult = globalEngineMap().add(sessionID, nullptr); > > This can probably still use ensure.
I tried it and it was crashing. I haven't investigated precisely the reason for this crash.
>> Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp:357 >> + RunLoop::main().dispatch([callback = WTFMove(callback), data, error]() mutable { > > Will this create a copy of data, or just capture a reference to something that will probably be gone?
It will capture data by copy which will do like capturing a Ref. I guess the lambda could take a Data&& instead.
WebKit Commit Bot
Comment 4
2017-08-29 14:39:51 PDT
Comment on
attachment 319255
[details]
Patch Clearing flags on attachment: 319255 Committed
r221315
: <
http://trac.webkit.org/changeset/221315
>
WebKit Commit Bot
Comment 5
2017-08-29 14:39:53 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2017-08-29 14:40:39 PDT
<
rdar://problem/34142875
>
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