|
|
1ac51eb |
From 461c7007be7c1693f9a7b96580f94526f213d78d Mon Sep 17 00:00:00 2001
|
|
|
1ac51eb |
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
1ac51eb |
Date: Tue, 25 Jul 2017 08:47:15 +0200
|
|
|
1ac51eb |
Subject: [PATCH] Port to webkitgtk4
|
|
|
1ac51eb |
MIME-Version: 1.0
|
|
|
1ac51eb |
Content-Type: text/plain; charset=UTF-8
|
|
|
1ac51eb |
Content-Transfer-Encoding: 8bit
|
|
|
1ac51eb |
|
|
|
1ac51eb |
webkitgtk3 (WebKit1 with Gtk3) is not supported any more and contains
|
|
|
1ac51eb |
many security bugs. This patch moves to webkitgtk4 (WebKit2 with
|
|
|
1ac51eb |
Gtk3). It still uses Gtk3::WebKit name space.
|
|
|
1ac51eb |
|
|
|
1ac51eb |
get_default_session() does not exist.
|
|
|
1ac51eb |
|
|
|
1ac51eb |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
1ac51eb |
---
|
|
|
1ac51eb |
lib/Gtk3/WebKit.pm | 4 ++--
|
|
|
1ac51eb |
t/webkit.t | 3 ---
|
|
|
1ac51eb |
2 files changed, 2 insertions(+), 5 deletions(-)
|
|
|
1ac51eb |
|
|
|
1ac51eb |
diff --git a/lib/Gtk3/WebKit.pm b/lib/Gtk3/WebKit.pm
|
|
|
1ac51eb |
index fa07935..7c5e12f 100644
|
|
|
1ac51eb |
--- a/lib/Gtk3/WebKit.pm
|
|
|
1ac51eb |
+++ b/lib/Gtk3/WebKit.pm
|
|
|
1ac51eb |
@@ -382,8 +382,8 @@ $EXPORT_TAGS{all} = \@EXPORT_OK;
|
|
|
1ac51eb |
|
|
|
1ac51eb |
sub import {
|
|
|
1ac51eb |
my %setup = (
|
|
|
1ac51eb |
- basename => 'WebKit',
|
|
|
1ac51eb |
- version => '3.0',
|
|
|
1ac51eb |
+ basename => 'WebKit2',
|
|
|
1ac51eb |
+ version => '4.0',
|
|
|
1ac51eb |
package => __PACKAGE__,
|
|
|
1ac51eb |
);
|
|
|
1ac51eb |
|
|
|
1ac51eb |
diff --git a/t/webkit.t b/t/webkit.t
|
|
|
1ac51eb |
index 7fe76e9..4729c81 100644
|
|
|
1ac51eb |
--- a/t/webkit.t
|
|
|
1ac51eb |
+++ b/t/webkit.t
|
|
|
1ac51eb |
@@ -17,9 +17,6 @@ BEGIN {
|
|
|
1ac51eb |
|
|
|
1ac51eb |
|
|
|
1ac51eb |
sub main {
|
|
|
1ac51eb |
- # Grab the session so that headless unit test don't crash, see RT 93421
|
|
|
1ac51eb |
- my $session = Gtk3::WebKit::get_default_session();
|
|
|
1ac51eb |
-
|
|
|
1ac51eb |
my $view = Gtk3::WebKit::WebView->new();
|
|
|
1ac51eb |
isa_ok($view, 'Gtk3::WebKit::WebView');
|
|
|
1ac51eb |
return 0;
|
|
|
1ac51eb |
--
|
|
|
1ac51eb |
2.9.4
|
|
|
1ac51eb |
|