Compare commits

...
This repository has been archived on 2026-09-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

32 commits

Author SHA1 Message Date
Tomas Popela
f84a809d8d Update to 2.16.6 2017-07-24 14:50:13 +02:00
Tomas Popela
365351ffe6 Update to 2.16.5 2017-06-27 10:28:02 +02:00
Tomas Popela
4feffc176f Don't apply patch that's not included 2017-06-20 16:33:14 +02:00
Tomas Popela
093b2b2642 Update to 2.16.4
Fix CLoop crashes on big endian arches
2017-06-20 14:48:56 +02:00
Tomas Popela
be9850b0b5 Update to 2.16.3 2017-05-24 15:00:28 +02:00
Michael Catanzaro
9198fcc62b Update to 2.16.2 2017-05-09 08:16:37 -05:00
Tomas Popela
115c9cddf1 Add patch for freezing regression 2017-04-06 10:33:28 +02:00
Tomas Popela
3aa17ec929 Update to 2.16.1 2017-04-04 10:40:36 +02:00
Tomas Popela
377effaa43 Update to 2.16.0 2017-03-20 14:18:52 +01:00
Tomas Popela
0ab5de32df Update to 2.14.5 2017-02-15 09:39:03 +01:00
Tomas Popela
e7dc381824 Update to 2.14.4 2017-02-10 12:42:58 +01:00
Tomas Popela
2f86be49dc Update the sources 2017-01-17 17:58:02 +01:00
Tomas Popela
7859cafbf2 Update to 2.14.3 2017-01-17 16:36:05 +01:00
Tomas Popela
3c847612ce Update to 2.14.2 2016-11-03 10:11:55 +01:00
Tomas Popela
e0e2ceba00 jsc and MiniBrowser are now installed into libexec instead of bin 2016-10-12 12:00:26 +02:00
Tomas Popela
e1a8400f5a Update to 2.14.1 2016-10-12 08:05:09 +02:00
Tomas Popela
4b6b238226 Update to 2.14.0 2016-09-20 10:07:35 +02:00
Tomas Popela
5f43cac7e4 Update to 2.12.5 2016-09-05 12:51:14 +02:00
Michael Catanzaro
497226d6ef Fix changelog 2016-09-01 15:38:46 -05:00
Michael Catanzaro
e2ef2475d3 Add patch for network loader regression 2016-09-01 15:35:31 -05:00
Tomas Popela
f5504fb90b Update to 2.12.4 2016-08-24 11:31:29 +02:00
Tomas Popela
d9b162b769 Update to 2.12.3 2016-05-24 11:22:24 +02:00
Igor Gnatenko
590ecebc0f Merge branch 'master' into f24
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-04-29 08:31:16 +02:00
Tomas Popela
200b3c5a69 Update to 2.12.2 2016-04-28 10:57:54 +02:00
Tomas Popela
a6710ccd2e Fix the build on aarch64 - disable bmalloc as it's crashing when generating the documentation 2016-04-26 15:59:31 +02:00
Tomas Popela
45afd53285 Update to 2.12.1 2016-04-14 12:44:25 +02:00
Michael Catanzaro
c62548296b Merge branch 'master' into f24 2016-04-07 22:45:29 -05:00
Michael Catanzaro
2a4d340000 Merge branch 'master' into f24 2016-04-06 15:41:08 -05:00
Tomas Popela
a77911d9c0 Update to 2.12.0 2016-03-22 11:33:11 +01:00
Tomas Popela
aee338b123 Fix the build with gcc 6 2016-03-18 07:07:38 +01:00
Tomas Popela
3deb5698ac Update to 2.11.92 2016-03-17 10:49:44 +01:00
Tomas Popela
7eb43ce9e8 Update to 2.11.91 2016-03-01 10:30:59 +01:00
8 changed files with 160 additions and 74 deletions

16
.gitignore vendored
View file

