summaryrefslogtreecommitdiff
path: root/Source/WebKit/gtk/webkit/webkitglobals.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-11-07 11:22:47 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-11-07 11:22:47 +0100
commitcfd86b747d32ac22246a1aa908eaa720c63a88c1 (patch)
tree24d68c6f61c464ecba1e05670b80390ea3b0e50c /Source/WebKit/gtk/webkit/webkitglobals.cpp
parent69d7c744c9de19d152dbe2d8e46eb7dfd4511d1a (diff)
downloadqtwebkit-cfd86b747d32ac22246a1aa908eaa720c63a88c1.tar.gz
Imported WebKit commit 20271caf2e2c016d5cef40184cddeefeac4f1876 (http://svn.webkit.org/repository/webkit/trunk@133733)
New snapshot that contains all previous fixes as well as build fix for latest QtMultimedia API changes.
Diffstat (limited to 'Source/WebKit/gtk/webkit/webkitglobals.cpp')
-rw-r--r--Source/WebKit/gtk/webkit/webkitglobals.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/Source/WebKit/gtk/webkit/webkitglobals.cpp b/Source/WebKit/gtk/webkit/webkitglobals.cpp
index d2715a6a1..886292169 100644
--- a/Source/WebKit/gtk/webkit/webkitglobals.cpp
+++ b/Source/WebKit/gtk/webkit/webkitglobals.cpp
@@ -25,7 +25,6 @@
#include "Chrome.h"
#include "ContextMenuItem.h"
#include "FrameNetworkingContextGtk.h"
-#include "GtkUtilities.h"
#include "IconDatabase.h"
#include "Logging.h"
#include "MemoryCache.h"
@@ -45,7 +44,6 @@
#include "webkitfavicondatabase.h"
#include "webkitglobalsprivate.h"
#include "webkiticondatabase.h"
-#include "webkitsoupauthdialog.h"
#include "webkitspellchecker.h"
#include "webkitspellcheckerenchant.h"
#include "webkitwebdatabase.h"
@@ -207,32 +205,6 @@ WebKitWebPluginDatabase* webkit_get_web_plugin_database()
return database;
}
-
-static GtkWidget* currentToplevelCallback(WebKitSoupAuthDialog* feature, SoupMessage* message, gpointer userData)
-{
- gpointer messageData = g_object_get_data(G_OBJECT(message), "resourceHandle");
- if (!messageData)
- return NULL;
-
- ResourceHandle* handle = static_cast<ResourceHandle*>(messageData);
- if (!handle)
- return NULL;
-
- ResourceHandleInternal* d = handle->getInternal();
- if (!d)
- return NULL;
-
- WebKit::FrameNetworkingContextGtk* context = static_cast<WebKit::FrameNetworkingContextGtk*>(d->m_context.get());
- if (!context)
- return NULL;
-
- if (!context->coreFrame())
- return NULL;
-
- GtkWidget* toplevel = gtk_widget_get_toplevel(GTK_WIDGET(context->coreFrame()->page()->chrome()->platformPageClient()));
- return widgetIsOnscreenToplevelWindow(toplevel) ? toplevel : 0;
-}
-
/**
* webkit_get_icon_database:
*
@@ -590,13 +562,6 @@ void webkitInit()
GOwnPtr<gchar> iconDatabasePath(g_build_filename(g_get_user_data_dir(), "webkit", "icondatabase", NULL));
webkit_icon_database_set_path(webkit_get_icon_database(), iconDatabasePath.get());
- SoupSession* session = webkit_get_default_session();
-
- SoupSessionFeature* authDialog = static_cast<SoupSessionFeature*>(g_object_new(WEBKIT_TYPE_SOUP_AUTH_DIALOG, NULL));
- g_signal_connect(authDialog, "current-toplevel", G_CALLBACK(currentToplevelCallback), NULL);
- soup_session_add_feature(session, authDialog);
- g_object_unref(authDialog);
-
WebCore::ResourceHandle::setIgnoreSSLErrors(true);
#if USE(CLUTTER)