[Soup] Send original encoded data size to didReceiveBuffer
https://bugs.webkit.org/show_bug.cgi?id=125410

Reviewed by Martin Robinson.

No tests, the only way to test this seems to be through the inspector UI.

* platform/network/ResourceHandle.h:
* platform/network/ResourceHandleInternal.h:
(WebCore::ResourceHandleInternal::ResourceHandleInternal): data member to track stream
position.
* platform/network/soup/ResourceHandleSoup.cpp:
(WebCore::ResourceHandle::currentStreamPosition): obtains the current stream position by querying
the first seekable input stream we find.
(WebCore::nextMultipartResponsePartCallback): store the position before we start reading a new part.
(WebCore::sendRequestCallback): store the position before we start reading the response body.
(WebCore::readCallback): pass the position delta to didReceiveData.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Merge mark_for_landing and mark_for_commit_queue into one argument
https://bugs.webkit.org/show_bug.cgi?id=125448

Patch by Dániel Bátyai <Batyai.Daniel@stud.u-szeged.hu> on 2013-12-10
Reviewed by Ryosuke Niwa.

* Scripts/webkitpy/common/net/bugzilla/bugzilla.py:
(CommitQueueFlag):
(Bugzilla._commit_queue_flag):
(Bugzilla._fill_attachment_form):
(Bugzilla.add_patch_to_bug):
(Bugzilla.create_bug):
* Scripts/webkitpy/common/net/bugzilla/bugzilla_unittest.py:
(test_commit_queue_flag.assert_commit_queue_flag):
(test_commit_queue_flag):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] REGRESSION: www.yahoo.com redirects to the mobile version after UA change
https://bugs.webkit.org/show_bug.cgi?id=125444

Reviewed by Martin Robinson.

* platform/gtk/UserAgentGtk.cpp:
(WebCore::platformVersionForUAString): more correctly pretend we're Mac OS X.
(WebCore::standardUserAgent): ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160354 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2][SOUP] initialise the Network Process with ignoreTLSErrors
https://bugs.webkit.org/show_bug.cgi?id=125490

ResourceHandleSoup in the Network Process and is not initialised with
a policy on ignoring TLS errors.  This simply requires that the
appropriate message is created for the Network Process and the
parameter created for initialisation.

Patch by Brian Holt <brian.holt@samsung.com> on 2013-12-10
Reviewed by Gustavo Noronha Silva.

* NetworkProcess/NetworkProcess.h:
* NetworkProcess/NetworkProcess.messages.in:
* NetworkProcess/soup/NetworkProcessSoup.cpp:
(WebKit::NetworkProcess::platformInitializeNetworkProcess):
(WebKit::NetworkProcess::setIgnoreTLSErrors):
* Shared/Network/NetworkProcessCreationParameters.cpp:
(WebKit::NetworkProcessCreationParameters::encode):
(WebKit::NetworkProcessCreationParameters::decode):
* Shared/Network/NetworkProcessCreationParameters.h:
* UIProcess/gtk/WebContextGtk.cpp:
(WebKit::WebContext::platformInitializeWebProcess):
* UIProcess/soup/WebContextSoup.cpp:
(WebKit::WebContext::platformInitializeNetworkProcess):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[nix][curl] Buildfix after r160310
https://bugs.webkit.org/show_bug.cgi?id=125489

Patch by Robert Sipka <sipka@inf.u-szeged.hu> on 2013-12-10
Reviewed by Gustavo Noronha Silva.

Curl doesn't include soup files.

* PlatformNix.cmake:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL gardening

Add failure expectations for tests that started to fail after r154906.

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] [GTK] Enable the network process in the WebContext
https://bugs.webkit.org/show_bug.cgi?id=125494

Reviewed by Carlos Garcia Campos.

This should be initialized using the setUsesNetworkProcess() API.

* UIProcess/API/gtk/WebKitWebContext.cpp:
(createDefaultWebContext):
* UIProcess/gtk/WebContextGtk.cpp:
(WebKit::WebContext::platformInitializeWebProcess):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
--cloop option does not work in Tools/Scripts/build-jsc.
https://bugs.webkit.org/show_bug.cgi?id=125214

