Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665168 - <www-client/firefox-{60.2.0,62.0}: broken webGL support since x11-libs/libdrm-2.4.93 update
Summary: <www-client/firefox-{60.2.0,62.0}: broken webGL support since x11-libs/libdrm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-09-03 14:49 UTC by Guillaume Castagnino
Modified: 2018-09-27 21:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Castagnino 2018-09-03 14:49:00 UTC
In 2.4.93, libdrm reworked their sysfs handling. It seems it broke the firefox sandboxing. The main process correctly report webGL capabilities, but sandboxed tabs cannot access the graphic card due to this change, so fallback to software rasterizer (that is so slow that it’s unusable).


* Mozilla has issued a fix but it’s scheduled for firefox 63. The reference bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=1480755
* LibDRM team has issued a fallback to unbreak firefox, but it’s not yet released too. Reference commit with explanations on the situation: https://gitlab.freedesktop.org/mesa/drm/commit/bcb9d976cd91c018aa4eef13563813288984601f


There is a patch in firefox that apply correctly on top of firefox 61: https://hg.mozilla.org/releases/mozilla-beta/rev/264fcd3206a6
Just tested to recompile firefox with this patch, it compiles and run fine, and the webGL issue is fixed.
It would be very nice to apply this patch in portage tree until mozilla issues the fix officially.

Thank’s !
Comment 1 Larry the Git Cow gentoo-dev 2018-09-06 00:44:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b54b414716ab603d6d8e91f7eb2db57099e20cb2

commit b54b414716ab603d6d8e91f7eb2db57099e20cb2
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-09-06 00:44:01 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-09-06 00:44:15 +0000

    www-client/firefox: bump to v62.0
    
    Bug: https://bugs.gentoo.org/665168
    Closes: https://bugs.gentoo.org/661274
    Package-Manager: Portage-2.3.49, Repoman-2.3.10

 www-client/firefox/Manifest            |  93 ++++++
 www-client/firefox/firefox-62.0.ebuild | 525 +++++++++++++++++++++++++++++++++
 2 files changed, 618 insertions(+)
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-06 00:45:32 UTC
www-client/firefox-62.0 contains the patch. Thanks for the report!
Comment 3 tt_1 2018-09-06 11:07:59 UTC
Mozilla doesn't give this an uplift to 60.3.0 as in #1480755, so the new firefox-60.x-esr does not need this?
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-06 13:43:18 UTC
I forgot about ESR, currently looking into it.
Comment 5 Larry the Git Cow gentoo-dev 2018-09-06 13:58:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b392cd2a5d4b3ebcd0b6a0c3c3fafcea24b3c83

commit 5b392cd2a5d4b3ebcd0b6a0c3c3fafcea24b3c83
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-09-06 13:58:01 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-09-06 13:58:34 +0000

    www-client/firefox: bump to v60.2.0
    
    - Added patch to fix WebGL rendering with current Mesa. [Bug 665168]
    
    Bug: https://bugs.gentoo.org/665168
    Package-Manager: Portage-2.3.49, Repoman-2.3.10

 www-client/firefox/Manifest              |  93 ++++++++
 www-client/firefox/firefox-60.2.0.ebuild | 379 +++++++++++++++++++++++++++++++
 2 files changed, 472 insertions(+)
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-06 13:59:58 UTC
Upstream didn't add patch to ESR version so I added it.
Comment 7 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-27 21:46:19 UTC
Closing as fixed because version is in repository and stabilization was started.