Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
2011-03-03 Maciej Stachowiak <mjs@apple.com>
        Reviewed by Brady Eidson.

        WebProcess is calling CFURLCacheRemoveAllCachedResponses when loading, results in origin-load for all resources
        https://bugs.webkit.org/show_bug.cgi?id=55701
        <rdar://problem/9074017>

        * Shared/WebProcessCreationParameters.cpp:
        (WebKit::WebProcessCreationParameters::WebProcessCreationParameters): Initialize cache-clearing
        flag parameters to false.
        (WebKit::WebProcessCreationParameters::encode): Serialize them properly.
        (WebKit::WebProcessCreationParameters::decode): And deserialize.


Canonical link: https://commits.webkit.org/70176@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@80281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
othermaciej committed Mar 3, 2011
1 parent 828c55c commit d0a65f8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Source/WebKit2/ChangeLog
@@ -1,3 +1,17 @@
2011-03-03 Maciej Stachowiak <mjs@apple.com>

Reviewed by Brady Eidson.

WebProcess is calling CFURLCacheRemoveAllCachedResponses when loading, results in origin-load for all resources
https://bugs.webkit.org/show_bug.cgi?id=55701
<rdar://problem/9074017>

* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::WebProcessCreationParameters): Initialize cache-clearing
flag parameters to false.
(WebKit::WebProcessCreationParameters::encode): Serialize them properly.
(WebKit::WebProcessCreationParameters::decode): And deserialize.

2011-03-03 Alexey Proskuryakov <ap@apple.com>

Reviewed by Darin Adler.
Expand Down
8 changes: 8 additions & 0 deletions Source/WebKit2/Shared/WebProcessCreationParameters.cpp
Expand Up @@ -32,6 +32,8 @@ namespace WebKit {

WebProcessCreationParameters::WebProcessCreationParameters()
: shouldTrackVisitedLinks(false)
, clearResourceCaches(false)
, clearApplicationCache(false)
, shouldAlwaysUseComplexTextCodePath(false)
, defaultRequestTimeoutInterval(INT_MAX)
#if PLATFORM(MAC)
Expand All @@ -55,6 +57,8 @@ void WebProcessCreationParameters::encode(CoreIPC::ArgumentEncoder* encoder) con
encoder->encode(mimeTypesWithCustomRepresentation);
encoder->encodeEnum(cacheModel);
encoder->encode(shouldTrackVisitedLinks);
encoder->encode(clearResourceCaches);
encoder->encode(clearApplicationCache);
encoder->encode(shouldAlwaysUseComplexTextCodePath);
encoder->encode(languageCode);
encoder->encode(textCheckerState);
Expand Down Expand Up @@ -100,6 +104,10 @@ bool WebProcessCreationParameters::decode(CoreIPC::ArgumentDecoder* decoder, Web
return false;
if (!decoder->decode(parameters.shouldTrackVisitedLinks))
return false;
if (!decoder->decode(parameters.clearResourceCaches))
return false;
if (!decoder->decode(parameters.clearApplicationCache))
return false;
if (!decoder->decode(parameters.shouldAlwaysUseComplexTextCodePath))
return false;
if (!decoder->decode(parameters.languageCode))
Expand Down

0 comments on commit d0a65f8

Please sign in to comment.