From 040a65edcf3015c1309a4777458c3648f4fc63b2 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Mon, 23 Mar 2015 11:43:41 -0500 Subject: [PATCH] QtWebKit logs visited URLs to WebpageIcons.db in private browsing mode (#1204795) --- qtwebkit.spec | 8 +++++++- webkit-qtwebkit-23-private_browsing.patch | 25 +++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 webkit-qtwebkit-23-private_browsing.patch diff --git a/qtwebkit.spec b/qtwebkit.spec index a528835..c929dd5 100644 --- a/qtwebkit.spec +++ b/qtwebkit.spec @@ -5,7 +5,7 @@ Name: qtwebkit Summary: Qt WebKit bindings Version: 2.3.4 -Release: 5%{?dist} +Release: 6%{?dist} License: LGPLv2 with exceptions or GPLv3 with exceptions URL: http://trac.webkit.org/wiki/QtWebKit @@ -55,6 +55,8 @@ Patch14: webkit-qtwebkit-23-no_rpath.patch # qtwebkit: undefined symbol: g_type_class_adjust_private_offset # https://bugzilla.redhat.com/show_bug.cgi?id=1202735 Patch100: webkit-qtwebkit-23-gcc5.patch +# backport from qt5-qtwebkit: URLs visited during private browsing show up in WebpageIcons.db +Patch101: webkit-qtwebkit-23-private_browsing.patch BuildRequires: bison BuildRequires: flex @@ -133,6 +135,7 @@ Provides: qt4-webkit-devel%{?_isa} = 2:%{version}-%{release} %patch14 -p1 -b .no_rpath %patch100 -p1 -b .gcc5 +%patch101 -p1 -b .private_browsing install -m755 -D %{SOURCE1} bin/qmake @@ -218,6 +221,9 @@ popd %changelog +* Mon Mar 23 2015 Rex Dieter 2.3.4-6 +- QtWebKit logs visited URLs to WebpageIcons.db in private browsing mode (#1204795) + * Mon Mar 23 2015 Rex Dieter 2.3.4-5 - drop ppc64le patch (that no longer applies or is needed) diff --git a/webkit-qtwebkit-23-private_browsing.patch b/webkit-qtwebkit-23-private_browsing.patch new file mode 100644 index 0000000..d341f74 --- /dev/null +++ b/webkit-qtwebkit-23-private_browsing.patch @@ -0,0 +1,25 @@ +diff -up webkit-qtwebkit-23/Source/WebCore/loader/icon/IconController.cpp.private_browsing webkit-qtwebkit-23/Source/WebCore/loader/icon/IconController.cpp +--- webkit-qtwebkit-23/Source/WebCore/loader/icon/IconController.cpp.private_browsing 2014-09-24 06:42:05.000000000 -0500 ++++ webkit-qtwebkit-23/Source/WebCore/loader/icon/IconController.cpp 2015-03-23 11:20:04.050447318 -0500 +@@ -163,6 +163,10 @@ void IconController::startLoader() + } + + if (iconDatabase().supportsAsynchronousMode()) { ++ // FIXME () - We should support in-memory-only private browsing icons in asynchronous icon database mode. ++ if (m_frame->page()->settings()->privateBrowsingEnabled()) ++ return; ++ + m_frame->loader()->documentLoader()->getIconLoadDecisionForIconURL(urlString); + // Commit the icon url mapping to the database just in case we don't end up loading later. + commitToDatabase(iconURL); +@@ -206,10 +210,6 @@ void IconController::continueLoadWithDec + { + ASSERT(iconLoadDecision != IconLoadUnknown); + +- // FIXME () - We should support in-memory-only private browsing icons in asynchronous icon database mode. +- if (iconDatabase().supportsAsynchronousMode() && m_frame->page()->settings()->privateBrowsingEnabled()) +- return; +- + if (iconLoadDecision == IconLoadNo) { + KURL iconURL(url()); + String urlString(iconURL.string());