Webkit rendering CSS3 and HTML5

Bug #1403414 reported by Helio Loureiro
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
Won't Fix
Undecided
Unassigned
pywebkitgtk (Debian)
Fix Released
Unknown

Bug Description

I'm not sure where this bug resides, but I'm trying to write a tiny browser to display Jenkins status on raspberrypi.

I tried on pyqt4 and pygtk2.

On my machine, x86_64, it renders properly. On raspberrypi, it doesn't render at all or shows a message "it seems like your browser is having problems with CSS3".

At firt I considered it was some on bug on Qt4, since it renders properly in browsers like epiphany-browser and chromium, so I tried GTK one, and got the same result.

So my guess is about webkit itself.

At this moment my script to create such browser based display is here: https://github.com/helioloureiro/raspresenterpy

I tried the gtk-browser from here: http://eurion.net/python-snippets/snippet/Webkit%20Browser.html

I can't see any errors, so probably I need to find a way to debug deeply webkit.

Revision history for this message
Helio Loureiro (helioloureiro) wrote :

Just found the reason. Libraries were compiled pointing to the wrong version of webkit (quite outdated).

pi@raspberrypi ~ $ ldd /usr/lib/pymodules/python2.7/webkit/webkit.so | grep -i webkit
        libwebkitgtk-1.0.so.0 => /usr/lib/libwebkitgtk-1.0.so.0 (0xb55c3000)

It should be using /usr/lib/arm-linux-gnueabihf/libwebkitgtk-3.0.so.0 instead.

All libqtweb are probably compiled like this.

Revision history for this message
Diederik (didi-debian) wrote :

Is this still an issue (that you want to keep open)?

If so, could you provide the exact package names and versions used?

Changed in raspbian:
status: New → Incomplete
Revision history for this message
Helio Loureiro (helioloureiro) wrote :

Hi,

Sorry my delay to answer.

Just checked again after apt-get {update, upgrade} and it remains.

Webkit related packages and versions:

ii libkdewebkit5 4:4.8.4-4+deb7u1 armhf KDE WebKit Library
ii libqtwebkit4:armhf 2.2.1-5 armhf Web content engine library for Qt
ii libwebkitgtk-1.0-0 1.8.1-3.4+rpi1 armhf Web content engine library for GTK+
ii libwebkitgtk-1.0-common 1.8.1-3.4+rpi1 all Web content engine library for GTK+ - data files
ii libwebkitgtk-3.0-0 1.8.1-3.4+rpi1 armhf Web content engine library for GTK+
ii libwebkitgtk-3.0-common 2.4.1-1rpi40rpi1 all Web content engine library for GTK+ - data files
ii python-webkit 1.1.8-2 armhf WebKit/Gtk Python bindings

Do you need extra info?

Revision history for this message
Diederik (didi-debian) wrote :

While I can understand your desire that it would use webkit 3.0 libraries, this is not an issue with Raspbian.

The python-webkit package in Debian *Sid* is still linked to libwebkitgtk-1.0-0 [1] and thus the chances that python-webkit in wheezy will be fixed is (close to) zero. You are VERY likely also out of luck for the current stable, jessie. The Debian jessie package will not be updated to use libwebkitgtk-3, period. And thus the chances that Raspbian will deviate from that is very slim as this is not some trivial change.
So in conclusion, you're out of luck wrt python-webkit.

There may be other solutions possible, without using python-webkit, but I would strongly suggest that you would first upgrade to Raspbian jessie as support for Debian/Raspbian wheezy will likely end shortly and they use old libraries anyway. And you really (should) want that for a browser component.

Maybe a solution based on qt is possible, but I don't know enough to tell you how.
If you do, I do suggest to try to use qt5 as qt4 is on its way out, but (afaik) it is still supported on jessie.
Based on the package name, python-pyqt5.qtwebkit sounds like a candidate.
There may very well be others, but you're probably in a better position to judge that.

HTH

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790218

Changed in raspbian:
status: Incomplete → New
Revision history for this message
Diederik (didi-debian) wrote :

I've reset the status to New as I'm not sure what to do with it.
From a Raspbian packaging perspective, it's not a bug as the same situation is present in Debian (even though it's not desirable)
I can also confirm your issue/situation.

I'll leave it up to plugwash to determine how to (further) deal with this bug.

Changed in pywebkitgtk (Debian):
status: Unknown → New
Changed in pywebkitgtk (Debian):
status: New → Fix Released
peter green (plugwash)
Changed in raspbian:
status: New → Won't Fix
Revision history for this message
Helio-loureiro-t (helio-loureiro-t) wrote : Re: [Bug 1403414] Re: Webkit rendering CSS3 and HTML5

Hi,

It isn't fixed. But I'm not sure it will be fixed some day. So it can be
closed as abandoned.

BRs,

Helio

-= sent via Android =-
On Jan 16, 2016 2:20 AM, "Diederik" <email address hidden> wrote:

> Is this still an issue (that you want to keep open)?
>
> If so, could you provide the exact package names and versions used?
>
> ** Changed in: raspbian
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1403414
>
> Title:
> Webkit rendering CSS3 and HTML5
>
> Status in Raspbian:
> Incomplete
>
> Bug description:
> I'm not sure where this bug resides, but I'm trying to write a tiny
> browser to display Jenkins status on raspberrypi.
>
> I tried on pyqt4 and pygtk2.
>
> On my machine, x86_64, it renders properly. On raspberrypi, it
> doesn't render at all or shows a message "it seems like your browser
> is having problems with CSS3".
>
> At firt I considered it was some on bug on Qt4, since it renders
> properly in browsers like epiphany-browser and chromium, so I tried
> GTK one, and got the same result.
>
> So my guess is about webkit itself.
>
> At this moment my script to create such browser based display is here:
> https://github.com/helioloureiro/raspresenterpy
>
> I tried the gtk-browser from here: http://eurion.net/python-
> snippets/snippet/Webkit%20Browser.html
>
> I can't see any errors, so probably I need to find a way to debug
> deeply webkit.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/raspbian/+bug/1403414/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.