Bug 176138 - Do not create a salt if the CacheStorage engine should not persist
Summary: Do not create a salt if the CacheStorage engine should not persist
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-08-30 17:26 PDT by youenn fablet
Modified: 2017-09-27 12:44 PDT (History)
6 users (show)

See Also:


Attachments
Patch (7.21 KB, patch)
2017-08-30 17:34 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2017-08-30 17:26:29 PDT
There is no need for a salt if there is no access to the disk
Comment 1 youenn fablet 2017-08-30 17:34:11 PDT
Created attachment 319428 [details]
Patch
Comment 2 Alex Christensen 2017-08-31 10:39:58 PDT
Comment on attachment 319428 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=319428&action=review

> Source/WebKit/NetworkProcess/cache/NetworkCacheData.h:-108
> -Salt makeSalt();

Won't we just need to put this back when we make persistent caches use salts?
Comment 3 youenn fablet 2017-08-31 10:49:52 PDT
Thanks for the review.

(In reply to Alex Christensen from comment #2)
> Comment on attachment 319428 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=319428&action=review
> 
> > Source/WebKit/NetworkProcess/cache/NetworkCacheData.h:-108
> > -Salt makeSalt();
> 
> Won't we just need to put this back when we make persistent caches use salts?

For persistent cache salts, we have readOrMakeSalt.
Comment 4 WebKit Commit Bot 2017-08-31 11:19:58 PDT
Comment on attachment 319428 [details]
Patch

Clearing flags on attachment: 319428

Committed r221426: <http://trac.webkit.org/changeset/221426>
Comment 5 WebKit Commit Bot 2017-08-31 11:19:59 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2017-09-27 12:44:20 PDT
<rdar://problem/34693860>