Patch by László Langó <lango@inf.u-szeged.hu> on 2013-12-10
Reviewed by Csaba Osztrogonác.

* Scripts/build-jsc:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[ATK] accessibility/alt-tag-on-image-with-nonimage-role.html is failing after r160311
https://bugs.webkit.org/show_bug.cgi?id=125504

Unreviewed ATK gardening.

Patch by Krzysztof Czech <k.czech@samsung.com> on 2013-12-10

* platform/efl/TestExpectations: Marked as failing.
* platform/gtk/TestExpectations: Marked as failing.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Various fixes for the CMake GTK+ build

Reviewed by Gustavo Noronha.

.:

* Source/cmake/OptionsGTK.cmake: Disable Quota support to maintain consistency with
autotools build.

Source/WebCore:

* PlatformGTK.cmake: Update source list.

Source/WebKit2:

* CMakeLists.txt: Update the source lists.
* PlatformGTK.cmake: Ditto.

Source/WTF:

* wtf/PlatformGTK.cmake: Add Zlib library to the WTF build.

Tools:

* MiniBrowser/gtk/CMakeLists.txt: Update source list and correct the name of BrowserMarshal.h.
* TestWebKitAPI/PlatformGTK.cmake: Add GTK+ libraries to the test program. They're required.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160361 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CMAKE] Remove code that disables C++0x compat warnings for gcc-4.6 and above.
https://bugs.webkit.org/show_bug.cgi?id=125492

Patch by Tamas Gergely <tgergely.u-szeged@partner.samsung.com> on 2013-12-10
Reviewed by Zoltan Herczeg.

Remove the code that disables these warnings for GCC >= 4.6.0

* Source/cmake/WebKitHelpers.cmake:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160362 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Try to fix the EFL build

* CMakeLists.txt: Remove DrawingAreaImpl.cpp from the global list.
* PlatformGTK.cmake: Move it to the GTK+ specific list.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160363 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2][SOUP] WebContext::setIgnoreTLSErrors should send SetIgnoreTLSErrors to the network process when network process is enabled
https://bugs.webkit.org/show_bug.cgi?id=125505

Patch by Kwang Yul Seo <skyul@company100.net> on 2013-12-10
Reviewed by Carlos Garcia Campos.

This is a follow-up patch for r160355.

* UIProcess/gtk/WebContextGtk.cpp:
(WebKit::WebContext::setIgnoreTLSErrors):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160364 268f45cc-cd09-0410-ab3c-d52691b4dbfc
AX: [ATK] Convert the get_text atktest.c unit tests to layout tests
https://bugs.webkit.org/show_bug.cgi?id=125497

Reviewed by Mario Sanchez Prada.

Source/WebKit/gtk:

* tests/testatk.c: Remove the portions of the remaining tests which now exist as
layout tests.
(testWebkitAtkCaretOffsets):
(testWebkitAtkCaretOffsetsAndExtranousWhiteSpaces):
(testWebkitAtkComboBox):
(testWebkitAtkEmbeddedObjects):
(testWebkitAtkTextSelections):
(testWebkitAtkListsOfItems):
(main):

Tools:

* DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
(AccessibilityUIElement::stringForRange): Implemented.
* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
(WTR::AccessibilityUIElement::stringForRange): Implemented.

LayoutTests:

