Regression(r119759): Heap-use-after-free in webkit_glue::WebURLLoaderImpl::Context::OnReceivedResponse
https://bugs.webkit.org/show_bug.cgi?id=103563

A subresource could receive a body on a 404 if its call to CachedResource::error() resulted in a nested message loop.
That caused a crash when data was received, as the Subresource was in the Finished state already. Now when receiving
data we ignore these bodies, avoiding the crash.

Reviewed by Nate Chapin.

No new tests in WebKit, since it required a nested message loop which isn't present in chromium DumpRender tree.
There's a Chrome side browser test, see https://codereview.chromium.org/11778083/

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


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Migrate the remaining bots in EC2 to Google Compute Engine
https://bugs.webkit.org/show_bug.cgi?id=106005

Patch by Alan Cutter <alancutter@chromium.org> on 2013-01-12
Reviewed by Eric Seidel.

Updated bot scripts for launching feeder-queue, style-queue and sheriffbot on GCE.

* EWSTools/GoogleComputeEngine/build-feeder-style-sheriffbot.sh: Copied from Tools/EWSTools/build-repo.sh.
* EWSTools/boot.sh:
* EWSTools/build-repo.sh:
* EWSTools/start-queue.sh:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use __sync_add_and_fetch instead of __gnu_cxx::__exchange_and_add
https://bugs.webkit.org/show_bug.cgi?id=106729

After r139514 we need atomicIncrement(int64_t volatile*) for all platform. Now the
GCC implementation of atomicIncrement() is based on __gnu_cxx::__exchange_and_add,
which doesn't support int64_t type, but __sync_add_and_fetch does.

Reviewed by Benjamin Poulain.

* wtf/Atomics.h:
(WTF::atomicIncrement):
(WTF::atomicDecrement):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening. Marking fast/images/zoomed-offset-size.html as slow on Debug Chromium bots.

* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed.  Roll chromium DEPS to 176595.
https://bugs.webkit.org/show_bug.cgi?id=106730


* DEPS:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IndexedDB: Provide LevelDB with IDBEnv instead of Env::Default
https://bugs.webkit.org/show_bug.cgi?id=106135

Reviewed by Tony Chang.

IDBEnv only changes the name of the histogram where errors are logged.

* platform/leveldb/LevelDBDatabase.cpp:
(WebCore::LevelDBDatabase::destroy):
(WebCore::LevelDBDatabase::open):
(WebCore::LevelDBDatabase::openInMemory):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make ninja the default build system on Linux for build-webkit --chromium
https://bugs.webkit.org/show_bug.cgi?id=104434

Reviewed by Eric Seidel.

* Scripts/update-webkit:


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

* API/JSBlockAdaptor.mm:
* API/JSContext.mm:
* API/JSValue.mm:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use ninja by default on Linux for build-webkit --chromium, bot edition
https://bugs.webkit.org/show_bug.cgi?id=104434

Reviewed by Eric Seidel.

r139557 changed update-webkit to pick ninja by default on linux, but
the bots run update-webkit-chromium directly so they didn't see this.
Move the default for ninja into update-webkit-chromium so that it's
picked up by the bots, and let update-webkit forward non-default
options to there.

This way, the default is in one place only and both developers (who
usually use update-webkit which then shells out to
updat-webkit-chromium) and bots (which use update-webkit-chromium
directly) see the same behavior.

* Scripts/update-webkit:
* Scripts/update-webkit-chromium:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
nrwt/chromium: Don't prefer chromium over webkit build directories
https://bugs.webkit.org/show_bug.cgi?id=105597

Reviewed by Dirk Pranke.

Rely on the new timestamp logic instead. Requested by dpranke in
https://bugs.webkit.org/show_bug.cgi?id=105498

* Scripts/webkitpy/layout_tests/port/chromium.py:
(ChromiumPort._static_build_path):
* Scripts/webkitpy/layout_tests/port/chromium_linux_unittest.py:
(ChromiumLinuxPortTest.test_build_path):
* Scripts/webkitpy/layout_tests/port/chromium_mac_unittest.py:
(ChromiumMacPortTest.test_build_path):
* Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py:
(ChromiumWinTest.test_build_path):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening, skip new failing tests to paint the bots green.

* platform/qt/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Styling disappears from the cue that's being styled by ::cue pseudo element
https://bugs.webkit.org/show_bug.cgi?id=106723

Patch by Dima Gorbik <dgorbik@apple.com> on 2013-01-13
Reviewed by Antti Koivisto.

Source/WebCore:

Fixes a regression caused by r138966. Setting a pseudoId in TextTrackCue::updateDisplayTree for m_allDocumentNodes
was triggering recalculating styles the next run loop. Now when this was removed we append the WebVTT tree after its children have
been marked by markFutureAndPastNodes so that correct styles are set within this append call.

Test: media/track/track-css-cue-lifetime.html

* html/track/TextTrackCue.cpp:
(WebCore::TextTrackCue::markFutureAndPastNodes): changing the type of the first argument because DocumentFragment is not a subclass
of Element.
(WebCore::TextTrackCue::updateDisplayTree): appending the WebVTT rendering tree after its children have been marked properly.
* html/track/TextTrackCue.h:
(TextTrackCue):

LayoutTests:

* media/track/captions-webvtt/styling-lifetime.vtt: Added.
* media/track/track-css-cue-lifetime-expected.txt: Added.
* media/track/track-css-cue-lifetime.html: Added.

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

Mark media/video-controls-captions.html as failing on EFL port
due to additional checks added in r139547.

* platform/efl/TestExpectations:

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

Mark inspector/debugger/debugger-script-preprocessor.html as
flakey on EFL port since it gives a different output for
every run. This test was added in r139405.

* platform/efl/TestExpectations:

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

Add platform-specific baseline for fast/dom/HTMLTemplateElement/inertContents.html.
Our port and WKTR do not display the failing URL if it is null.

* platform/efl/fast/dom/HTMLTemplateElement/inertContents-expected.txt: Added.

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

Mark accessibility/heading-level.html as failing on EFL port.
This test was added in r139534.

* platform/efl-wk2/TestExpectations:

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

Mark 2 tests as failing on EFL port due to a regression in
r139537. Those tests started failing on GTK and Qt as well.

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Rebaseline svg/W3C-SVG-1.1/animate-elem-80-t.svg on win

Unreviewed w/end gardening.

* platform/chromium-win/svg/W3C-SVG-1.1/animate-elem-80-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/animate-elem-80-t-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Rebaseline svg/W3C-SVG-1.1/animate-elem-80-t.svg on linux

Unreviewed w/end gardening.

* platform/chromium-linux/svg/W3C-SVG-1.1/animate-elem-80-t-expected.png:
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix CONFIG missing link_pkgconfig on Windows
https://bugs.webkit.org/show_bug.cgi?id=106647

Some libraries (e.g. libxslt, libxml2 and sqlite3) fail to link
properly on Windows because they are added to PKGCONFIG but
CONFIG does not contain link_pkgconfig.

This is because link_pkgconfig is added in unix/default_pre.prf
which is only used for UNIX platforms. To fix this, move it to
the general default_pre.prf.

Patch by Jonathan Liu <net147@gmail.com> on 2013-01-13
Reviewed by Simon Hausmann.

* qmake/mkspecs/features/default_pre.prf:
* qmake/mkspecs/features/unix/default_pre.prf:

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