@ -35,3 +35,19 @@
/webkitgtk-2.12.0.tar.xz
/webkitgtk-2.12.1.tar.xz
/webkitgtk-2.12.2.tar.xz
/webkitgtk-2.12.3.tar.xz
/webkitgtk-2.12.4.tar.xz
/webkitgtk-2.12.5.tar.xz
/webkitgtk-2.14.0.tar.xz
/webkitgtk-2.14.1.tar.xz
/webkitgtk-2.14.2.tar.xz
/webkitgtk-2.14.3.tar.xz
/webkitgtk-2.14.4.tar.xz
/webkitgtk-2.14.5.tar.xz
/webkitgtk-2.16.0.tar.xz
/webkitgtk-2.16.1.tar.xz
/webkitgtk-2.16.2.tar.xz
/webkitgtk-2.16.3.tar.xz
/webkitgtk-2.16.4.tar.xz
/webkitgtk-2.16.5.tar.xz
/webkitgtk-2.16.6.tar.xz

30
cloop-big-endians.patch Normal file
View file

@ -0,0 +1,30 @@
diff -up webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp.b132333 webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp
--- webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp.b132333 2017-02-07 09:05:07.000000000 +0100
+++ webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp 2017-06-16 10:34:57.859748036 +0200
@@ -2186,7 +2186,12 @@ void CodeBlock::finishCreation(VM& vm, S
instructions[i + 5].u.watchpointSet = op.watchpointSet;
else if (op.structure)
instructions[i + 5].u.structure.set(vm, this, op.structure);
- instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
+
+ if (op.type == ClosureVar || op.type == ClosureVarWithVarInjectionChecks || op.type == GlobalProperty || op.type == GlobalPropertyWithVarInjectionChecks || op.type == ModuleVar)
+ instructions[i + 6].u.operand = op.operand;
+ else
+ instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
+
break;
}
@@ -2222,7 +2227,11 @@ void CodeBlock::finishCreation(VM& vm, S
op.watchpointSet->invalidate(vm, PutToScopeFireDetail(this, ident));
} else if (op.structure)
instructions[i + 5].u.structure.set(vm, this, op.structure);
- instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
+
+ if (op.type == ClosureVar || op.type == ClosureVarWithVarInjectionChecks || op.type == GlobalProperty || op.type == GlobalPropertyWithVarInjectionChecks || op.type == ModuleVar)
+ instructions[i + 6].u.operand = op.operand;
+ else
+ instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
break;
}

View file

@ -0,0 +1,24 @@
diff -up webkitgtk-2.17.3/Source/WebKit2/NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp.orig webkitgtk-2.17.3/Source/WebKit2/NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp
--- webkitgtk-2.17.3/Source/WebKit2/NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp.orig 2017-05-22 11:25:38.492770258 +0200
+++ webkitgtk-2.17.3/Source/WebKit2/NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp 2017-05-22 11:25:57.212665811 +0200
@@ -39,7 +39,7 @@ int main(int argc, char** argv)
// overwrite this priority string if it's already set by the user.
// https://bugzilla.gnome.org/show_bug.cgi?id=738633
// WARNING: This needs to be KEPT IN SYNC with WebProcessMain.cpp.
- setenv("G_TLS_GNUTLS_PRIORITY", "NORMAL:%COMPAT:!VERS-SSL3.0:!ARCFOUR-128", 0);
+ setenv("G_TLS_GNUTLS_PRIORITY", "@SYSTEM:%COMPAT:!VERS-SSL3.0:!ARCFOUR-128", 0);
return NetworkProcessMainUnix(argc, argv);
}
diff -up webkitgtk-2.17.3/Source/WebKit2/WebProcess/EntryPoint/unix/WebProcessMain.cpp.orig webkitgtk-2.17.3/Source/WebKit2/WebProcess/EntryPoint/unix/WebProcessMain.cpp
--- webkitgtk-2.17.3/Source/WebKit2/WebProcess/EntryPoint/unix/WebProcessMain.cpp.orig 2017-05-22 11:26:12.941578052 +0200
+++ webkitgtk-2.17.3/Source/WebKit2/WebProcess/EntryPoint/unix/WebProcessMain.cpp 2017-05-22 11:26:25.051510485 +0200
@@ -39,7 +39,7 @@ int main(int argc, char** argv)
// overwrite this priority string if it's already set by the user.
// https://bugzilla.gnome.org/show_bug.cgi?id=738633
// WARNING: This needs to be KEPT IN SYNC with WebProcessMain.cpp.
- setenv("G_TLS_GNUTLS_PRIORITY", "NORMAL:%COMPAT:!VERS-SSL3.0:!ARCFOUR-128", 0);
+ setenv("G_TLS_GNUTLS_PRIORITY", "@SYSTEM:%COMPAT:!VERS-SSL3.0:!ARCFOUR-128", 0);
return WebProcessMainUnix(argc, argv);
}

