Commit fdfa6df9 authored by Cédric Bellegarde's avatar Cédric Bellegarde

Disable favicons for ephemeral views

parent 1a736343
......@@ -32,11 +32,11 @@ class Context:
self.__context = context
if not context.is_ephemeral():
context.set_cache_model(WebKit2.CacheModel.WEB_BROWSER)
context.set_favicon_database_directory(None)
cookie_manager = context.get_cookie_manager()
cookie_manager.set_accept_policy(
App().settings.get_enum("cookie-storage"))
context.set_web_extensions_directory(App().extension_dir)
context.set_favicon_database_directory(None)
context.set_process_model(
WebKit2.ProcessModel.MULTIPLE_SECONDARY_PROCESSES)
context.set_spell_checking_enabled(
......
......@@ -57,6 +57,8 @@ class WebViewArtwork:
Set favicon based on current webview favicon
Use this for JS update (do not update initial uri)
"""
if self.ephemeral:
return
self.__set_favicon_from_surface(
self.get_favicon(),
self.uri,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment