WebKit2.WebContext.prototype.set_favicon_database_directory

function set_favicon_database_directory(path: String): void {
    // Gjs wrapper for webkit_web_context_set_favicon_database_directory()
}
  

Set the directory path to be used to store the favicons database for context on disk. Passing null as path means using the default directory for the platform (see g_get_user_data_dir()).

Calling this method also means enabling the favicons database for its use from the applications, so that's why it's expected to be called only once. Further calls for the same instance of WebKit2.WebContext won't cause any effect.

path

an absolute path to the icon database directory or null to use the defaults