Commit 9b544aa3 authored by Alberto Garcia's avatar Alberto Garcia
Browse files

New upstream version 2.30.1

parent 8e3f6f3a
......@@ -14,7 +14,7 @@
<div class="titlepage">
<div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">JavaScriptCore GLib Reference Manual</p></th></tr></table></div>
<div><p class="releaseinfo">for JavaScriptCore 2.30.0</p></div>
<div><p class="releaseinfo">for JavaScriptCore 2.30.1</p></div>
</div>
<hr>
</div>
......
......@@ -175,7 +175,7 @@ have included when compiling your code.</p>
<hr>
<div class="refsect2">
<a name="JSC-MICRO-VERSION:CAPS"></a><h3>JSC_MICRO_VERSION</h3>
<pre class="programlisting">#define JSC_MICRO_VERSION (0)
<pre class="programlisting">#define JSC_MICRO_VERSION (1)
</pre>
</div>
</div>
......
......@@ -14,7 +14,7 @@
<div class="titlepage">
<div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">WebKitGTK Reference Manual</p></th></tr></table></div>
<div><p class="releaseinfo">for WebKitGTK 2.30.0</p></div>
<div><p class="releaseinfo">for WebKitGTK 2.30.1</p></div>
</div>
<hr>
</div>
......
......@@ -213,7 +213,7 @@ against at application run time.</p>
<hr>
<div class="refsect2">
<a name="WEBKIT-MICRO-VERSION:CAPS"></a><h3>WEBKIT_MICRO_VERSION</h3>
<pre class="programlisting">#define WEBKIT_MICRO_VERSION (0)
<pre class="programlisting">#define WEBKIT_MICRO_VERSION (1)
</pre>
<p>Like <a class="link" href="webkit2gtk-4.0-WebKitVersion.html#webkit-get-micro-version" title="webkit_get_micro_version ()"><code class="function">webkit_get_micro_version()</code></a>, but from the headers used at
application compile time, rather than from the library linked
......
......@@ -14,7 +14,7 @@
<div class="titlepage">
<div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">WebKitDOMGTK+ Reference Manual</p></th></tr></table></div>
<div><p class="releaseinfo">for WebKitDOMGTK+ 2.30.0</p></div>
<div><p class="releaseinfo">for WebKitDOMGTK+ 2.30.1</p></div>
</div>
<hr>
</div>
......
================
WebKitGTK 2.30.1
================
What's new in WebKitGTK 2.30.1?
- Bring back the environment variable to force single process mode when PSON is disabled.
- Fix downloads started by an ephemeral web context.
- Translation updates: Brazilian Portuguese.
================
WebKitGTK 2.30.0
================
......
This diff is collapsed.
......@@ -395,6 +395,12 @@ static void webkitWebContextConstructed(GObject* object)
configuration.setInjectedBundlePath(FileSystem::stringFromFileSystemRepresentation(bundleFilename.get()));
#if PLATFORM(GTK)
configuration.setProcessSwapsOnNavigation(priv->psonEnabled);
if (!priv->psonEnabled) {
const char* useSingleWebProcess = getenv("WEBKIT_USE_SINGLE_WEB_PROCESS");
if (useSingleWebProcess && strcmp(useSingleWebProcess, "0"))
configuration.setUsesSingleWebProcess(true);
}
#if !USE(GTK4)
configuration.setUseSystemAppearanceForScrollbars(priv->useSystemAppearanceForScrollbars);
#endif
......
......@@ -1686,7 +1686,7 @@ void WebProcessPool::setDefaultRequestTimeoutInterval(double timeoutInterval)
DownloadProxy& WebProcessPool::createDownloadProxy(WebsiteDataStore& dataStore, const ResourceRequest& request, WebPageProxy* originatingPage, const FrameInfoData& frameInfo)
{
return ensureNetworkProcess().createDownloadProxy(dataStore, request, frameInfo, originatingPage);
return ensureNetworkProcess(&dataStore).createDownloadProxy(dataStore, request, frameInfo, originatingPage);
}
void WebProcessPool::synthesizeAppIsBackground(bool background)
......
================
WebKitGTK 2.30.1
================
What's new in WebKitGTK 2.30.1?
- Bring back the environment variable to force single process mode when PSON is disabled.
- Fix downloads started by an ephemeral web context.
- Translation updates: Brazilian Portuguese.
================
WebKitGTK 2.30.0
================
......
......@@ -4,7 +4,7 @@ include(VersioningUtils)
WEBKIT_OPTION_BEGIN()
WEBKIT_OPTION_DEFINE(USE_GTK4 "Whether to enable usage of GTK4 instead of GTK3." PUBLIC OFF)
SET_PROJECT_VERSION(2 30 0)
SET_PROJECT_VERSION(2 30 1)
if (USE_GTK4)
set(WEBKITGTK_API_VERSION 5.0)
......@@ -13,10 +13,10 @@ if (USE_GTK4)
else ()
set(WEBKITGTK_API_VERSION 4.0)
set(GTK_MINIMUM_VERSION 3.22.0)
CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(WEBKIT 86 4 49)
CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(WEBKIT 86 5 49)
endif ()
CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(JAVASCRIPTCORE 35 8 17)
CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(JAVASCRIPTCORE 35 9 17)
# These are shared variables, but we special case their definition so that we can use the
# CMAKE_INSTALL_* variables that are populated by the GNUInstallDirs macro.
......
......@@ -768,6 +768,32 @@ static void testDownloadUserAgent(DownloadTest* test, gconstpointer)
test->checkDestinationAndDeleteFile(download.get(), expectedFilename.get());
}
static void testDownloadEphemeralContext(Test* test, gconstpointer)
{
GRefPtr<WebKitWebsiteDataManager> manager = adoptGRef(webkit_website_data_manager_new_ephemeral());
test->assertObjectIsDeletedWhenTestFinishes(G_OBJECT(manager.get()));
GRefPtr<WebKitWebContext> context = adoptGRef(webkit_web_context_new_with_website_data_manager(manager.get()));
test->assertObjectIsDeletedWhenTestFinishes(G_OBJECT(context.get()));
g_assert_true(webkit_web_context_is_ephemeral(context.get()));
GRefPtr<GMainLoop> mainLoop = adoptGRef(g_main_loop_new(nullptr, TRUE));
GRefPtr<WebKitDownload> download = adoptGRef(webkit_web_context_download_uri(context.get(), kServer->getURIForPath("/test.pdf").data()));
test->assertObjectIsDeletedWhenTestFinishes(G_OBJECT(download.get()));
g_signal_connect(download.get(), "decide-destination", G_CALLBACK(+[](WebKitDownload* download, const gchar* suggestedFilename, gpointer) {
GUniquePtr<char> destination(g_build_filename(Test::dataDirectory(), suggestedFilename, nullptr));
GUniquePtr<char> destinationURI(g_filename_to_uri(destination.get(), nullptr, nullptr));
webkit_download_set_destination(download, destinationURI.get());
}), nullptr);
g_signal_connect(download.get(), "finished", G_CALLBACK(+[](WebKitDownload*, GMainLoop* loop) {
g_main_loop_quit(loop);
}), mainLoop.get());
g_main_loop_run(mainLoop.get());
GRefPtr<GFile> destFile = adoptGRef(g_file_new_for_uri(webkit_download_get_destination(download.get())));
g_file_delete(destFile.get(), nullptr, nullptr);
}
#if PLATFORM(GTK)
static void testContextMenuDownloadActions(WebViewDownloadTest* test, gconstpointer)
{
......@@ -853,6 +879,7 @@ void beforeAll()
PolicyResponseDownloadTest::add("Downloads", "policy-decision-download-cancel", testPolicyResponseDownloadCancel);
DownloadTest::add("Downloads", "mime-type", testDownloadMIMEType);
DownloadTest::add("Downloads", "user-agent", testDownloadUserAgent);
Test::add("Downloads", "ephemeral-context", testDownloadEphemeralContext);
// FIXME: Implement keyStroke in WPE.
#if PLATFORM(GTK)
#if !USE(GTK4)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment