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

Revert "Workaround https://bugs.webkit.org/show_bug.cgi?id=194663"

This reverts commit 1eb206b0.
parent 69dc476c
Pipeline #76252 passed with stage
in 12 minutes and 1 second
......@@ -123,21 +123,9 @@ class Container(Gtk.Overlay):
view.show()
self.__pages_manager.add_view(view)
self.__sites_manager.add_view(view)
if loading_type == LoadingType.WORKAROUND_194663:
removed = []
for child in self.__stack.get_children():
removed.append(child)
self.__stack.remove(child)
self.__current = view
self.__stack.add(view)
self.__pages_manager.update_visible_child()
self.__sites_manager.update_visible_child()
self.__stack.set_visible_child(view)
for child in removed:
self.__stack.add(child)
# Check for expose because we will be unable to get snapshot as
# window is not visible
elif loading_type == LoadingType.FOREGROUND and not self.in_expose:
if loading_type == LoadingType.FOREGROUND and not self.in_expose:
self.__current = view
self.__stack.add(view)
self.__pages_manager.update_visible_child()
......
......@@ -67,8 +67,6 @@ class LoadingType:
BACKGROUND = 1
OFFLOAD = 2
POPOVER = 3
# https://bugs.webkit.org/show_bug.cgi?id=194663
WORKAROUND_194663 = 4
class Type:
......
......@@ -585,7 +585,7 @@ class WebView(WebKit2.WebView):
properties.get_scrollbars_visible()):
self._window.container.add_webview_with_new_view(
webview,
LoadingType.WORKAROUND_194663)
LoadingType.FOREGROUND)
else:
self._window.container.popup_webview(webview, True)
......
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