⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 185651 in webkit


Ignore:
Timestamp:
Jun 17, 2015, 8:32:38 AM (11 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER doesn't disable memory cache when set before the web process is launched
​https://bugs.webkit.org/show_bug.cgi?id=146053

Reviewed by Martin Robinson.

The cache is disabled in WebProcess::platformSetCacheModel() when
the cache model is CacheModelDocumentViewer, but it's enabled
again by WebProcess::setMemoryCacheDisabled() when
memoryCacheDisabled creation parameter is processed. We need to
make sure the cache model and memoryCacheDisabled parameters are consistent.

  • UIProcess/gtk/WebProcessPoolGtk.cpp:

(WebKit::WebProcessPool::platformInitializeWebProcess): Initialize
memoryCacheDisabled parameter to true if memory cache was
explicitly disabled or cache model is CacheModelDocumentViewer.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r185650 r185651  
     12015-06-17  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER doesn't disable memory cache when set before the web process is launched
     4        https://bugs.webkit.org/show_bug.cgi?id=146053
     5
     6        Reviewed by Martin Robinson.
     7
     8        The cache is disabled in WebProcess::platformSetCacheModel() when
     9        the cache model is CacheModelDocumentViewer, but it's enabled
     10        again by WebProcess::setMemoryCacheDisabled() when
     11        memoryCacheDisabled creation parameter is processed. We need to
     12        make sure the cache model and memoryCacheDisabled parameters are consistent.
     13
     14        * UIProcess/gtk/WebProcessPoolGtk.cpp:
     15        (WebKit::WebProcessPool::platformInitializeWebProcess): Initialize
     16        memoryCacheDisabled parameter to true if memory cache was
     17        explicitly disabled or cache model is CacheModelDocumentViewer.
     18
    1192015-06-17  Zan Dobersek  <zdobersek@igalia.com>
    220
  • trunk/Source/WebKit2/UIProcess/gtk/WebProcessPoolGtk.cpp

    r185502 r185651  
    109109        parameters.diskCacheDirectory = m_configuration->diskCacheDirectory();
    110110    }
     111
     112    parameters.memoryCacheDisabled = m_memoryCacheDisabled || m_cacheModel == CacheModelDocumentViewer;
    111113}
    112114
Note: See TracChangeset for help on using the changeset viewer.