* platform/gtk/accessibility/text-for-range-combo-box-expected.txt: Added.
* platform/gtk/accessibility/text-for-range-combo-box.html: Added.
* platform/gtk/accessibility/text-for-range-embedded-objects-expected.txt: Added.
* platform/gtk/accessibility/text-for-range-embedded-objects.html: Added.
* platform/gtk/accessibility/text-for-range-entry-and-password-expected.txt: Added.
* platform/gtk/accessibility/text-for-range-entry-and-password.html: Added.
* platform/gtk/accessibility/text-for-range-extraneous-whitespace-expected.txt: Added.
* platform/gtk/accessibility/text-for-range-extraneous-whitespace.html: Added.
* platform/gtk/accessibility/text-for-range-formatted-expected.txt: Added.
* platform/gtk/accessibility/text-for-range-formatted.html: Added.
* platform/gtk/accessibility/text-for-range-heading-expected.txt: Added.
* platform/gtk/accessibility/text-for-range-heading.html: Added.
* platform/gtk/accessibility/text-for-range-list-items-expected.txt: Added.
* platform/gtk/accessibility/text-for-range-list-items.html: Added.
* platform/gtk/accessibility/text-for-range-simple-expected.txt: Added.
* platform/gtk/accessibility/text-for-range-simple.html: Added.
* platform/gtk/accessibility/text-for-range-table-cells-expected.txt: Added.
* platform/gtk/accessibility/text-for-range-table-cells.html: Added.
* platform/gtk/accessibility/text-for-range-with-link-expected.txt: Added.
* platform/gtk/accessibility/text-for-range-with-link.html: Added.
* platform/gtk/accessibility/text-for-table-expected.txt: Added.
* platform/gtk/accessibility/text-for-table.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL gardening

Add failure expectations for tests added in r157725.

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] [CMake] Add support for building the DOM bindings
https://bugs.webkit.org/show_bug.cgi?id=116375

Reviewed by Gustavo Noronha Silva.

The CMake build is more complete than the autotools counterpart, so autotools doesn't consider
some supplemental IDL attributes when building the DOM bindings. To prevent API breaks we should
protect these attributes from DOM binding generation.

* Modules/battery/BatteryManager.idl: Protect non-GObject DOM bound methods by C preprocessor checks.
* Modules/battery/NavigatorBattery.idl: Ditto.
* Modules/mediastream/HTMLMediaElementMediaStream.idl: Ditto.
* Modules/networkinfo/NavigatorNetworkInfoConnection.idl: Ditto.
* Modules/networkinfo/NetworkInfoConnection.idl: Ditto.
* PlatformGTK.cmake: Add build steps for building the bindings.
* dom/Document.idl: Protect non-GObject DOM bound methods by C preprocessor checks.
* html/HTMLMediaElement.idl: Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160367 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] [CMake] Add support for building the WebKit injected bundle
https://bugs.webkit.org/show_bug.cgi?id=116373

Reviewed by Gustavo Noronha Silva.

* PlatformGTK.cmake: Add support for building the InjectedBundle and link the WebKit2
shared library against the GObject DOM bindings.
* WebProcess/gtk/WebGtkExtensionManager.h: Properly export symbols used by the InjectedBundle.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL build fix

* CMakeLists.txt: Remove UIProcess/DrawingAreaProxy.cpp.
* PlatformGTK.cmake: Add the file above.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Jettison all StyleResolver data on memory pressure.
<https://webkit.org/b/125498>

The StyleResolver can be rebuilt relatively quickly; we already
have an optimization that discards it some time after last use.

If we find ourseles under serious memory pressure, don't wait for
the timer to kick in, throw everything overboard right away.

~5MB progression post-pressure on Membuster3.

Reviewed by Anders Carlsson.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160370 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Allow us to use network process with a single process model
https://bugs.webkit.org/show_bug.cgi?id=125507

Patch by Kwang Yul Seo <skyul@company100.net> on 2013-12-10
Reviewed by Brady Eidson.

Currently, WebContext::sendToNetworkingProcess and
WebContext::sendToNetworkingProcessRelaunchingIfNecessary assume that
network process is not used when the given process model is
ProcessModelSharedSecondaryProcess. This is not consistent with
WebContext::networkingProcessConnection which returns the networking
process connection for ProcessModelSharedSecondaryProcess.

* UIProcess/WebContext.h:
(WebKit::WebContext::sendToNetworkingProcess):
(WebKit::WebContext::sendToNetworkingProcessRelaunchingIfNecessary):

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