After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752019 - Port to WebKit2
Port to WebKit2
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: general
HEAD
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks: 686373
 
 
Reported: 2015-07-06 14:12 UTC by Michael Catanzaro
Modified: 2016-03-22 12:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Port rb-podcast-properties-dialog to webkit2 (6.68 KB, patch)
2016-01-08 12:17 UTC, Iain Lane
committed Details | Review

Description Michael Catanzaro 2015-07-06 14:12:29 UTC
Rhythmbox should be ported from the webkitgtk-3.0 API to the webkit2gtk-4.0 API.
Comment 1 foss.freedom 2015-07-06 14:32:30 UTC
if someone was going to-do this, please can you shout loudly a long time in advance (e.g. via RB mailing list) so that external plugins that depend upon webkitgtk-3.0 have a chance to be updated.

For example, my coverart-browser plugin does have a number of webkit dependencies that probably will need to be revisited/reworked.

thanks
Comment 2 Michael Catanzaro 2015-07-06 15:05:16 UTC
We shouted two years ago that WebKit1 is deprecated, and a year ago when we deleted it upstream; now we're trying to remove it from GNOME, this should not be any surprise.
Comment 3 foss.freedom 2015-07-06 15:26:47 UTC
Michael - I was referring to when (or if?) rhythmbox moves.  I only subscribe to RB's mailing list and dont remember seeing a message about webkit being replaced with webkit2.

I maybe wrong (please say if I am) - but I dont think webkit and webkit2 can co-exist together thus I cant change my plugin until rhythmbox makes its change and would need an appreciable amount of time to uplift.
Comment 4 Michael Catanzaro 2015-07-06 17:40:47 UTC
That's correct, you can't use two different versions of WebKit in the same process, so all the RB plugins must be ported at the same time. In this bug we'll track in-tree plugins.
Comment 5 Jonathan Matthew 2015-07-06 21:34:18 UTC
rhythmbox is going to stop using webkit entirely pretty soon.
Comment 6 foss.freedom 2015-07-06 22:06:14 UTC
Jonathan - ok.  Thanks for the info.

I presume that means the context pane plugin is going to be removed?
Comment 7 Jonathan Matthew 2015-07-07 09:03:20 UTC
That's one possibility.
Comment 8 Michael Catanzaro 2015-12-24 20:18:44 UTC
(In reply to Jonathan Matthew from comment #5)
> rhythmbox is going to stop using webkit entirely pretty soon.

Hey Jonathan, what are your plans for this? It seems like a port to WK2 would not be a worthwhile endeavor, since you plan to stop using WK entirely.

I am working on removing WK1 from the default install in Fedora Workstation; that means building Rhythmbox with --disable-webkit. Does this sound OK? Would you rather make that change upstream? Are you ready to rip out the WK plugins entirely?
Comment 9 Iain Lane 2016-01-08 12:17:35 UTC
Created attachment 318480 [details] [review]
Port rb-podcast-properties-dialog to webkit2

I worked on a port before I found this bug. I'm trying to achieve the same goal
for Ubuntu. Maybe it's useful if you're not ready with whatever webkit
replacement you have in mind..

I could look at the context plugin but it seems generally a bit broken even
with wk1 so I would prefer to remove it. Can give (or commit) a patch if you
want that.
Comment 10 Michael Catanzaro 2016-01-08 14:30:49 UTC
Thanks a bunch Iain! If this patch is working well for Ubuntu then I think we can use this in Fedora as well, until it makes it into a released Rhythmbox.
Comment 11 Michael Catanzaro 2016-01-08 14:39:47 UTC
I'm adding your patch to rawhide. If people file bugs against it then we'll switch to using --disable-webkit.

See bug #686373 for our meta tracking bug.
Comment 12 Iain Lane 2016-01-08 14:59:00 UTC
(In reply to Michael Catanzaro from comment #11)
> I'm adding your patch to rawhide. If people file bugs against it then we'll
> switch to using --disable-webkit.

Cool, thanks!

Just to be clear - make sure you don't ship the context plugin as that is unported and it'll probably make RB crash.
Comment 13 Michael Catanzaro 2016-01-08 15:24:20 UTC
Yes, I added this little patch:

diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index bea62b2..5f60c6a 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -24,10 +24,6 @@ SUBDIRS +=						\
 	soundcloud					\
 	rb
 
-if WITH_WEBKIT
-SUBDIRS += context
-endif
-
 endif # ENABLE_PYTHON
 
 if WITH_LIRC
--

By the way, we're tentatively throwing around plans to remove WebKit1 mid-year, as a response to [1]. I'm not sure if it will happen, since that will require removing many apps, but looks like Rhythmbox will be safe regardless. :)

[1] http://webkitgtk.org/security/WSA-2015-0002.html
Comment 14 Michael Catanzaro 2016-02-25 19:49:29 UTC
This patch is being applied downstream in both Ubuntu 16.04 and Fedora 24, any interest in accepting it?
Comment 15 Matthias Clasen 2016-03-01 13:46:52 UTC
it would be great to get this fixed, indeed
Comment 16 Jonathan Matthew 2016-03-22 12:01:21 UTC
Review of attachment 318480 [details] [review]:

I still haven't finished my replacement for the podcast properties dialog, so I'm committing this.
Comment 17 Jonathan Matthew 2016-03-22 12:06:50 UTC
I've also disabled the context pane plugin.