[chromium] Allow dragging into plugins.
https://bugs.webkit.org/show_bug.cgi?id=98277

Patch by Sadrul Habib Chowdhury <sadrul@chromium.org> on 2012-10-05
Reviewed by Tony Chang.

Source/WebKit/chromium:

Allow plugins to receive drag events. This will make it possible to
perform drag-n-drop into browser plugins (and other plugins if desired).

* public/WebDragStatus.h: Added.
(WebKit):
* public/WebPlugin.h:
(WebKit):
(WebPlugin):
* src/WebPluginContainerImpl.cpp:
(WebKit::WebPluginContainerImpl::handleMouseEvent):
(WebKit::WebPluginContainerImpl::handleDragEvent):
(WebKit):
* src/WebPluginContainerImpl.h:
(WebPluginContainerImpl):

Tools:

Update the TestWebPlugin to receive drag events and print them out.

* DumpRenderTree/chromium/TestWebPlugin.cpp:
(TestWebPlugin::handleDragStatusUpdate):
* DumpRenderTree/chromium/TestWebPlugin.h:
(TestWebPlugin):

LayoutTests:

Add test to make sure that plugins receive the drag events correctly.

* platform/chromium/plugins/drag-events-expected.txt: Added.
* platform/chromium/plugins/drag-events.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130504 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Updates expected test results for the expanded coverage in testfonts
https://bugs.webkit.org/show_bug.cgi?id=98425

Unreviewed gardening after r130502.

* platform/qt/css2.1/t0805-c5519-brdr-r-01-e-expected.png:
* platform/qt/css2.1/t0805-c5519-brdr-r-01-e-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltblck-00-d-ag-expected.png:
* platform/qt/css2.1/t0905-c5525-fltblck-00-d-ag-expected.txt:
* platform/qt/fast/images/icon-decoding-expected.png: Added.
* platform/qt/fast/images/icon-decoding-expected.txt:
* platform/qt/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.png:
* platform/qt/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2][SOUP] Assertion hit in WebKit::DownloadManager::downloadFinished() when download fails
https://bugs.webkit.org/show_bug.cgi?id=97565

Reviewed by Gustavo Noronha Silva.

Make sure to notify the downlaod client that the response has been
received when the newly created download has already been added to
the DownloadManager downloads map.

* WebProcess/Downloads/soup/DownloadSoup.cpp:
(WebKit::DownloadClient::DownloadClient): Initialize
m_handleResponseLaterID.
(WebKit::DownloadClient::~DownloadClient): Remove the source for
the delayed response notification if it hasn't been triggered.
(WebKit::DownloadClient::didReceiveData): If response hasn't been
handled yet, remove the source for the delayed response
notification and handle the resource before start writing the data
received to the output stream.
(WebKit::DownloadClient::handleResponse): Call
didReceiveResponse() with the delayed response.
(WebKit::DownloadClient::handleResponseLaterCallback): Call
handleResponse().
(WebKit::DownloadClient::handleResponseLater): Schedule an idle
callback to handle the response later, to make sure the download
has been added to the downloads map.
(WebKit::Download::startWithHandle): Call handleResponseLater()
with the given response to handle the response when the download
has been added to the downloads map.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r129989 - r130019): [WK2] TestResources test is failing
https://bugs.webkit.org/show_bug.cgi?id=98342

Reviewed by Martin Robinson.

Return 404 error in unit tests using a HTTP server for paths not
handled by the test. This way all tests should return now a 404
for /favicon.ico.

* UIProcess/API/gtk/tests/TestBackForwardList.cpp:
(serverCallback):
* UIProcess/API/gtk/tests/TestCookieManager.cpp:
(serverCallback):
* UIProcess/API/gtk/tests/TestLoaderClient.cpp:
(serverCallback):
* UIProcess/API/gtk/tests/TestResources.cpp:
(serverCallback):
* UIProcess/API/gtk/tests/TestSSL.cpp:
(serverCallback):
* UIProcess/API/gtk/tests/TestWebKitPolicyClient.cpp:
(serverCallback):
* UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
(serverCallback):
* UIProcess/API/gtk/tests/TestWebKitWebContext.cpp:
(serverCallback):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Test /webkit2/WebKitWebResource/response fails
https://bugs.webkit.org/show_bug.cgi?id=98511

Reviewed by Martin Robinson.

Do not consider the favicon as a resource for the web resources
unit tests.

* UIProcess/API/gtk/tests/TestResources.cpp:

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