[chromium] Unreviewed gardening. storage/indexeddb/cursor-key-order.html has starting crashing on occassion.
https://bugs.webkit.org/show_bug.cgi?id=91275

Not sure how far back the crashes go, but happens with reasonably high frequency.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Pointer Lock handles disconnected DOM elements
https://bugs.webkit.org/show_bug.cgi?id=77029

Reviewed by Adrienne Walker.

Source/WebCore:

Pointer Lock Controller now checks when elements or documents are
removed, and unlocks if the target element is being removed.

Tests: pointer-lock/locked-element-iframe-removed-from-dom.html
       pointer-lock/locked-element-removed-from-dom.html

* dom/Document.cpp:
(WebCore::Document::detach):
* dom/Element.cpp:
(WebCore::Element::removedFrom):
(WebCore::Element::webkitRequestPointerLock):
* page/PointerLockController.cpp:
(WebCore::PointerLockController::requestPointerLock):
(WebCore::PointerLockController::elementRemoved):
(WebCore):
(WebCore::PointerLockController::documentDetached):
(WebCore::PointerLockController::didLosePointerLock):
(WebCore::PointerLockController::enqueueEvent):
* page/PointerLockController.h:
(WebCore):
(PointerLockController):

LayoutTests:

Two new tests that verify pointer lock is released when the target
is removed from the document.

* pointer-lock/locked-element-iframe-removed-from-dom-expected.txt: Added.
* pointer-lock/locked-element-iframe-removed-from-dom.html: Added.
* pointer-lock/locked-element-removed-from-dom-expected.txt: Added.
* pointer-lock/locked-element-removed-from-dom.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
EWSTools should be able to build a commit-queue instance from scratch
https://bugs.webkit.org/show_bug.cgi?id=91264

Reviewed by Eric Seidel.

I've been using this script to build commit-queue instances on Google
Compute Engine and it seems to work.

* EWSTools/GoogleComputeEngine/build-commit-queue.sh: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122627 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Restructure V8Utilities::extractTransferables() with help of toV8Sequence()
https://bugs.webkit.org/show_bug.cgi?id=91208

Patch by Vineet Chaudhary <rgf748@motorola.com> on 2012-07-13
Reviewed by Kentaro Hara.

Source/WebCore:

We can remove the specialised check for MessagePort from V8Utilities::extractTransferables()
using toV8Sequence() as it validates the passed object for sequence type per WebIDL spec.

