Bug 144544 - [Gtk] [Wayland] Epiphany fails to render DuckDuckGo pages
Summary: [Gtk] [Wayland] Epiphany fails to render DuckDuckGo pages
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks: 81456
  Show dependency treegraph
 
Reported: 2015-05-03 06:18 PDT by Juraj Fiala
Modified: 2015-07-01 08:55 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juraj Fiala 2015-05-03 06:18:02 PDT
From https://bugzilla.gnome.org/show_bug.cgi?id=748829

Original bug report (slightly altered):

When trying to load DuckDuckGo pages in Epiphany under Wayland, you either get a blank page if you've entered the address in the address name, or if you clicked on an entry in the new tab page you just get a different window name and address, the page stays the same.

webkit2gtk 2.8.1-1, Web (Epiphany) 3.16, GNOME 3.16.1, Arch Linux (fully updated).

Thanks.
Comment 1 Michael Catanzaro 2015-05-03 09:19:42 PDT
Thanks for taking the time to move this bug report.

So we have a series of bugs that only occur on a few web sites, including duckduckgo.com:

[list][*]Scrolling is extremely slow on particular pages, including DuckDuckGo: https://bugs.freedesktop.org/show_bug.cgi?id=85064
[*]Hidpi does not work on particular pages, including DuckDuckGo: https://bugs.webkit.org/show_bug.cgi?id=141782
[*]This bug
[/list]
It would be an impressive coincidence if these bugs were unrelated. I don't think DDG is that unlucky.

I'm planning to try to disabling all OpenGL-related options in the Fedora build to see if these bugs go away when they're disabled. (This requires a small bit of effort to fix the build with these options disabled, which is why I haven't done so yet.)
Comment 2 Michael Catanzaro 2015-05-03 09:20:45 PDT
Not sure why I thought BBCode would work on Bugzilla. :D
Comment 3 Juraj Fiala 2015-05-03 11:00:53 PDT
Don't forget that it works fine on X. Only Wayland is affected.
Comment 4 Michael Catanzaro 2015-05-05 13:56:47 PDT
I guess accelerated compositing is to blame. We'll have to either fix it or disable it prior to Fedora 23 when we switch to Wayland by default.
Comment 5 Martin Robinson 2015-05-05 14:03:46 PDT
(In reply to comment #4)
> I guess accelerated compositing is to blame. We'll have to either fix it or
> disable it prior to Fedora 23 when we switch to Wayland by default.

Disabling accelerated compositing would break 3D CSS transforms and make WebGL pretty unusable, so hopefully we can fix this.
Comment 6 Michael Catanzaro 2015-05-05 14:29:02 PDT
OK, many (not all!) pages on GitHub are broken in Wayland too. In X, GitHub is affected by fdo#85064, just like DuckDuckGo. Most other sites are unaffected. I would bet more than I should that hipdi is broken on GitHub as well. So I'm pretty sure all three issues are related. We've independently guessed accelerated compositing is to blame for fdo#85064 and the hidpi bug, so it seems like a good guess here too. Is accelerated compositing is something that's only used sometimes, based on some heuristic?

Do any important sites break without 3D CSS transforms? We already disable WebGL in Epiphany, so that won't be a regression for us. I'm pretty sure these three bugs are much more serious. I always prefer a proper fix to a workaround and hate to disable all your work on accelerated compositing, but if that fixes these issues we should absolutely do so.
Comment 7 Martin Robinson 2015-05-05 14:36:24 PDT
(In reply to comment #6)

> Do any important sites break without 3D CSS transforms? We already disable
> WebGL in Epiphany, so that won't be a regression for us. I'm pretty sure
> these three bugs are much more serious. I always prefer a proper fix to a
> workaround and hate to disable all your work on accelerated compositing, but
> if that fixes these issues we should absolutely do so.

I think a better approach is to simply fix this bug than to disable anything. I don't think AC or hidpi are features that we can reasonably turn off.
Comment 8 Martin Robinson 2015-05-05 14:38:33 PDT
(In reply to comment #7)
> (In reply to comment #6)
> 
> > Do any important sites break without 3D CSS transforms? We already disable
> > WebGL in Epiphany, so that won't be a regression for us. I'm pretty sure
> > these three bugs are much more serious. I always prefer a proper fix to a
> > workaround and hate to disable all your work on accelerated compositing, but
> > if that fixes these issues we should absolutely do so.
> 
> I think a better approach is to simply fix this bug than to disable
> anything. I don't think AC or hidpi are features that we can reasonably turn
> off.

To expand on this, if hidpi support was added without considering accelerated compositing mode, the feature is incomplete and needs to be finished.
Comment 9 Michael Catanzaro 2015-05-09 07:19:31 PDT
It seems I can reproduce this bug reliably using WebKitGTK+ 2.8.1 packaged for Fedora 22, but not using my development build. Perhaps the problem only exists in the 2.8 branch.

(In reply to comment #8)
> To expand on this, if hidpi support was added without considering
> accelerated compositing mode, the feature is incomplete and needs to be
> finished.

That seems to be the case. :(
Comment 10 Michael Catanzaro 2015-06-08 15:27:07 PDT

*** This bug has been marked as a duplicate of bug 115803 ***
Comment 11 Michael Catanzaro 2015-07-01 08:37:59 PDT
I marked this as a dup of bug #115803 but it's not really. We don't need to support accelerated compositing, we just need to not try to use it and fail. That's working now when built with ENABLE_WAYLAND_TARGET=ON, so when 2.10 is released, convince your distro to build with ENABLE_WAYLAND_TARGET=ON. I'm going to try enabling it in Fedora rawhide now.