Remove deprecatedSend
https://bugs.webkit.org/show_bug.cgi?id=100127

Reviewed by Andreas Kling.

deprecatedSend is no longer used anywhere, remove it.

* Platform/CoreIPC/Connection.h:
(Connection):
* UIProcess/WebProcessProxy.h:
(WebProcessProxy):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[V8] Simplify GCEpilogueVisitor along the same lines as GCPrologueVisitor
https://bugs.webkit.org/show_bug.cgi?id=100157

Reviewed by Eric Seidel.

This patch removes the traits template parameter from GCEpilogueVisitor
and makes it mirror GCPrologueVisitor again.

* bindings/v8/V8GCController.cpp:
(WebCore):
(ActiveDOMObjectEpilogueVisitor):
(WebCore::ActiveDOMObjectEpilogueVisitor::ActiveDOMObjectEpilogueVisitor):
(WebCore::ActiveDOMObjectEpilogueVisitor::visitDOMWrapper):
(WebCore::V8GCController::majorGCEpilogue):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132285 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][Soup] Implement the default authentication dialog via WebCoreSupport
https://bugs.webkit.org/show_bug.cgi?id=99351

Reviewed by Carlos Garcia Campos.

Source/WebCore:

Instead of connecting to the SoupSession::authenticate signal in the API layer
via a SoupSessionFeature, route the message through the typical WebCore authentication
mechanism. This is a step on the path to having full-blown support for authentication
in the API allowing for custom authentication dialogs and behavior in clients.

No new tests. This should not change behavior.

* GNUmakefile.list.am: Add the new implementation file for the AuthenticationChallenge.
* loader/ResourceLoader.cpp:
(WebCore::ResourceLoader::didReceiveAuthenticationChallenge): Include GTK+ here as well.
* platform/gtk/GtkAuthenticationDialog.cpp: Instead of carrying a raw pointer to a SoupAuth
carry a GRefPtr which will allow the dialog to be used even after the AuthenticationChallenge
is destroyed.
* platform/gtk/GtkAuthenticationDialog.h: ditto.
* platform/network/ResourceHandle.h: Add a didReceiveAuthenticationChallenge method.
* platform/network/ResourceHandleInternal.h:
(ResourceHandleInternal): Remove the getter for the initiating page ID.
* platform/network/soup/AuthenticationChallenge.h: Added an implementation of AuthenticationChallenge
that takes a bit of data from the handle including SoupMessage, SoupAuth, and SoupSession.
* platform/network/soup/AuthenticationChallengeSoup.cpp: Added. Ditto.
* platform/network/soup/ResourceError.h:
(ResourceError): Added a factory for authentication errors.
* platform/network/soup/ResourceErrorSoup.cpp: Ditto.
* platform/network/soup/ResourceHandleSoup.cpp:
(WebCore::setSoupRequestInitiaingPageID): Just get the page directly from the NetworkingContext.
(WebCore::createSoupMessageForHandleAndRequest): Always set the "handle" data on the message.
It's always used now.
(WebCore::ResourceHandle::start): Get the initiating page ID directly from the NetworkingContext.
(WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Added this method which routes
the authentication challenge to the client.
(WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential): Added a stub for this method.
(WebCore::ResourceHandle::loadResourceSynchronously): Don't pass the session to the loader.
(WebCore::authenicateCallback): Added.
(WebCore::ResourceHandle::defaultSession): Connect the authenticate callback.

Source/WebKit/gtk:

Instead of using a custom SoupSessionFeature to show the authentication dialog,
show it using the corresponding WebCore message.

* WebCoreSupport/FrameLoaderClientGtk.cpp:
(WebKit::FrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
Show the dialog when we need to authenticate. Also, so not show the dialog
if we are in DRT mode.
* webkit/webkitglobals.cpp:
(webkitInit): No longer install our SoupFeature.

Source/WebKit2:

Instead of using a custom SoupSessionFeature to show the authentication
dialog, show it using the corresponding WebCore message.

* GNUmakefile.list.am: Removed the SoupSessionFeature files.
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit): Only use the default dispatchDidReceiveAuthenticationChallenge
for non-GTK+ ports.
* WebProcess/WebCoreSupport/gtk/WebFrameLoaderClientGtk.cpp: Added.
(WebKit::WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge): Added
a GTK+-specific implementation that shows the GtkAuthenticationDialog.
* WebProcess/gtk/WebAuthDialog.cpp: Removed.
* WebProcess/gtk/WebAuthDialog.h: Removed.
* WebProcess/gtk/WebProcessMainGtk.cpp:
(WebKit::WebProcessMainGtk): Don't install the custom session feature.

Tools:

We no longer need to turn off the soup authentication dialog soup feature,
because it's not installed.

* DumpRenderTree/gtk/DumpRenderTree.cpp:
(setDefaultsToConsistentStateValuesForTesting): Don't turn off the feature any longer.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Crash in WebCore::SubresourceLoader::willSendRequest.
https://bugs.webkit.org/show_bug.cgi?id=100147

Reviewed by Abhishek Arya.

No new tests. There is a test case that should cover this, but it doesn't
work correctly on many platforms due to its use of testRunner.addURLToRedirect().
See http/tests/loading/cross-origin-XHR-willLoadRequest.html.
Tested manually on http://www.nick.co.uk/shows/spongebob

* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::willSendRequest):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Shrink immutable ElementAttributeData and StylePropertySet by one pointer each.
<http://webkit.org/b/100123>

Reviewed by Anders Carlsson.

Remove one pointer of unintentional padding in the immutable versions of these objects.
583kB progression on Membuster3.

* css/StylePropertySet.cpp:
(WebCore::immutableStylePropertySetSize):
* dom/ElementAttributeData.cpp:
(WebCore::immutableElementAttributeDataSize):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132288 268f45cc-cd09-0410-ab3c-d52691b4dbfc