No new test as just refactoring.
Existing tests under fast/dom/Window/window-* fast/dom/events/*
covers tests.

* bindings/v8/V8Utilities.cpp:
(WebCore::extractTransferables):

LayoutTests:

We can remove the specialised check for MessagePort from V8Utilities::extractTransferables()
using toV8Sequence() as it validates the passed object for sequence type per WebIDL spec.
Removing port specific expected results.

* platform/chromium-win/fast/workers/worker-context-multi-port-expected.txt: Removed.
* platform/chromium-win/fast/workers/worker-multi-port-expected.txt: Removed.
* platform/chromium/fast/dom/Window/window-postmessage-args-expected.txt: Removed.
* platform/chromium/fast/events/constructors/message-event-constructor-expected.txt: Removed.
* platform/chromium/fast/events/message-port-multi-expected.txt: Rebaselined.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Always aggressively preload on iOS
https://bugs.webkit.org/show_bug.cgi?id=91276

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-07-13
Reviewed by Simon Fraser.

* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::preload):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DelayNode doesn't work if delayTime.value == delayTime.maxValue
https://bugs.webkit.org/show_bug.cgi?id=90357

Patch by Raymond Toy <rtoy@google.com> on 2012-07-13
Reviewed by Kenneth Russell.

Source/WebCore:

Increase delay buffer size slightly so that the read and write
pointers don't become equal when the delay and the max delay are
the same.

Tests: webaudio/delaynode-max-default-delay.html
       webaudio/delaynode-max-nondefault-delay.html

* Modules/webaudio/DelayDSPKernel.cpp:
(WebCore): Moved SmoothingTimeConstant to WebCore namespace.
(WebCore::DelayDSPKernel::DelayDSPKernel): Add some additional checks to prevent crashes; use bufferLengthForDelay to compute buffer length.
(WebCore::DelayDSPKernel::bufferLengthForDelay): New function to compute buffer length.
* Modules/webaudio/DelayDSPKernel.h:
(DelayDSPKernel): Declare bufferLengthForDelay.

LayoutTests:

New tests to test the case when the delay node delay equals the
maximum allowed delay. Add one test for the default maximum delay
and a second test with a user-set maximum delay.

* webaudio/delaynode-max-default-delay-expected.txt: Added.
* webaudio/delaynode-max-default-delay.html: Added.
* webaudio/delaynode-max-nondefault-delay-expected.txt: Added.
* webaudio/delaynode-max-nondefault-delay.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
webkitpy: hide yield_to_caller from callers in MessagePool :)
https://bugs.webkit.org/show_bug.cgi?id=91269

Reviewed by Adam Barth.

yield_to_caller() was an optimization/hack to allow us to run
both manager and worker in a single process/loop without
starving the manager while the worker is running tests. The
worker was required to call yield_to_caller() periodically. It
turns out that I can get equivalent responsiveness by yielding
inside the MessagePool every time the worker posts a message, and this
allows me to no longer need the worker to call the routine. Thus
I rename yield_to_caller() to _yield_to_manager() to be a little
clearer about its purpose.

Tested by existing tests.

* Scripts/webkitpy/common/message_pool.py:
(_Worker.run):
(_Worker.post):
(_Worker._yield_to_manager):
* Scripts/webkitpy/layout_tests/controllers/worker.py:
(Worker.handle):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Navigation Timing] Imported W3C tests contain duplicates and are DOS formatted
https://bugs.webkit.org/show_bug.cgi?id=91184

Reviewed by Adam Barth.

The upstream 'html5' tests are just duplicates of the 'html' tests.

Tools:

* Scripts/import-w3c-performance-wg-tests:

LayoutTests:

* http/tests/w3c/webperf/approved/navigation-timing/html/test_document_readiness_exist.html: Converted to *NIX newline format.
* http/tests/w3c/webperf/approved/navigation-timing/html/test_navigation_attributes_exist.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_navigation_redirectCount_none.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_navigation_type_backforward.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_navigation_type_enums.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_navigation_type_reload.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_no_previous_document.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_performance_attributes_exist.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_performance_attributes_exist_in_object.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_readwrite.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_timing_attributes_exist.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_timing_attributes_order.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_timing_client_redirect.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_timing_reload.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_timing_server_redirect.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_timing_xserver_redirect.html:
* http/tests/w3c/webperf/approved/navigation-timing/html/test_unique_performance_objects.html:
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_document_open-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_document_open.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_document_readiness_exist-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_document_readiness_exist.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigate_within_document-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigate_within_document.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigation_attributes_exist-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigation_attributes_exist.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigation_redirectCount_none-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigation_redirectCount_none.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigation_type_backforward-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigation_type_backforward.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigation_type_enums-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigation_type_enums.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigation_type_reload-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_navigation_type_reload.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_no_previous_document-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_no_previous_document.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_performance_attributes_exist-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_performance_attributes_exist.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_performance_attributes_exist_in_object-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_performance_attributes_exist_in_object.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_readwrite-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_readwrite.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_attributes_exist-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_attributes_exist.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_attributes_order-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_attributes_order.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_client_redirect-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_client_redirect.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_reload-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_reload.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_server_redirect-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_server_redirect.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_xserver_redirect-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_timing_xserver_redirect.html: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_unique_performance_objects-expected.txt: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5/test_unique_performance_objects.html: Removed.
* http/tests/w3c/webperf/resources/blank_page_green.htm:
* http/tests/w3c/webperf/resources/blank_page_green_with_onunload.htm:
* http/tests/w3c/webperf/resources/blank_page_meta_redirect.htm:
* http/tests/w3c/webperf/resources/blank_page_unload.htm:
* http/tests/w3c/webperf/resources/blank_page_yellow.htm:
* http/tests/w3c/webperf/resources/blank_page_yellow_with_onunload.htm:
* http/tests/w3c/webperf/resources/pagevistestharness.js:
(pv_test):
(test_feature_exists):
(test_equals):
(add_async_result_assert):
(TabSwitch):
* http/tests/w3c/webperf/resources/webperftestharness.js:
(test_true):
* platform/chromium/TestExpectations:

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