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

Do not set favicon on WebKit2.LoadEvent.STARTED

parent 3939cdc5
......@@ -247,6 +247,8 @@ class PagesManagerChild(Gtk.FlowBoxChild):
Set favicon
@param webview as WebView
"""
if webview.current_event == WebKit2.LoadEvent.STARTED:
return
image = self.__close_button.get_image()
if webview.is_playing_audio():
image.set_from_icon_name("audio-speakers-symbolic",
......
......@@ -412,6 +412,8 @@ class SitesManagerChild(Gtk.ListBoxRow):
Set favicon
@param webview as WebView
"""
if webview.current_event == WebKit2.LoadEvent.STARTED:
return
if self.get_style_context().has_class("item-selected") and\
len(self.__views) > 1 and\
webview.view != self.__window.container.current:
......
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