View file

@ -1 +1 @@
41e018d651413fdbcd4b6480ab1fbd7b webkitgtk-2.12.2.tar.xz
SHA512 (webkitgtk-2.16.6.tar.xz) = bb488d7a60e4d6f9683ac343852a75854ef73e6b5aa093361ffe2d08e71e2f11c19da4447f9937221e518cda784bdacfcfd151f9395605a1957380fbc5b1533b

13
user-agent-branding.patch Normal file
View file

@ -0,0 +1,13 @@
diff -up webkitgtk-2.14.1/Source/WebCore/platform/gtk/UserAgentGtk.cpp.orig webkitgtk-2.14.1/Source/WebCore/platform/gtk/UserAgentGtk.cpp
--- webkitgtk-2.14.1/Source/WebCore/platform/gtk/UserAgentGtk.cpp.orig 2016-10-12 07:59:25.670057792 +0200
+++ webkitgtk-2.14.1/Source/WebCore/platform/gtk/UserAgentGtk.cpp 2016-10-12 08:01:06.251878684 +0200
@@ -85,6 +85,9 @@ static String buildUserAgentString(const UserAgentQuirks& quirks)
else {
uaString.append(platformForUAString());
uaString.appendLiteral("; ");
+#if defined(USER_AGENT_GTK_DISTRIBUTOR_NAME)
+ uaString.appendLiteral(USER_AGENT_GTK_DISTRIBUTOR_NAME "; ");
+#endif
uaString.append(platformVersionForUAString());
}

View file

@ -1,34 +0,0 @@
diff -up webkitgtk-2.11.5/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp.orig webkitgtk-2.11.5/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
--- webkitgtk-2.11.5/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp.orig 2016-02-09 10:04:54.898217667 +0100
+++ webkitgtk-2.11.5/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp 2016-02-09 10:13:35.080875509 +0100
@@ -1734,7 +1734,7 @@ static HashSet<String, ASCIICaseInsensit
"video/flv",
"video/mj2",
"video/mp2t",
- "video/mp4",
+// "video/mp4",
"video/mpeg",
"video/mpegts",
"video/ogg",
@@ -1759,6 +1759,21 @@ static HashSet<String, ASCIICaseInsensit
};
for (auto& type : mimeTypes)
set.add(type);
+
+ // Hack to make YouTube work, https://bugs.webkit.org/show_bug.cgi?id=135972
+ gint exit_status = 1;
+ GUniqueOutPtr<GError> error;
+ GUniqueOutPtr<char> stdout_to_discard;
+ GUniqueOutPtr<char> stderr_to_discard;
+ gboolean success = g_spawn_command_line_sync(
+ "rpm -qi gstreamer1-libav",
+ &stdout_to_discard.outPtr(),
+ &stderr_to_discard.outPtr(),
+ &exit_status,
+ &error.outPtr());
+ if (success && !error && !exit_status)
+ set.add(String::fromUTF8("video/mp4"));
+
return set;
}();
return cache;

View file

