[Webkit-unassigned] [Bug 50004] New: [GTK] Need 'webview-cache-model' property in WebKitWebSettings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 23 22:16:22 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=50004

           Summary: [GTK] Need 'webview-cache-model' property in
                    WebKitWebSettings
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joone at kldp.org


Currently, WebKitGtk+ offers the following functions to set the webview cache model,
 - webkit_get_cache_model()
 - webkit_set_cache_mode()

They are not relevant to any gobjects, so these functions seem to be exceptional.
I think we had better add a new property(webview-cache-model) to WebKitWebSettings and use the didPerformFirstNavigation callback to set the cache model instead of using the above functions directly.

This is an example of the didPerformFirstNavigation callback.

void FrameLoaderClient::didPerformFirstNavigation() const
{
    WebKitWebSettings* settings = webkit_web_view_get_settings(getViewFromFrame(m_frame));

    WebKitCacheModel cacheModel;
    g_object_get(settings, "webview-cache-model", &cacheModel, NULL);
    webViewSetCacheModel(cacheModel);
}

Mac and Windows port also set the cache model like this.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list