@ -1,27 +0,0 @@
From 050232bc122d6785fea01d39121c2f93e8dd16f1 Mon Sep 17 00:00:00 2001
From: Michael Catanzaro <mcatanzaro@igalia.com>
Date: Thu, 26 Feb 2015 16:06:36 -0600
Subject: [PATCH] Allow branding the user agent
---
Source/WebCore/platform/gtk/UserAgentGtk.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Source/WebCore/platform/gtk/UserAgentGtk.cpp b/Source/WebCore/platform/gtk/UserAgentGtk.cpp
index 91641dc..727fbaf 100644
--- a/Source/WebCore/platform/gtk/UserAgentGtk.cpp
+++ b/Source/WebCore/platform/gtk/UserAgentGtk.cpp
@@ -84,7 +84,9 @@ static const char* cpuDescriptionForUAString()
static const char* platformForUAString()
{
-#if PLATFORM(X11)
+#if defined USER_AGENT_GTK_DISTRIBUTOR_NAME
+ return USER_AGENT_GTK_DISTRIBUTOR_NAME;
+#elif PLATFORM(X11)
return "X11";
#elif OS(WINDOWS)
return "";
--
2.1.0

View file

@ -6,18 +6,21 @@
cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g')
Name: webkitgtk4
Version: 2.12.2
Release: 2%{?dist}
Version: 2.16.6
Release: 1%{?dist}
Summary: GTK+ Web content engine library
License: LGPLv2
URL: http://www.webkitgtk.org/
Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
# https://bugs.webkit.org/show_bug.cgi?id=142074
Patch0: webkitgtk-2.7.90-user-agent-branding.patch
# https://bugs.webkit.org/show_bug.cgi?id=135972
Patch1: webkitgtk-2.11.5-youtube.patch
# https://bugs.webkit.org/show_bug.cgi?id=162611
Patch0: user-agent-branding.patch
# https://fedoraproject.org/wiki/Packaging:CryptoPolicies
# https://bugs.webkit.org/show_bug.cgi?id=158785
Patch1: fedora-crypto-policy.patch
# https://bugs.webkit.org/show_bug.cgi?id=132333
Patch2: cloop-big-endians.patch
BuildRequires: at-spi2-core-devel
BuildRequires: bison
@ -53,9 +56,11 @@ BuildRequires: libwayland-server-devel
BuildRequires: mesa-libGL-devel
BuildRequires: pcre-devel
BuildRequires: perl-Switch
BuildRequires: perl-JSON-PP
BuildRequires: ruby rubypick rubygems
BuildRequires: sqlite-devel
BuildRequires: hyphen-devel
BuildRequires: gnutls-devel
%ifarch ppc
BuildRequires: libatomic
%endif
@ -66,9 +71,11 @@ Requires: geoclue2
Obsoletes: libwebkit2gtk < 2.5.0
Provides: libwebkit2gtk = %{version}-%{release}
# We're supposed to specify a version here, but this is pointless because ANGLE
# doesn't do normal releases. WebKit uses git snapshots.
Provides: bundled(angle)
# We're supposed to specify versions here, but these crap Google libs don't do
# normal releases. Accordingly, they're not suitable to be system libs.
Provides: bundled(angle)
Provides: bundled(brotli)
Provides: bundled(woff2)
# Require the jsc subpackage
Requires: %{name}-jsc%{?_isa} = %{version}-%{release}
@ -89,6 +96,7 @@ This package contains WebKitGTK+ for GTK+ 3.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-jsc%{?_isa} = %{version}-%{release}
Requires: %{name}-jsc-devel%{?_isa} = %{version}-%{release}
%description devel
@ -120,6 +128,7 @@ files for developing applications that use JavaScript engine from %{name}.
%package plugin-process-gtk2
Summary: GTK+ 2 based NPAPI plugins support for %{name}
Obsoletes: %{name} < 2.12.0-3
Requires: %{name}-jsc%{?_isa} = %{version}-%{release}
%description plugin-process-gtk2
Support for the GTK+ 2 based NPAPI plugins (such as Adobe Flash) for %{name}.
@ -169,7 +178,7 @@ pushd %{_target_platform}
%ifarch s390 s390x ppc %{power64} aarch64 %{mips}
-DENABLE_JIT=OFF \
%endif
%ifarch s390 s390x ppc %{power64} %{arm} aarch64 %{mips}
%ifarch s390 s390x ppc %{power64} aarch64 %{mips}
-DUSE_SYSTEM_MALLOC=ON \
%endif
..
@ -216,7 +225,7 @@ make %{?_smp_mflags} -C %{_target_platform}
%exclude %{_libexecdir}/webkit2gtk-4.0/WebKitPluginProcess2
%files devel
%{_bindir}/MiniBrowser
%{_libexecdir}/webkit2gtk-4.0/MiniBrowser
%{_includedir}/webkitgtk-4.0/
%exclude %{_includedir}/webkitgtk-4.0/JavaScriptCore
%{_libdir}/libwebkit2gtk-4.0.so
@ -231,7 +240,7 @@ make %{?_smp_mflags} -C %{_target_platform}
%{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib
%files jsc-devel
%{_bindir}/jsc
%{_libexecdir}/webkit2gtk-4.0/jsc
%dir %{_includedir}/webkitgtk-4.0
%{_includedir}/webkitgtk-4.0/JavaScriptCore/
%{_libdir}/libjavascriptcoregtk-4.0.so
@ -248,6 +257,61 @@ make %{?_smp_mflags} -C %{_target_platform}
%{_datadir}/gtk-doc/html/webkitdomgtk-4.0/
%changelog
* Mon Jul 24 2017 Tomas Popela <tpopela@redhat.com> - 2.16.6-1
- Update to 2.16.6
* Tue Jun 27 2017 Tomas Popela <tpopela@redhat.com> - 2.16.5-1
- Update to 2.16.5
* Tue Jun 20 2017 Tomas Popela <tpopela@redhat.com> - 2.16.4-1
- Update to 2.16.4
- Fix CLoop crashes on big endian arches
* Wed May 24 2017 Tomas Popela <tpopela@redhat.com> - 2.16.3-1
- Update to 2.16.3
* Tue May 09 2017 Michael Catanzaro <mcatanzaro@igalia.com> - 2.16.2-1
- Update to 2.16.2
* Thu Apr 06 2017 Tomas Popela <tpopela@redhat.com> - 2.16.1-2
- Add patch for freezing regression
* Tue Apr 04 2017 Tomas Popela <tpopela@redhat.com> - 2.16.1-1
- Update to 2.16.1
* Mon Mar 20 2017 Tomas Popela <tpopela@redhat.com> - 2.16.0-1
- Update to 2.16.0
* Wed Feb 15 2017 Tomas Popela <tpopela@redhat.com> - 2.14.5-1
- Update to 2.14.5
* Fri Feb 10 2017 Tomas Popela <tpopela@redhat.com> - 2.14.4-1
- Update to 2.14.4
* Tue Jan 17 2017 Tomas Popela <tpopela@redhat.com> - 2.14.3-1
- Update to 2.14.3
* Thu Nov 03 2016 Tomas Popela <tpopela@redhat.com> - 2.14.2-1
- Update to 2.14.2
* Wed Oct 12 2016 Tomas Popela <tpopela@redhat.com> - 2.14.1-1
- Update to 2.14.1
* Tue Sep 20 2016 Tomas Popela <tpopela@redhat.com> - 2.14.0-1
- Update to 2.14.0
* Mon Sep 05 2016 Tomas Popela <tpopela@redhat.com> - 2.12.5-1
- Update to 2.12.5
* Thu Sep 01 2016 Michael Catanzaro <mcatanzaro@igalia.com> - 2.12.4-2
- Add patch for network loader regression
* Wed Aug 24 2016 Tomas Popela <tpopela@redhat.com> - 2.12.4-1
- Update to 2.12.4
* Tue May 24 2016 Tomas Popela <tpopela@redhat.com> - 2.12.3-1
- Update to 2.12.3
* Fri Apr 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 2.12.2-2
- Remove typelib from jsc-devel because it is in jsc