WebKit-https.git
4 years agoMark animations/trigger-container-scroll-boundaries.html as failure on iOS
dbates@webkit.org [Tue, 8 Sep 2015 17:47:46 +0000 (17:47 +0000)]
Mark animations/trigger-container-scroll-boundaries.html as failure on iOS

According to Dean Jackson this feature is not supported on iOS at this time.

* platform/ios-simulator-wk1/TestExpectations: Move existing animation trigger failure expectations from here...
* platform/ios-simulator-wk2/TestExpectations: and here...
* platform/ios-simulator/TestExpectations: to here.

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

4 years agoAdd initial support for doubles in WebAssembly
commit-queue@webkit.org [Tue, 8 Sep 2015 17:39:35 +0000 (17:39 +0000)]
Add initial support for doubles in WebAssembly
https://bugs.webkit.org/show_bug.cgi?id=148913

Patch by Sukolsak Sakshuwong <sukolsak@gmail.com> on 2015-09-08
Reviewed by Filip Pizlo.

Implement the ConstantPoolIndex, Immediate, and GetLocal instructions
for doubles (float64) in WebAssembly.

* tests/stress/wasm-arithmetic-float64.js: Added.
(shouldBe):
* tests/stress/wasm/arithmetic-float64.wasm: Added.
* wasm/WASMConstants.h:
* wasm/WASMFunctionCompiler.h:
(JSC::WASMFunctionCompiler::buildSetLocal):
(JSC::WASMFunctionCompiler::buildReturn):
(JSC::WASMFunctionCompiler::buildImmediateI32):
(JSC::WASMFunctionCompiler::buildImmediateF64):
(JSC::WASMFunctionCompiler::buildGetLocal):
* wasm/WASMFunctionParser.cpp:
(JSC::WASMFunctionParser::parseExpression):
(JSC::WASMFunctionParser::parseExpressionF64):
(JSC::WASMFunctionParser::parseConstantPoolIndexExpressionF64):
(JSC::WASMFunctionParser::parseImmediateExpressionF64):
(JSC::WASMFunctionParser::parseGetLocalExpressionF64):
* wasm/WASMFunctionParser.h:
* wasm/WASMFunctionSyntaxChecker.h:
(JSC::WASMFunctionSyntaxChecker::buildImmediateF64):
* wasm/WASMReader.cpp:
(JSC::WASMReader::readOpExpressionF64):
* wasm/WASMReader.h:

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

4 years agoCallLinkInfo inside StructureStubInfo should not use polymorphic stubs
fpizlo@apple.com [Tue, 8 Sep 2015 17:25:28 +0000 (17:25 +0000)]
CallLinkInfo inside StructureStubInfo should not use polymorphic stubs
https://bugs.webkit.org/show_bug.cgi?id=148915

Reviewed by Mark Lam.

There is a subtle bug where if we reset a get_by_id IC that had a getter stub that in
turn had a polymorphic call stub, then the GC won't know to keep the getter stub alive.
This patch documents the bug in a FIXME and disables polymorphic call optimizations for
getters. It also just so happens that the polymorphic call optimizations usually don't
benefit getters, since it's hard to create polymorphism at the point of call without also
introducing polymorphism in the base object's structure.

The added test doesn't reproduce the problem, because it's hard to get the GC to delete
all of the stubs.

* bytecode/CallLinkInfo.h:
(JSC::CallLinkInfo::CallLinkInfo):
(JSC::CallLinkInfo::setCallLocations):
(JSC::CallLinkInfo::allowStubs):
(JSC::CallLinkInfo::disallowStubs):
(JSC::CallLinkInfo::setUpCallFromFTL):
* jit/Repatch.cpp:
(JSC::generateByIdStub):
(JSC::linkFor):
(JSC::linkPolymorphicCall):
* tests/stress/poly-call-stub-in-getter-stub.js: Added.
(foo):
(makeGetter):

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

4 years agoThe put_by_id IC store barrier contract should benefit transition over replace
fpizlo@apple.com [Tue, 8 Sep 2015 17:00:05 +0000 (17:00 +0000)]
The put_by_id IC store barrier contract should benefit transition over replace
https://bugs.webkit.org/show_bug.cgi?id=148943

Reviewed by Mark Lam.

Previously, we would only emit a barrier if the value being stored was possibly a cell, so
the transition stub code generator would have to emit a barrier for the store of the
structure, just in case the structure was newer than the base object.

This changes the contract so that the put_by_id callsite would always have a barrier on the
base (except if it proved that the base was brand new). That way, the transition doesn't have
to have a barrier unless it allocates.

This is meant to be a perf-neutral change that I need for the IC refactoring in
https://bugs.webkit.org/show_bug.cgi?id=148717.

* dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::fixupNode):
* dfg/DFGStoreBarrierInsertionPhase.cpp:
* jit/Repatch.cpp:
(JSC::emitPutTransitionStub):

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

4 years agoMark fast/dom/rtl-scroll-to-leftmost-and-resize.html as a flaky timeout for
ap@apple.com [Tue, 8 Sep 2015 16:54:58 +0000 (16:54 +0000)]
Mark fast/dom/rtl-scroll-to-leftmost-and-resize.html as a flaky timeout for
https://bugs.webkit.org/show_bug.cgi?id=148951

* platform/mac-wk2/TestExpectations:

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

4 years agoConvert manual test added in http://trac.webkit.org/changeset/70321 to an automated...
dbates@webkit.org [Tue, 8 Sep 2015 16:01:47 +0000 (16:01 +0000)]
Convert manual test added in trac.webkit.org/changeset/70321 to an automated test
https://bugs.webkit.org/show_bug.cgi?id=74729
<rdar://problem/22550195>

Reviewed by Jon Honeycutt.

.:

* ManualTests/compositing/resources/composited-subframe.html: Removed.
* ManualTests/compositing/show-composited-iframe-on-back-button.html: Removed.

LayoutTests:

* compositing/resources/composited-subframe.html: Added.
* compositing/resources/show-composited-iframe-on-back-button.css: Added.
(.container):
(.box):
* compositing/show-composited-iframe-on-back-button-expected.html: Added.
* compositing/show-composited-iframe-on-back-button.html: Added.

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

4 years agoDashboard: Remove use of z-index for ring overlay; use DOM ordering
dbates@webkit.org [Tue, 8 Sep 2015 15:58:33 +0000 (15:58 +0000)]
Dashboard: Remove use of z-index for ring overlay; use DOM ordering
https://bugs.webkit.org/show_bug.cgi?id=148921

Reviewed by Alexey Proskuryakov.

The ring image is positioned above the platform icon in markup and we specify the CSS
property z-index for the ring image so that it is painted on top of the platform icon
instead of below it (by DOM ordering). Instead we can take advantage of the transparency
of the ring image, switch the order of these DOM elements and remove the use of the CSS
property z-index to achieve a similar effect.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js:
(documentReady): Create the platform icon image element before the ring image such that
the ring image is painted on top of the platform icon.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
(table.queue-grid td.logo img.ring): Removed property z-index.

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

4 years agoDashboard: Remove duplicate gear icon data URLs
dbates@webkit.org [Tue, 8 Sep 2015 15:57:58 +0000 (15:57 +0000)]
Dashboard: Remove duplicate gear icon data URLs
https://bugs.webkit.org/show_bug.cgi?id=148920

Reviewed by Alexey Proskuryakov.

Currently we duplicate the SVG data URL for the gear icon up to its fill color in the CSS property
background-image associated with each of the three gear icon states: collapsed (.settings), hover
(.settings:hover), and expanded (.settings-visible .settings). Instead we should use the gear icon
as a mask and make use of the CSS background-color to define the fill color for each of these three
states.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
(.settings): Use gear icon as mask and define CSS background-color for collapsed state.
(.settings:hover): Override CSS background-color for hover state.
(.settings-visible .settings): Override CSS background-color for expanded state.

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

4 years ago[GTK] Unreviewed GTK gardening.
clopez@igalia.com [Tue, 8 Sep 2015 15:43:19 +0000 (15:43 +0000)]
[GTK] Unreviewed GTK gardening.

Update some paths for tests that were renamed.
Remove some tests from the expectations that not longer exist.
Report new failures for the Debug build.

* platform/gtk/TestExpectations:

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

4 years agoUnreviewed, land iOS baselines for a couple of html/dom tests.
cdumez@apple.com [Tue, 8 Sep 2015 15:25:53 +0000 (15:25 +0000)]
Unreviewed, land iOS baselines for a couple of html/dom tests.

* platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/nested-document-write-1-expected.txt: Added.
* platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/nested-document-write-2-expected.txt: Added.

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

4 years agoReduce uses of PassRefPtr in fileapi
gyuyoung.kim@webkit.org [Tue, 8 Sep 2015 10:50:42 +0000 (10:50 +0000)]
Reduce uses of PassRefPtr in fileapi
https://bugs.webkit.org/show_bug.cgi?id=148952

Reviewed by Andreas Kling.

Remove all uses of PassRefPtr in return type. Argument uses of PassRefPtr will be
removed in near future.

* fileapi/FileError.h:
(WebCore::FileError::create):
* fileapi/FileReader.cpp:
(WebCore::FileReader::arrayBufferResult):
* fileapi/FileReader.h:
* fileapi/FileReaderLoader.cpp:
(WebCore::FileReaderLoader::arrayBufferResult):
* fileapi/FileReaderLoader.h:
* fileapi/FileReaderSync.cpp:
(WebCore::FileReaderSync::readAsArrayBuffer):
* fileapi/FileReaderSync.h:
* fileapi/ThreadableBlobRegistry.cpp:
(WebCore::ThreadableBlobRegistry::getCachedOrigin):
* fileapi/ThreadableBlobRegistry.h:

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

4 years agoLayoutTests/imported/w3c:
cdumez@apple.com [Tue, 8 Sep 2015 06:48:54 +0000 (06:48 +0000)]
LayoutTests/imported/w3c:
Unreviewed, fixup a few recently imported W3C HTML tests.

A few support files were missing.

* web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/blank.htm: Added.
* web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/sandbox_allow_script.html: Added.
* web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/dirname-ltr.html:
* web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/resources/dirname-ltr-iframe.html: Added.
* web-platform-tests/html/semantics/selectors/pseudo-classes/focus-expected.txt:
* web-platform-tests/html/semantics/selectors/pseudo-classes/focus.html:
* web-platform-tests/html/semantics/selectors/pseudo-classes/resources/focus-iframe.html: Added.

LayoutTests:
Unreviewed gardening.

Update Window baselines for a couple of W3C HTML tests.

* platform/win/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-expected.txt:
* platform/win/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/update-the-source-set-expected.txt:

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

4 years agoAX: Mavericks: Text cursor does not move along with VoiceOver cursor for text fields
cfleizach@apple.com [Tue, 8 Sep 2015 06:24:21 +0000 (06:24 +0000)]
AX: Mavericks: Text cursor does not move along with VoiceOver cursor for text fields
https://bugs.webkit.org/show_bug.cgi?id=148891

Reviewed by Mario Sanchez Prada.

Source/WebCore:

Undo the asynchronous dispatch of accessibility setting values on pre El Capitan machines
because it causes focus to not sync correctly.

Test: accessibility/mac/focus-moves-cursor.html

* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
(-[WebAccessibilityObjectWrapper _accessibilitySetValue:forAttribute:]):

LayoutTests:

* accessibility/mac/focus-moves-cursor-expected.txt: Added.
* accessibility/mac/focus-moves-cursor.html: Added.

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

4 years agoUnreviewed, update iOS baseline for imported/w3c/web-platform-tests/html/dom/interfac...
cdumez@apple.com [Tue, 8 Sep 2015 06:20:56 +0000 (06:20 +0000)]
Unreviewed, update iOS baseline for imported/w3c/web-platform-tests/html/dom/interfaces.html.

* platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt:

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

4 years agoUnreviewed, drop unfinished W3C DOM tests.
cdumez@apple.com [Tue, 8 Sep 2015 06:18:55 +0000 (06:18 +0000)]
Unreviewed, drop unfinished W3C DOM tests.

Those were not meant to be imported.

* web-platform-tests/dom/traversal/unfinished/001-expected.txt: Removed.
* web-platform-tests/dom/traversal/unfinished/001.xml: Removed.
* web-platform-tests/dom/traversal/unfinished/002-expected.txt: Removed.
* web-platform-tests/dom/traversal/unfinished/002.xml: Removed.
* web-platform-tests/dom/traversal/unfinished/003-expected.txt: Removed.
* web-platform-tests/dom/traversal/unfinished/003.xml: Removed.
* web-platform-tests/dom/traversal/unfinished/004-expected.txt: Removed.
* web-platform-tests/dom/traversal/unfinished/004.xml: Removed.
* web-platform-tests/dom/traversal/unfinished/005-expected.txt: Removed.
* web-platform-tests/dom/traversal/unfinished/005.xml: Removed.
* web-platform-tests/dom/traversal/unfinished/006-expected.txt: Removed.
* web-platform-tests/dom/traversal/unfinished/006.xml: Removed.
* web-platform-tests/dom/traversal/unfinished/007-expected.txt: Removed.
* web-platform-tests/dom/traversal/unfinished/007.xml: Removed.
* web-platform-tests/dom/traversal/unfinished/008-expected.txt: Removed.
* web-platform-tests/dom/traversal/unfinished/008.xml: Removed.
* web-platform-tests/dom/traversal/unfinished/009-expected.txt: Removed.
* web-platform-tests/dom/traversal/unfinished/009.xml: Removed.
* web-platform-tests/dom/traversal/unfinished/010-expected.txt: Removed.
* web-platform-tests/dom/traversal/unfinished/010.xml: Removed.
* web-platform-tests/dom/traversal/unfinished/TODO: Removed.

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

4 years agoUnreviewed, drop several W3C html media that were recently imported as they are flaky.
cdumez@apple.com [Tue, 8 Sep 2015 06:14:37 +0000 (06:14 +0000)]
Unreviewed, drop several W3C html media that were recently imported as they are flaky.

* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-candidate-insert-before-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-candidate-insert-before.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-candidate-moved-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-candidate-moved.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-candidate-remove-addEventListener-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-candidate-remove-no-listener-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-candidate-remove-no-listener.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-audio-constructor-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-audio-constructor-no-src-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-audio-constructor-no-src.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-audio-constructor.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-in-sync-event-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-in-sync-event.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-fragment-into-document-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-fragment-into-document.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-into-document-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-into-document.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-parent-into-document-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-parent-into-document.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-source-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-source-in-div-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-source-in-div.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-source-in-namespace-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-source-in-namespace.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-source-networkState-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-source-networkState.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-source-not-in-document-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-source-not-in-document.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-source.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-load-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-load.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-pause-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-pause-networkState-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-pause-networkState.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-pause.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-play-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-play.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-remove-from-document-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-remove-from-document-networkState-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-remove-from-document-networkState.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-remove-from-document.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-remove-src-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-remove-src.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-set-src-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-set-src-in-namespace-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-set-src-in-namespace.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-set-src-networkState-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-set-src-networkState.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-set-src.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-control-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-control.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-insert-br-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-insert-br.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-insert-source-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-insert-source.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-insert-text-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-insert-text.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-remove-source-after-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-remove-source-after.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-remove-source-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-remove-source.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-remove-text-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-remove-text.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-remove-source-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-remove-source.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-remove-src-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-remove-src.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-source-media-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-source-media.html: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/networkState_during_progress-expected.txt: Removed.
* web-platform-tests/html/semantics/embedded-content/media-elements/networkState_during_progress.html: Removed.

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

4 years agoUnreviewed, skip imported/w3c/web-platform-tests/html/semantics/document-metadata...
cdumez@apple.com [Tue, 8 Sep 2015 05:43:39 +0000 (05:43 +0000)]
Unreviewed, skip imported/w3c/web-platform-tests/html/semantics/document-metadata/the-base-element/base_href_specified.sub.html

This test causes the next one to be flaky. The issue is tracked by
Bug 148950.

* TestExpectations:

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

4 years agoUnreviewed, drop W3C support files from http/
cdumez@apple.com [Tue, 8 Sep 2015 05:31:29 +0000 (05:31 +0000)]
Unreviewed, drop W3C support files from http/

Drop W3C support files from http/tests/resources/ and
http/tests/w3c/resources/. These were recently added and are not longer
needed that that the w3c web-platform-tests were moved to imported/w3c.

* http/tests/resources/WebIDLParser.js: Removed.
* http/tests/resources/idlharness.js: Removed.
* http/tests/resources/testharness.css: Removed.
* http/tests/resources/testharness.js: Removed.
* http/tests/resources/testharnessreport.js: Removed.
* http/tests/w3c/resources/css-red.txt: Removed.
* http/tests/w3c/resources/media.js: Removed.
* http/tests/w3c/resources/media/A4.mp4: Removed.
* http/tests/w3c/resources/media/A4.ogv: Removed.
* http/tests/w3c/resources/media/foo.vtt: Removed.
* http/tests/w3c/resources/media/foo.vtt.headers: Removed.
* http/tests/w3c/resources/media/green-at-15.mp4: Removed.
* http/tests/w3c/resources/media/green-at-15.ogv: Removed.
* http/tests/w3c/resources/media/movie_300.mp4: Removed.
* http/tests/w3c/resources/media/movie_300.ogv: Removed.
* http/tests/w3c/resources/media/movie_5.mp4: Removed.
* http/tests/w3c/resources/media/movie_5.ogv: Removed.
* http/tests/w3c/resources/media/poster.png: Removed.
* http/tests/w3c/resources/media/sound_5.mp3: Removed.
* http/tests/w3c/resources/media/sound_5.oga: Removed.
* http/tests/w3c/resources/media/white.mp4: Removed.
* http/tests/w3c/resources/media/white.webm: Removed.
* http/tests/w3c/resources/stringifiers.js: Removed.
* http/tests/w3c/resources/utils.js: Removed.

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

4 years agoUnreviewed fixup after r189471 and r189472.
cdumez@apple.com [Tue, 8 Sep 2015 05:23:40 +0000 (05:23 +0000)]
Unreviewed fixup after r189471 and r189472.

LayoutTests/imported/w3c:

* web-platform-tests/common/blank.html: Added.
Add missing file used by some tests.

* web-platform-tests/dom/nodes/Node-parentNode-iframe-expected.txt: Removed.
* web-platform-tests/dom/nodes/Node-parentNode.html:
* web-platform-tests/dom/nodes/resources/Node-parentNode-iframe.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-parentNode-iframe.html.
Move html file to resources folder so that WRT does not think it is a test.

LayoutTests:

* platform/win/TestExpectations:
Skip a couple of failing tests on Windows.

* platform/win/imported/w3c/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/nested-document-write-1-expected.txt: Added.
* platform/win/imported/w3c/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/nested-document-write-2-expected.txt: Added.
Land Windows baselines.

* platform/win/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt:
Rebaseline for Windows.

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

4 years agoUnreviewed, move html/semantics W3C tests to imported/w3c/web-platform-tests/html...
cdumez@apple.com [Tue, 8 Sep 2015 05:08:45 +0000 (05:08 +0000)]
Unreviewed, move html/semantics W3C tests to imported/w3c/web-platform-tests/html/semantics
https://bugs.webkit.org/show_bug.cgi?id=148949

LayoutTests/imported/w3c:

* web-platform-tests/html/semantics/*: Added.

LayoutTests:

* TestExpectations:
* http/tests/w3c/html/semantics/*: Removed.

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

4 years agoLayoutTests/imported/w3c:
cdumez@apple.com [Tue, 8 Sep 2015 03:52:01 +0000 (03:52 +0000)]
LayoutTests/imported/w3c:
Unreviewed, fix-up for r189472.

- Add a few missing test expectations.
- Rename ref-tests expected results to use proper format: -expected.html

* web-platform-tests/html/dom/dynamic-markup-insertion/document-write/nested-document-write-1-expected.txt: Added.
* web-platform-tests/html/dom/dynamic-markup-insertion/document-write/nested-document-write-2-expected.txt: Added.
* web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/004-1-expected.txt: Added.
* web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/016-1-expected.txt: Added.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-EN-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-EN-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-EN-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-EN-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-bdi-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-bdi-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-dir-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-dir-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-dir-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-dir-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-dir_auto-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-script-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-script-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-script-L-expected.txt: Removed.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-script-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-script-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-style-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-style-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-style-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-style-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-textarea-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-contained-textarea-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-EN-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-EN-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-EN-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-EN-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-N-EN-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-N-EN-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-N-EN-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-N-EN-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-N-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-N-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-N-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-N-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-EN-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-EN-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-N-EN-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-N-L-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-N-L-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-N-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-N-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-R-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-input-script-R-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-isolate-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-isolate-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-pre-N-EN-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-pre-N-EN-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-pre-N-between-Rs-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-pre-mixed-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-pre-mixed-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-N-EN-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-N-between-Rs-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-mixed-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-N-EN-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-mixed-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/lang-xmllang-01-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/lang-xmllang-01-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/lang-xyzzy-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/lang-xyzzy-ref.html.
* web-platform-tests/html/dom/elements/global-attributes/style-01-expected.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/style-01-ref.html.

LayoutTests:
Unreviewed, Skip again files that were wrongly unskipped in r189472.

* TestExpectations:

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

4 years ago[EFL] Unreviewed gardening. tests of imported/w3c/css/ have been passed since r189358.
gyuyoung.kim@webkit.org [Tue, 8 Sep 2015 02:53:17 +0000 (02:53 +0000)]
[EFL] Unreviewed gardening. tests of imported/w3c/css/ have been passed since r189358.
Those tests seem to be failed on other ports though, those are passing on EFL port.

* platform/efl/TestExpectations:

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

4 years ago[CoordinatedGraphics] Remove ScrollingStateScrollingNodeCoordinatedGraphics.cpp
gyuyoung.kim@webkit.org [Tue, 8 Sep 2015 02:13:13 +0000 (02:13 +0000)]
[CoordinatedGraphics] Remove ScrollingStateScrollingNodeCoordinatedGraphics.cpp
https://bugs.webkit.org/show_bug.cgi?id=148931

Reviewed by Csaba Osztrogon√°c.

ScrollingStateScrollingNodeCoordinatedGraphics.cpp implements nothing. Removed it.

* PlatformEfl.cmake:
* PlatformGTK.cmake:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* page/scrolling/coordinatedgraphics/ScrollingStateScrollingNodeCoordinatedGraphics.cpp: Removed.

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

4 years agoUnreviewed, move html/dom W3C tests to imported/w3c/web-platform-tests/html/dom/
cdumez@apple.com [Tue, 8 Sep 2015 02:07:49 +0000 (02:07 +0000)]
Unreviewed, move html/dom W3C tests to imported/w3c/web-platform-tests/html/dom/
https://bugs.webkit.org/show_bug.cgi?id=148948

LayoutTests/imported/w3c:

* web-platform-tests/html/dom/*: Added.

LayoutTests:

* TestExpectations:
* http/tests/w3c/html/dom/*: Removed.
* platform/efl/TestExpectations:
* platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-expected.txt: Renamed from LayoutTests/platform/ios-simulator/http/tests/w3c/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-expected.txt.
* platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt: Renamed from LayoutTests/platform/ios-simulator/http/tests/w3c/html/dom/interfaces-expected.txt.
* platform/win/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt: Renamed from LayoutTests/platform/win/http/tests/w3c/html/dom/interfaces-expected.txt.

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

4 years agoUnreviewed, move W3C DOM tests to imported/w3c/web-platform-tests/dom
cdumez@apple.com [Tue, 8 Sep 2015 01:09:45 +0000 (01:09 +0000)]
Unreviewed, move W3C DOM tests to imported/w3c/web-platform-tests/dom
https://bugs.webkit.org/show_bug.cgi?id=148947

Move W3C DOM tests with other web-platform-tests under:
imported/w3c/web-platform-tests/dom.

LayoutTests/imported/w3c:

* web-platform-tests/dom/*: Added.

LayoutTests:

* TestExpectations:
* http/tests/w3c/dom/collections/w3c-import.log: Removed.
* http/tests/w3c/dom/events/w3c-import.log: Removed.
* http/tests/w3c/dom/lists/w3c-import.log: Removed.
* http/tests/w3c/dom/nodes/Document-URL.sub-expected.txt: Removed.
* http/tests/w3c/dom/nodes/Document-characterSet-normalization-expected.txt: Removed.
* http/tests/w3c/dom/nodes/DocumentType-literal-xhtml-expected.txt: Removed.
* http/tests/w3c/dom/nodes/Element-childElementCount-dynamic-add-xhtml-expected.txt: Removed.
* http/tests/w3c/dom/nodes/Element-childElementCount-nochild-xhtml-expected.txt: Removed.
* http/tests/w3c/dom/nodes/Element-firstElementChild-xhtml-expected.txt: Removed.
* http/tests/w3c/dom/nodes/Element-nextElementSibling-xhtml-expected.txt: Removed.
* http/tests/w3c/dom/nodes/Element-previousElementSibling-xhtml-expected.txt: Removed.
* http/tests/w3c/dom/nodes/Node-isEqualNode-xhtml-expected.txt: Removed.
* http/tests/w3c/dom/nodes/Node-lookupPrefix-xhtml-expected.txt: Removed.
* http/tests/w3c/dom/nodes/ProcessingInstruction-literal-1-xhtml-expected.txt: Removed.
* http/tests/w3c/dom/nodes/ProcessingInstruction-literal-2-xhtml-expected.txt: Removed.
* http/tests/w3c/dom/nodes/getElementsByClassName-10-expected.txt: Removed.
* http/tests/w3c/dom/nodes/getElementsByClassName-11-expected.txt: Removed.
* http/tests/w3c/dom/nodes/getElementsByClassName-31-expected.txt: Removed.
* http/tests/w3c/dom/nodes/w3c-import.log: Removed.
* http/tests/w3c/dom/ranges/w3c-import.log: Removed.
* http/tests/w3c/dom/traversal/w3c-import.log: Removed.
* http/tests/w3c/dom/w3c-import.log: Removed.
* platform/efl/TestExpectations:
* platform/ios-simulator/TestExpectations:

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

4 years ago[Mac] DebugRelease builds should link against libWebKitSystemInterfaceElCapitan.a...
aestes@apple.com [Mon, 7 Sep 2015 23:05:28 +0000 (23:05 +0000)]
[Mac] DebugRelease builds should link against libWebKitSystemInterfaceElCapitan.a on 10.11
https://bugs.webkit.org/show_bug.cgi?id=148946
<rdar://problem/22603981>

Reviewed by Dan Bernstein.

Source/WebKit/mac:

* Configurations/DebugRelease.xcconfig:

Source/WebKit2:

* Configurations/DebugRelease.xcconfig:

Tools:

* DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
* WebKitTestRunner/Configurations/DebugRelease.xcconfig:

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

4 years agoASSERT_WITH_SECURITY_IMPLICATION in WebCore::DocumentOrderedMap::get(); update form
dbates@webkit.org [Mon, 7 Sep 2015 22:46:43 +0000 (22:46 +0000)]
ASSERT_WITH_SECURITY_IMPLICATION in WebCore::DocumentOrderedMap::get(); update form
association after subtree insertion
https://bugs.webkit.org/show_bug.cgi?id=148919
<rdar://problem/21868036>

Patch by Daniel Bates <dabates@apple.com> on 2015-09-07
Reviewed by Andy Estes.

Source/WebCore:

Currently we update the form association of a form control upon insertion into
the document. Instead we should update the form association of a form control
after its containing subtree is inserted into the document to avoid an assertion
failure when the containing subtree has an element whose id is identical to both
the id of some other element in the document and the name of the form referenced
by the inserted form control.

Tests: fast/forms/update-form-owner-in-moved-subtree-assertion-failure-2.html
       fast/forms/update-form-owner-in-moved-subtree-assertion-failure-3.html
       fast/forms/update-form-owner-in-moved-subtree-assertion-failure-4.html
       fast/forms/update-form-owner-in-moved-subtree-assertion-failure.html

* html/FormAssociatedElement.cpp:
(WebCore::FormAssociatedElement::insertedInto): Moved resetFormOwner() from here
to {HTMLFormControlElement, HTMLObjectElement}::finishedInsertingSubtree().
* html/HTMLFormControlElement.cpp:
(WebCore::HTMLFormControlElement::insertedInto): Return InsertionShouldCallFinishedInsertingSubtree
so that HTMLFormControlElement::finishedInsertingSubtree() is called.
(WebCore::HTMLFormControlElement::finishedInsertingSubtree): Added; turn around and
call FormAssociatedElement::resetFormOwner().
* html/HTMLFormControlElement.h:
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::insertedInto): Return InsertionShouldCallFinishedInsertingSubtree so
that HTMLInputElement::finishedInsertingSubtree() is called and move logic to update radio button
group from here...
(WebCore::HTMLInputElement::finishedInsertingSubtree): to here.
* html/HTMLInputElement.h:
* html/HTMLObjectElement.cpp:
(WebCore::HTMLObjectElement::insertedInto): Return InsertionShouldCallFinishedInsertingSubtree so
that HTMLObjectElement::finishedInsertingSubtree() is called.
(WebCore::HTMLObjectElement::finishedInsertingSubtree): Added; turn around and
call FormAssociatedElement::resetFormOwner().
* html/HTMLObjectElement.h:
* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::insertedInto): Modified to return the result of
HTMLFormControlElementWithState::insertedInto(), which may schedule a callback after subtree
insertion.
* html/HTMLTextFormControlElement.cpp:
(WebCore::HTMLTextFormControlElement::insertedInto): Ditto.

LayoutTests:

Add tests to ensure that updating the form association of a form control in a subtree
does not cause an assertion failure.

* fast/forms/update-form-owner-in-moved-subtree-assertion-failure-2-expected.txt: Added.
* fast/forms/update-form-owner-in-moved-subtree-assertion-failure-2.html: Added.
* fast/forms/update-form-owner-in-moved-subtree-assertion-failure-3-expected.txt: Added.
* fast/forms/update-form-owner-in-moved-subtree-assertion-failure-3.html: Added.
* fast/forms/update-form-owner-in-moved-subtree-assertion-failure-4-expected.txt: Added.
* fast/forms/update-form-owner-in-moved-subtree-assertion-failure-4.html: Added.
* fast/forms/update-form-owner-in-moved-subtree-assertion-failure-expected.txt: Added.
* fast/forms/update-form-owner-in-moved-subtree-assertion-failure.html: Added.

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

4 years agoWindows non-cygwin build fix after r189333.
achristensen@apple.com [Mon, 7 Sep 2015 22:46:32 +0000 (22:46 +0000)]
Windows non-cygwin build fix after r189333.

SVN on Windows (non-cygwin) doesn't like having the * character in file names.
I replaced "*" with "star" in some of Geoff's new tests.

* tests/es6.yaml:
Changed all _*_ to _star_
* tests/es6/generators_yield_*_arrays.js: Removed.
* tests/es6/generators_yield_*_astral_plane_strings.js: Removed.
* tests/es6/generators_yield_*_generator_instances.js: Removed.
* tests/es6/generators_yield_*_generic_iterables.js: Removed.
* tests/es6/generators_yield_*_instances_of_iterables.js: Removed.
* tests/es6/generators_yield_*_iterator_closing.js: Removed.
* tests/es6/generators_yield_*_iterator_closing_via_throw.js: Removed.
* tests/es6/generators_yield_*_on_non-iterables_is_a_runtime_error.js: Removed.
* tests/es6/generators_yield_*_sparse_arrays.js: Removed.
* tests/es6/generators_yield_*_strings.js: Removed.
* tests/es6/generators_yield_star_arrays.js: Copied from tests/es6/generators_yield_*_arrays.js.
* tests/es6/generators_yield_star_astral_plane_strings.js: Copied from tests/es6/generators_yield_*_astral_plane_strings.js.
* tests/es6/generators_yield_star_generator_instances.js: Copied from tests/es6/generators_yield_*_generator_instances.js.
* tests/es6/generators_yield_star_generic_iterables.js: Copied from tests/es6/generators_yield_*_generic_iterables.js.
* tests/es6/generators_yield_star_instances_of_iterables.js: Copied from tests/es6/generators_yield_*_instances_of_iterables.js.
* tests/es6/generators_yield_star_iterator_closing.js: Copied from tests/es6/generators_yield_*_iterator_closing.js.
* tests/es6/generators_yield_star_iterator_closing_via_throw.js: Copied from tests/es6/generators_yield_*_iterator_closing_via_throw.js.
* tests/es6/generators_yield_star_on_non-iterables_is_a_runtime_error.js: Copied from tests/es6/generators_yield_*_on_non-iterables_is_a_runtime_error.js.
* tests/es6/generators_yield_star_sparse_arrays.js: Copied from tests/es6/generators_yield_*_sparse_arrays.js.
* tests/es6/generators_yield_star_strings.js: Copied from tests/es6/generators_yield_*_strings.js.

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

4 years ago[GTK] Unreviewed GTK gardening.
clopez@igalia.com [Mon, 7 Sep 2015 20:12:59 +0000 (20:12 +0000)]
[GTK] Unreviewed GTK gardening.

Report and mark new failures on the GTK TestExpectations file.
Move back all the GTK baselines for the general accessibiliy tests to platform/gtk that r187777 wrongly moved inside accessibility/gtk.

* accessibility/gtk/disabled-controls-not-focusable-expected.txt: Removed. Same baseline than the general one so not need to move it back to platform/gtk/accessibility.
* platform/gtk/TestExpectations:
* platform/gtk/accessibility/aria-checkbox-sends-notification-expected.txt: Renamed from LayoutTests/accessibility/gtk/aria-checkbox-sends-notification-expected.txt.
* platform/gtk/accessibility/aria-fallback-roles-expected.txt: Renamed from LayoutTests/accessibility/gtk/aria-fallback-roles-expected.txt.
* platform/gtk/accessibility/aria-help-expected.txt: Renamed from LayoutTests/accessibility/gtk/aria-help-expected.txt.
* platform/gtk/accessibility/aria-hidden-false-works-in-subtrees-expected.txt: Renamed from LayoutTests/accessibility/gtk/aria-hidden-false-works-in-subtrees-expected.txt.
* platform/gtk/accessibility/aria-inherits-presentational-expected.txt: Renamed from LayoutTests/accessibility/gtk/aria-inherits-presentational-expected.txt.
* platform/gtk/accessibility/aria-menubar-menuitems-expected.txt: Renamed from LayoutTests/accessibility/gtk/aria-menubar-menuitems-expected.txt.
* platform/gtk/accessibility/aria-switch-text-expected.txt: Renamed from LayoutTests/accessibility/gtk/aria-switch-text-expected.txt.
* platform/gtk/accessibility/aria-table-hierarchy-expected.txt: Renamed from LayoutTests/accessibility/gtk/aria-table-hierarchy-expected.txt.
* platform/gtk/accessibility/aria-toggle-button-with-title-expected.txt: Renamed from LayoutTests/accessibility/gtk/aria-toggle-button-with-title-expected.txt.
* platform/gtk/accessibility/color-well-expected.txt: Renamed from LayoutTests/accessibility/gtk/color-well-expected.txt.
* platform/gtk/accessibility/css-content-attribute-expected.txt: Renamed from LayoutTests/accessibility/gtk/css-content-attribute-expected.txt.
* platform/gtk/accessibility/dimensions-include-descendants-expected.txt: Renamed from LayoutTests/accessibility/gtk/dimensions-include-descendants-expected.txt.
* platform/gtk/accessibility/file-upload-button-stringvalue-expected.txt: Renamed from LayoutTests/accessibility/gtk/file-upload-button-stringvalue-expected.txt.
* platform/gtk/accessibility/image-link-expected.txt: Renamed from LayoutTests/accessibility/gtk/image-link-expected.txt.
* platform/gtk/accessibility/image-map1-expected.txt: Renamed from LayoutTests/accessibility/gtk/image-map1-expected.txt.
* platform/gtk/accessibility/image-map2-expected.txt: Renamed from LayoutTests/accessibility/gtk/image-map2-expected.txt.
* platform/gtk/accessibility/image-with-alt-and-map-expected.txt: Renamed from LayoutTests/accessibility/gtk/image-with-alt-and-map-expected.txt.
* platform/gtk/accessibility/img-fallsback-to-title-expected.txt: Renamed from LayoutTests/accessibility/gtk/img-fallsback-to-title-expected.txt.
* platform/gtk/accessibility/inline-continuations-expected.txt: Renamed from LayoutTests/accessibility/gtk/inline-continuations-expected.txt.
* platform/gtk/accessibility/list-detection-expected.txt: Renamed from LayoutTests/accessibility/gtk/list-detection-expected.txt.
* platform/gtk/accessibility/lists-expected.txt: Renamed from LayoutTests/accessibility/gtk/lists-expected.txt.
* platform/gtk/accessibility/math-multiscript-attributes-expected.txt: Renamed from LayoutTests/accessibility/gtk/math-multiscript-attributes-expected.txt.
* platform/gtk/accessibility/math-text-expected.txt: Renamed from LayoutTests/accessibility/gtk/math-text-expected.txt.
* platform/gtk/accessibility/media-element-expected.txt: Renamed from LayoutTests/accessibility/gtk/media-element-expected.txt.
* platform/gtk/accessibility/menu-list-crash2-expected.txt: Renamed from LayoutTests/accessibility/gtk/menu-list-crash2-expected.txt.
* platform/gtk/accessibility/menu-list-sends-change-notification-expected.txt: Renamed from LayoutTests/accessibility/gtk/menu-list-sends-change-notification-expected.txt.
* platform/gtk/accessibility/meter-element-expected.txt: Renamed from LayoutTests/accessibility/gtk/meter-element-expected.txt.
* platform/gtk/accessibility/platform-name-expected.txt: Renamed from LayoutTests/accessibility/gtk/platform-name-expected.txt.
* platform/gtk/accessibility/plugin-expected.txt: Renamed from LayoutTests/accessibility/gtk/plugin-expected.txt.
* platform/gtk/accessibility/press-targets-center-point-expected.txt: Renamed from LayoutTests/accessibility/gtk/press-targets-center-point-expected.txt.
* platform/gtk/accessibility/radio-button-title-label-expected.txt: Renamed from LayoutTests/accessibility/gtk/radio-button-title-label-expected.txt.
* platform/gtk/accessibility/render-counter-text-expected.txt: Renamed from LayoutTests/accessibility/gtk/render-counter-text-expected.txt.
* platform/gtk/accessibility/roles-computedRoleString-expected.txt: Renamed from LayoutTests/accessibility/gtk/roles-computedRoleString-expected.txt.
* platform/gtk/accessibility/roles-exposed-expected.txt: Renamed from LayoutTests/accessibility/gtk/roles-exposed-expected.txt.
* platform/gtk/accessibility/spinbutton-value-expected.txt: Renamed from LayoutTests/accessibility/gtk/spinbutton-value-expected.txt.
* platform/gtk/accessibility/tabindex-elements-are-accessible-expected.txt: Renamed from LayoutTests/accessibility/gtk/tabindex-elements-are-accessible-expected.txt.
* platform/gtk/accessibility/table-attributes-expected.txt: Renamed from LayoutTests/accessibility/gtk/table-attributes-expected.txt.
* platform/gtk/accessibility/table-cell-spans-expected.txt: Renamed from LayoutTests/accessibility/gtk/table-cell-spans-expected.txt.
* platform/gtk/accessibility/table-cells-expected.txt: Renamed from LayoutTests/accessibility/gtk/table-cells-expected.txt.
* platform/gtk/accessibility/table-column-headers-with-captions-expected.txt: Renamed from LayoutTests/accessibility/gtk/table-column-headers-with-captions-expected.txt.
* platform/gtk/accessibility/table-detection-expected.txt: Renamed from LayoutTests/accessibility/gtk/table-detection-expected.txt.
* platform/gtk/accessibility/table-hierarchy-expected.txt: Renamed from LayoutTests/accessibility/gtk/table-hierarchy-expected.txt.
* platform/gtk/accessibility/table-one-cell-expected.txt: Renamed from LayoutTests/accessibility/gtk/table-one-cell-expected.txt.
* platform/gtk/accessibility/table-roles-hierarchy-expected.txt: Renamed from LayoutTests/accessibility/gtk/table-roles-hierarchy-expected.txt.
* platform/gtk/accessibility/table-sections-expected.txt: Renamed from LayoutTests/accessibility/gtk/table-sections-expected.txt.
* platform/gtk/accessibility/table-with-rules-expected.txt: Renamed from LayoutTests/accessibility/gtk/table-with-rules-expected.txt.
* platform/gtk/accessibility/transformed-element-expected.txt: Renamed from LayoutTests/accessibility/gtk/transformed-element-expected.txt.

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

4 years agoRemove GlyphPage::mayUseMixedFontsWhenFilling
antti@apple.com [Mon, 7 Sep 2015 18:26:46 +0000 (18:26 +0000)]
Remove GlyphPage::mayUseMixedFontsWhenFilling
https://bugs.webkit.org/show_bug.cgi?id=148928

Reviewed by Dan Bernstein.

http://trac.webkit.org/188566 removed support for composite fonts. We never need to use mixed
glyph pages for fonts anymore.

* platform/graphics/Font.cpp:
(WebCore::createAndFillGlyphPage):
* platform/graphics/GlyphPage.h:
(WebCore::GlyphPage::GlyphPage):
(WebCore::GlyphPage::mayUseMixedFontsWhenFilling): Deleted.
* platform/graphics/mac/GlyphPageMac.cpp:
(WebCore::shouldUseCoreText):
(WebCore::GlyphPage::fill):
(WebCore::GlyphPage::mayUseMixedFontsWhenFilling): Deleted.

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

4 years agoRemove unneeded offset and length arguments from glyph page filling functions
antti@apple.com [Mon, 7 Sep 2015 17:42:50 +0000 (17:42 +0000)]
Remove unneeded offset and length arguments from glyph page filling functions
https://bugs.webkit.org/show_bug.cgi?id=148929

Reviewed by Andreas Kling.

They are always passed 0/GlyphPage::size.

* platform/graphics/Font.cpp:
(WebCore::Font::~Font):
(WebCore::fillGlyphPage):
(WebCore::createAndFillGlyphPage):
* platform/graphics/Font.h:
* platform/graphics/GlyphPage.h:
(WebCore::GlyphPage::setGlyphDataForIndex):
* platform/graphics/mac/GlyphPageMac.cpp:
(WebCore::GlyphPage::mayUseMixedFontsWhenFilling):
(WebCore::GlyphPage::fill):
* platform/graphics/win/GlyphPageTreeNodeCGWin.cpp:
(WebCore::GlyphPage::fill):
* platform/graphics/win/GlyphPageTreeNodeCairoWin.cpp:
(WebCore::GlyphPage::fill):
* svg/SVGFontData.cpp:
(WebCore::SVGFontData::applySVGGlyphSelection):
(WebCore::SVGFontData::fillSVGGlyphPage):
(WebCore::SVGFontData::fillBMPGlyphs):
(WebCore::SVGFontData::fillNonBMPGlyphs):
* svg/SVGFontData.h:
(WebCore::SVGFontData::verticalAdvanceY):

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

4 years ago[EFL] Many of the css3/device-adapt/* tests failed after r188548.
commit-queue@webkit.org [Mon, 7 Sep 2015 12:34:42 +0000 (12:34 +0000)]
[EFL] Many of the css3/device-adapt/* tests failed after r188548.
https://bugs.webkit.org/show_bug.cgi?id=148927

Patch by Hunseop Jeong <hs85.jeong@samsung.com> on 2015-09-07
Reviewed by Csaba Osztrogon√°c.

device-adapt/* tests need the fixedLayout option but useFixedLayout option is
overwritten by updatePlatformSpecificViewOptionsForTest after r188548.

* WebKitTestRunner/TestController.cpp:
(WTR::shouldUseFixedLayout): Removed the unnecessary indentations.
* WebKitTestRunner/efl/TestControllerEfl.cpp:
(WTR::shouldUseFixedLayout): Return true if the test is related with 'device-adapt'.

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

4 years agoFix the Production build after r189455.
aestes@apple.com [Mon, 7 Sep 2015 07:46:50 +0000 (07:46 +0000)]
Fix the Production build after r189455.

* WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Somehow I added the All target using the
In-App Purchase template instead of the Aggregate template. Whoops.

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

4 years agoWebKit.xcworkspace should be be able to build iOS platforms
aestes@apple.com [Mon, 7 Sep 2015 07:09:21 +0000 (07:09 +0000)]
WebKit.xcworkspace should be be able to build iOS platforms
https://bugs.webkit.org/show_bug.cgi?id=148881

Reviewed by Daniel Bates.

Since we don't want to create platform-specific schemes, all projects in the workspace's schemes need to build
for all supported platforms.

.:

* WebKit.xcworkspace/xcshareddata/xcschemes/All Tools.xcscheme: Removed the DumpRenderTree target since its All
target was already included. Removed the WebKitTestRunner target and replaced it with its All target.

Source/WebInspectorUI:

* Configurations/Base.xcconfig: Included iphoneos and iphonesimulator in SUPPORTED_PLATFORMS.
* Configurations/WebInspectorUIFramework.xcconfig: Skipped installing on iOS.

Tools:

* MiniBrowser/Configurations/Base.xcconfig: Included iphoneos and iphonesimulator in SUPPORTED_PLATFORMS.
* MiniBrowser/Configurations/MiniBrowser.xcconfig: Excluded all source files on iOS, and linked Cocoa and WebKit on Mac.
* MiniBrowser/Configurations/MiniBrowserBundle.xcconfig: Ditto.
* MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj: Stopped linking frameworks in Link Binaries With Libraries.

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

4 years agoUnreviewed, EFL gardening. Many tests have been failed since r188692.
gyuyoung.kim@webkit.org [Mon, 7 Sep 2015 06:47:29 +0000 (06:47 +0000)]
Unreviewed, EFL gardening. Many tests have been failed since r188692.
Bug 148470 will try to fix this problem.

* platform/efl/TestExpectations:

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

4 years agoGardening: fix broken Windows build after r189454.
mark.lam@apple.com [Mon, 7 Sep 2015 06:28:41 +0000 (06:28 +0000)]
Gardening: fix broken Windows build after r189454.

Not reviewed.

* JavaScriptCore.vcxproj/testapi/testapi.vcxproj:
* JavaScriptCore.vcxproj/testapi/testapi.vcxproj.filters:

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

4 years agoAdd one more inspector test that flakily times out.
ap@apple.com [Mon, 7 Sep 2015 06:23:15 +0000 (06:23 +0000)]
Add one more inspector test that flakily times out.

* platform/mac/TestExpectations: Added inspector/indexeddb/requestDatabaseNames.html.

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

4 years agoImplement the relational instructions in WebAssembly
commit-queue@webkit.org [Mon, 7 Sep 2015 06:17:53 +0000 (06:17 +0000)]
Implement the relational instructions in WebAssembly
https://bugs.webkit.org/show_bug.cgi?id=148838

Patch by Sukolsak Sakshuwong <sukolsak@gmail.com> on 2015-09-06
Reviewed by Saam Barati.

This patch implements the relational instructions for 32-bit integers in
WebAssembly.

* tests/stress/wasm-arithmetic.js:
* tests/stress/wasm-locals.js:
* tests/stress/wasm-relational.js: Added.
(shouldBe):
* tests/stress/wasm/arithmetic.wasm: Renamed from Source/JavaScriptCore/tests/stress/wasm-arithmetic.wasm.
* tests/stress/wasm/locals.wasm: Renamed from Source/JavaScriptCore/tests/stress/wasm-locals.wasm.
* tests/stress/wasm/relational.wasm: Added.
* wasm/WASMFunctionCompiler.h:
(JSC::WASMFunctionCompiler::buildRelationalI32):
* wasm/WASMFunctionParser.cpp:
(JSC::WASMFunctionParser::parseExpressionI32):
(JSC::WASMFunctionParser::parseRelationalI32ExpressionI32):
* wasm/WASMFunctionParser.h:
* wasm/WASMFunctionSyntaxChecker.h:
(JSC::WASMFunctionSyntaxChecker::buildRelationalI32):

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

4 years agoMark svg/dom/svg-root-lengths.html as a flaky failure
ap@apple.com [Mon, 7 Sep 2015 06:14:38 +0000 (06:14 +0000)]
Mark svg/dom/svg-root-lengths.html as a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=148925

* TestExpectations:

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

4 years agoMark svg/as-object/svg-in-object-dynamic-attribute-change.html as a flaky failure
ap@apple.com [Mon, 7 Sep 2015 05:56:29 +0000 (05:56 +0000)]
Mark svg/as-object/svg-in-object-dynamic-attribute-change.html as a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=148922

* TestExpectations:

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

4 years agoWebKitTestRunner should build for iOS using the default target
aestes@apple.com [Mon, 7 Sep 2015 05:39:42 +0000 (05:39 +0000)]
WebKitTestRunner should build for iOS using the default target
https://bugs.webkit.org/show_bug.cgi?id=148918

Reviewed by Daniel Bates.

When WebKitTestRunner was ported to iOS, a separate target (WebKitTestRunnerApp) was created for building the
iOS variant. This is annoying because (1) all tools that invoke xcodebuild need to be taught to build this
non-default target, and (2) a single Xcode scheme cannot be used to build both Mac and iOS variants.

This change adds a new default target (All) and makes it work for both Mac and iOS. Files that were built for
both WebKitTestRunner and WebKitTestRunnerApp are now built in a static library target (WebKitTestRunner (Library)),
and both apps now link this library. Files that are specific to Mac or iOS are excluded on the other platform.
WebKitTestRunnerApp.app (which should be renamed to WebKitTestRunner.app) is skipped when installing on Mac, and
WebKitTestRunner is skipped when installing on iOS.

The target dependency graph now looks like this:

    All
        WebKitTestRunnerApp
            WebKitTestRunner (Library)
                WebKitTestRunnerInjectedBundle
                    Derived Sources
        WebKitTestRunner
            WebKitTestRunner (Library)
                WebKitTestRunnerInjectedBundle
                    Derived Sources

* Scripts/build-webkit: Stopped building the WebKitTestRunnerApp target on iOS.
* Scripts/build-webkittestrunner: Ditto.
* WebKitTestRunner/Configurations/Base.xcconfig: Set SUPPORTED_PLATFORMS to macosx, iphoneos, and iphonesimulator.
* WebKitTestRunner/Configurations/BaseTarget.xcconfig: Set INSTALL_PATH here since it is the same for all targets.
* WebKitTestRunner/Configurations/InjectedBundle.xcconfig: Stopped setting INSTALL_PATH.
* WebKitTestRunner/Configurations/WebKitTestRunner.xcconfig: Moved frameworks from the build phase to here,
excluded iOS-only files, and skipped installing on iOS.
* WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig: Moved frameworks from the build phase to here,
excluded Mac-only files, and skipped installing on Mac.
* WebKitTestRunner/Configurations/WebKitTestRunnerLibrary.xcconfig: Skipped installing always.
* WebKitTestRunner/Makefile: Stopped building the WebKitTestRunnerApp target on iOS.
* WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Added new targets, removed frameworks from
Link Binary With Libraries builds phases, moved common files to the WebKitTestRunner (Library) target, and added
new configuration files.

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

4 years agoStackOverflow stack unwinding should stop at native frames.
mark.lam@apple.com [Mon, 7 Sep 2015 05:19:28 +0000 (05:19 +0000)]
StackOverflow stack unwinding should stop at native frames.
https://bugs.webkit.org/show_bug.cgi?id=148749

Reviewed by Michael Saboff.

In the present code, after ping-pong'ing back and forth between native and JS
code a few times, if we have a stack overflow on re-entry into the VM to run
JS code's whose stack frame would overflow the JS stack, the code will end up
unwinding past the native function that is making the call to re-enter the VM.
As a result, any clean up code (e.g. destructors for stack variables) in the
skipped native function frame (and its chain of native function callers) will
not be called.

This patch is based on the Michael Saboff's fix of this issue landed on the
jsc-tailcall branch: http://trac.webkit.org/changeset/188555

We now check for the case where there are no JS frames to unwind since the
last native frame, and treat the exception as an unhandled exception.  The
native function is responsible for further propagating the exception if needed.

Other supporting work:
1. Remove vm->vmEntryFrameForThrow.  It should always be the same as
   vm->topVMEntryFrame.
2. Change operationThrowStackOverflowError() to use the throwStackOverflowError()
   helper function instead of rolling its own.
3. Added a test that exercises this edge case.  The test should not hang or crash.

* API/tests/PingPongStackOverflowTest.cpp: Added.
(PingPongStackOverflowObject_hasInstance):
(testPingPongStackOverflow):
* API/tests/PingPongStackOverflowTest.h: Added.
* API/tests/testapi.c:
(main):
* JavaScriptCore.xcodeproj/project.pbxproj:
* interpreter/CallFrame.h:
(JSC::ExecState::operator=):
(JSC::ExecState::callerFrame):
(JSC::ExecState::callerFrameOrVMEntryFrame):
(JSC::ExecState::argIndexForRegister):
(JSC::ExecState::callerFrameAndPC):
* interpreter/Interpreter.cpp:
(JSC::UnwindFunctor::UnwindFunctor):
(JSC::UnwindFunctor::operator()):
(JSC::Interpreter::unwind):
* interpreter/Interpreter.h:
(JSC::NativeCallFrameTracer::NativeCallFrameTracer):
(JSC::Interpreter::sampler):
* jit/CCallHelpers.h:
(JSC::CCallHelpers::jumpToExceptionHandler):
* jit/JITExceptions.cpp:
(JSC::genericUnwind):
* jit/JITExceptions.h:
* jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_catch):
* jit/JITOpcodes32_64.cpp:
(JSC::JIT::emit_op_catch):
* jit/JITOperations.cpp:
* llint/LowLevelInterpreter32_64.asm:
* llint/LowLevelInterpreter64.asm:
* runtime/VM.h:
(JSC::VM::exceptionOffset):
(JSC::VM::callFrameForThrowOffset):
(JSC::VM::vmEntryFrameForThrowOffset): Deleted.
(JSC::VM::topVMEntryFrameOffset): Deleted.

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

4 years agoUnreviewed, disable module tests in Windows until name resolution is fixed
utatane.tea@gmail.com [Mon, 7 Sep 2015 03:10:31 +0000 (03:10 +0000)]
Unreviewed, disable module tests in Windows until name resolution is fixed
https://bugs.webkit.org/show_bug.cgi?id=148689

Until bug[1] is fixed, we disable the module tests.
Since the local file system name resolution is just implemented in jsc.cpp and
is intended to be used for the module tests, it does not affect JSC framework
and WebKit itself.

[1]: https://bugs.webkit.org/show_bug.cgi?id=148917

* tests/modules.yaml:

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

4 years agodispatchEvent() should throw an InvalidStateError if the event's initialized flag...
cdumez@apple.com [Sun, 6 Sep 2015 20:41:48 +0000 (20:41 +0000)]
dispatchEvent() should throw an InvalidStateError if the event's initialized flag is not set
https://bugs.webkit.org/show_bug.cgi?id=148800
<rdar://problem/22565782>
<rdar://problem/22565485>

Reviewed by Geoffrey Garen.

Source/WebCore:

dispatchEvent() should throw an InvalidStateError if the event's
initialized flag is not set or its dispatch flag is set, and should
allow dispatching events with an empty type as long as it is
initialized:
https://dom.spec.whatwg.org/#dom-eventtarget-dispatchevent (step 1)

Previously, WebKit relied on the event type being empty to throw a
UNSPECIFIED_EVENT_TYPE_ERR: DOM Events Exception 0. However, this
exception type is outdated and initializing Event.type to an empty
string is legal.

No new tests, already covered by existing tests that were rebaselined.

* dom/Event.cpp:
(WebCore::Event::Event):
(WebCore::Event::initEvent):
* dom/Event.h:
(WebCore::Event::isInitialized):
* dom/EventTarget.cpp:
(WebCore::EventTarget::dispatchEvent):

LayoutTests:

* dom/html/level2/events/dispatchEvent02-expected.txt:
* dom/html/level2/events/dispatchEvent03-expected.txt:
* dom/html/level2/events/dispatchEvent04-expected.txt:
* dom/html/level2/events/dispatchEvent05-expected.txt:
* dom/html/level2/events/dispatchEvent06-expected.txt:
* dom/html/level2/events/dispatchEvent07-expected.txt:
* dom/xhtml/level2/events/dispatchEvent02-expected.txt:
* dom/xhtml/level2/events/dispatchEvent03-expected.txt:
* dom/xhtml/level2/events/dispatchEvent04-expected.txt:
* dom/xhtml/level2/events/dispatchEvent05-expected.txt:
* dom/xhtml/level2/events/dispatchEvent06-expected.txt:
* dom/xhtml/level2/events/dispatchEvent07-expected.txt:
Rebaseline, those tests are outdated and their expected results no
longer matches the behavior of the latest DOM specification.

* fast/dom/DOMException/EventException-expected.txt: Removed.
* fast/dom/DOMException/EventException.html: Removed.
* fast/dom/DOMException/resources/EventException.js: Removed.
Drop this test we no longer throw an EventException in this case.

* fast/dom/Window/dispatchEvent-expected.txt:
Rebaseline.

* fast/events/dispatch-event-being-dispatched-expected.txt:
* fast/events/dispatch-event-being-dispatched.html:
Fix the test to expect the new exception types.

* http/tests/w3c/dom/events/Event-type-empty-expected.txt:
* http/tests/w3c/dom/events/EventTarget-dispatchEvent-expected.txt:
Rebaseline.

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

4 years agoUnreviewed, drop a few more newly imported W3C media tests that are flaky.
cdumez@apple.com [Sun, 6 Sep 2015 20:34:33 +0000 (20:34 +0000)]
Unreviewed, drop a few more newly imported W3C media tests that are flaky.

* http/tests/w3c/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-events-networkState-expected.txt: Removed.
* http/tests/w3c/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-events-networkState.html: Removed.
* http/tests/w3c/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-set-src-not-in-document-expected.txt: Removed.
* http/tests/w3c/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-set-src-not-in-document.html: Removed.
* http/tests/w3c/html/semantics/embedded-content/media-elements/synchronising-multiple-media-elements/media-controllers/task-source-expected.txt: Removed.
* http/tests/w3c/html/semantics/embedded-content/media-elements/synchronising-multiple-media-elements/media-controllers/task-source.html: Removed.

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

4 years agoUnreviewed, drop a couple of newly imported W3C media tests as they are flaky.
cdumez@apple.com [Sun, 6 Sep 2015 20:26:42 +0000 (20:26 +0000)]
Unreviewed, drop a couple of newly imported W3C media tests as they are flaky.

* http/tests/w3c/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event-expected.txt: Removed.
* http/tests/w3c/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event.html: Removed.
* http/tests/w3c/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-into-iframe-expected.txt: Removed.
* http/tests/w3c/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-into-iframe.html: Removed.

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

4 years agoMark a couple of new W3C ref-tests as failing on iOS.
cdumez@apple.com [Sun, 6 Sep 2015 20:23:12 +0000 (20:23 +0000)]
Mark a couple of new W3C ref-tests as failing on iOS.

* platform/ios-simulator/TestExpectations:

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

4 years agoUnreviewed, land iOS baselines for the newly imported W3C HTML tests.
cdumez@apple.com [Sun, 6 Sep 2015 20:17:45 +0000 (20:17 +0000)]
Unreviewed, land iOS baselines for the newly imported W3C HTML tests.

* platform/ios-simulator/http/tests/w3c/html/semantics/forms/constraints/form-validation-checkValidity-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/constraints/form-validation-reportValidity-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/constraints/form-validation-validity-badInput-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/constraints/form-validation-validity-rangeOverflow-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/constraints/form-validation-validity-rangeUnderflow-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/constraints/form-validation-validity-stepMismatch-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/constraints/form-validation-validity-valid-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/constraints/form-validation-willValidate-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/textfieldselection/selection-not-application-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/color-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/date-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/datetime-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/datetime-local-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/input-textselection-01-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/month-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/time-2-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/time-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/type-change-state-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/valueMode-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-input-element/week-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-label-element/labelable-elements-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/forms/the-meter-element/meter-expected.txt: Added.
* platform/ios-simulator/http/tests/w3c/html/semantics/interfaces-expected.txt: Added.

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

4 years agoUnreviewed, skip new media tests on iOS.
cdumez@apple.com [Sun, 6 Sep 2015 20:04:31 +0000 (20:04 +0000)]
Unreviewed, skip new media tests on iOS.

* platform/ios-simulator/TestExpectations:

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

4 years agoUnreviewed, skip http/tests/w3c/html/semantics/embedded-content/media-elements/*...
cdumez@apple.com [Sun, 6 Sep 2015 19:59:31 +0000 (19:59 +0000)]
Unreviewed, skip http/tests/w3c/html/semantics/embedded-content/media-elements/* on Win/Release

Skip http/tests/w3c/html/semantics/embedded-content/media-elements/* on Win/Release
as well. Apparently, the "AQMEIOManager::FindIOUnit: error -1" messages can show
up on release builds as well.

* platform/win/TestExpectations:

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

4 years agoXHR2 timeout property should allow late updates
youenn.fablet@crf.canon.fr [Sun, 6 Sep 2015 18:40:21 +0000 (18:40 +0000)]
XHR2 timeout property should allow late updates
https://bugs.webkit.org/show_bug.cgi?id=98156

Reviewed by Darin Adler.

Source/WebCore:

Adding a timer within XMLHttpRequest to handle timeouts for asynchronous requests.
This allows easy update of the timeout even after request is sent.
Timeout is still handled by the network backend for synchronous requests (Web worker context).

Covered by updated tests.

* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::XMLHttpRequest): Adding timeout timer initialization.
(WebCore::XMLHttpRequest::setTimeout): Updating timeout timer state if request is sent.
(WebCore::XMLHttpRequest::createRequest): Starting timeout timer if needed.
(WebCore::XMLHttpRequest::internalAbort): Stopping timeout timer if needed.
(WebCore::XMLHttpRequest::didFail): Adding comment.
(WebCore::XMLHttpRequest::didFinishLoading): Stopping timeout timer if needed.
* xml/XMLHttpRequest.h:

LayoutTests:

Activating test checking that timeout can be updated after request is sent.

* http/tests/xmlhttprequest/timeout/xmlhttprequest-timeout-overrides-expected.txt:
* http/tests/xmlhttprequest/timeout/xmlhttprequest-timeout-overrides.js:
* http/tests/xmlhttprequest/timeout/xmlhttprequest-timeout-worker-overrides-expected.txt:

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

4 years agoSimplify JIT::emit_op_mod()
commit-queue@webkit.org [Sun, 6 Sep 2015 14:38:12 +0000 (14:38 +0000)]
Simplify JIT::emit_op_mod()
https://bugs.webkit.org/show_bug.cgi?id=148908

Patch by Sukolsak Sakshuwong <sukolsak@gmail.com> on 2015-09-06
Reviewed by Michael Saboff.

The IDIV instruction on x86 divides the value in the EDX:EAX registers
by the source operand and stores the quotient in EAX and the remainder
in EDX. Therefore, we store the values that we don't want to be
overwritten by IDIV in registers that are not EAX or EDX. This patch
makes the intention clearer and makes the code easier to read.

* jit/JITArithmetic.cpp:
(JSC::JIT::emit_op_mod):

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

4 years agoFix JSDollarVMPrototype after r189160.
mark.lam@apple.com [Sun, 6 Sep 2015 06:30:44 +0000 (06:30 +0000)]
Fix JSDollarVMPrototype after r189160.
https://bugs.webkit.org/show_bug.cgi?id=148900

Reviewed by Michael Saboff.

JSDollarVMPrototype needs to be updated to match http://trac.webkit.org/changeset/189160 i.e.
remove the use of JSC::Function bit in its property attributes.

* tools/JSDollarVMPrototype.cpp:
(JSC::JSDollarVMPrototype::finishCreation):

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

4 years agoLeak in WebContextInjectedBundleClient::getInjectedBundleInitializationUserData
mcatanzaro@igalia.com [Sun, 6 Sep 2015 02:33:35 +0000 (02:33 +0000)]
Leak in WebContextInjectedBundleClient::getInjectedBundleInitializationUserData
https://bugs.webkit.org/show_bug.cgi?id=148769

Fix suggested by Zan Dobersek.

Reviewed by Darin Adler.

* UIProcess/WebContextInjectedBundleClient.cpp:
(WebKit::WebContextInjectedBundleClient::getInjectedBundleInitializationUserData):

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

4 years agoRemove unused macros from StyleResolver.cpp
ljaehun.lim@samsung.com [Sun, 6 Sep 2015 01:50:13 +0000 (01:50 +0000)]
Remove unused macros from StyleResolver.cpp
https://bugs.webkit.org/show_bug.cgi?id=148163

Reviewed by Andreas Kling.

HANDLE_INHERIT and HANDLE_INHERIT_AND_INITIAL are not used after
StyleBuilder refactoring.

No new tests because there is no behavior change.

* css/StyleResolver.cpp:
Remove HANDLE_INHERIT and HANDLE_INHERIT_AND_INITIAL.

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

4 years agoImport a couple of Chromium accesskey tests.
jhoneycutt@apple.com [Sat, 5 Sep 2015 20:54:31 +0000 (20:54 +0000)]
Import a couple of Chromium accesskey tests.
https://bugs.webkit.org/show_bug.cgi?id=148865

Reviewed by Daniel Bates.

* fast/forms/access-key-case-insensitive-expected.txt: Added.
* fast/forms/access-key-case-insensitive.html: Added.
* fast/forms/access-key-mutated-expected.txt: Added.
* fast/forms/access-key-mutated.html: Added.
* platform/ios-simulator/TestExpectations:
These tests are asynchronous and use unsupported features; skip them on
iOS so they don't time out.

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

4 years agoUnreviewed, fix the module name resolution in Windows
utatane.tea@gmail.com [Sat, 5 Sep 2015 19:45:58 +0000 (19:45 +0000)]
Unreviewed, fix the module name resolution in Windows
https://bugs.webkit.org/show_bug.cgi?id=148689

Attempt to fix the module name resolution in Windows.
A module name is represented as the UNIX path under the current module tests.
This fix split the module name with '/' instead of pathSeparator().

This is only utilized by the jsc.cpp for the local module tests.
So, WebKit production and JavaScriptCore framework are not affected by this change.

* jsc.cpp:
(ModuleName::startsWithRoot):
(ModuleName::ModuleName):
(resolvePath):
(GlobalObject::moduleLoaderResolve):

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

4 years agoWeb Inspector: tighten up lifetimes for Agent-owned objects, and initialize agents...
bburg@apple.com [Sat, 5 Sep 2015 18:52:16 +0000 (18:52 +0000)]
Web Inspector: tighten up lifetimes for Agent-owned objects, and initialize agents using contexts
https://bugs.webkit.org/show_bug.cgi?id=148625

Reviewed by Joseph Pecoraro.

All agents own their domain-specific frontend and backend dispatchers. Change so that
they are initialized in constructors rather than when a frontend connects or disconnects.
This may cause additional memory use, but this can be counteracted by lazily creating
some agents that are not required for other agents to function (i.e., runtime and page agents).

To avoid adding frontend/backend dispatcher arguments to every single agent constructor,
change agent construction to take a AgentContext or a subclass of it. This provides agents with
references to objects in the owning InspectorEnvironment subclass that are guaranteed to
outlive all agents. AgentContext and its subclasses follow the existing Agent class hierarchy.

Source/JavaScriptCore:

* inspector/InspectorAgentBase.h:
(Inspector::JSAgentContext::JSAgentContext):
* inspector/JSGlobalObjectInspectorController.cpp:
(Inspector::JSGlobalObjectInspectorController::JSGlobalObjectInspectorController):
(Inspector::JSGlobalObjectInspectorController::connectFrontend):
(Inspector::JSGlobalObjectInspectorController::disconnectFrontend):
(Inspector::JSGlobalObjectInspectorController::disconnectAllFrontends):
(Inspector::JSGlobalObjectInspectorController::appendExtraAgent):
* inspector/JSGlobalObjectInspectorController.h:
* inspector/agents/InspectorAgent.cpp:
(Inspector::InspectorAgent::InspectorAgent):
(Inspector::InspectorAgent::didCreateFrontendAndBackend):
(Inspector::InspectorAgent::willDestroyFrontendAndBackend):
* inspector/agents/InspectorAgent.h:
* inspector/agents/InspectorConsoleAgent.cpp:
(Inspector::InspectorConsoleAgent::InspectorConsoleAgent):
(Inspector::InspectorConsoleAgent::didCreateFrontendAndBackend):
(Inspector::InspectorConsoleAgent::willDestroyFrontendAndBackend):
* inspector/agents/InspectorConsoleAgent.h:
* inspector/agents/InspectorDebuggerAgent.cpp:
(Inspector::InspectorDebuggerAgent::InspectorDebuggerAgent):
(Inspector::InspectorDebuggerAgent::didCreateFrontendAndBackend):
(Inspector::InspectorDebuggerAgent::willDestroyFrontendAndBackend):
* inspector/agents/InspectorDebuggerAgent.h:
* inspector/agents/InspectorRuntimeAgent.cpp:
(Inspector::InspectorRuntimeAgent::InspectorRuntimeAgent):
* inspector/agents/InspectorRuntimeAgent.h:
* inspector/agents/JSGlobalObjectConsoleAgent.cpp:
(Inspector::JSGlobalObjectConsoleAgent::JSGlobalObjectConsoleAgent):
* inspector/agents/JSGlobalObjectConsoleAgent.h:
* inspector/agents/JSGlobalObjectDebuggerAgent.cpp:
(Inspector::JSGlobalObjectDebuggerAgent::JSGlobalObjectDebuggerAgent):
* inspector/agents/JSGlobalObjectDebuggerAgent.h:
* inspector/agents/JSGlobalObjectRuntimeAgent.cpp:
(Inspector::JSGlobalObjectRuntimeAgent::JSGlobalObjectRuntimeAgent):
(Inspector::JSGlobalObjectRuntimeAgent::didCreateFrontendAndBackend):
* inspector/agents/JSGlobalObjectRuntimeAgent.h:
* inspector/augmentable/AlternateDispatchableAgent.h:
* inspector/augmentable/AugmentableInspectorController.h: Alternate agents should
have access to frontend router and backend dispatcher at construction time.

* inspector/scripts/codegen/cpp_generator_templates.py:
* inspector/scripts/codegen/generate_cpp_frontend_dispatcher_implementation.py:
(CppFrontendDispatcherImplementationGenerator._generate_dispatcher_implementation_for_event):
* inspector/scripts/codegen/objc_generator_templates.py:

Source/WebCore:

No new tests, no behavior changed.

* bindings/js/WorkerScriptDebugServer.cpp:
(WebCore::WorkerScriptDebugServer::WorkerScriptDebugServer):
(WebCore::WorkerScriptDebugServer::addListener):
(WebCore::WorkerScriptDebugServer::removeListener):
(WebCore::WorkerScriptDebugServer::runEventLoopWhilePaused):
* bindings/js/WorkerScriptDebugServer.h:
* inspector/InspectorApplicationCacheAgent.cpp:
(WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
(WebCore::InspectorApplicationCacheAgent::didCreateFrontendAndBackend):
(WebCore::InspectorApplicationCacheAgent::getFramesWithManifests):
(WebCore::InspectorApplicationCacheAgent::willDestroyFrontendAndBackend):
* inspector/InspectorApplicationCacheAgent.h:
* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::InspectorCSSAgent):
(WebCore::InspectorCSSAgent::didCreateFrontendAndBackend):
(WebCore::InspectorCSSAgent::willDestroyFrontendAndBackend):
* inspector/InspectorCSSAgent.h:
* inspector/InspectorController.cpp:
(WebCore::InspectorController::InspectorController):
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::InspectorDOMAgent):
(WebCore::InspectorDOMAgent::didCreateFrontendAndBackend):
(WebCore::InspectorDOMAgent::willDestroyFrontendAndBackend):
* inspector/InspectorDOMAgent.h:
* inspector/InspectorDOMDebuggerAgent.cpp:
(WebCore::InspectorDOMDebuggerAgent::InspectorDOMDebuggerAgent):
(WebCore::InspectorDOMDebuggerAgent::didCreateFrontendAndBackend):
(WebCore::InspectorDOMDebuggerAgent::willDestroyFrontendAndBackend):
* inspector/InspectorDOMDebuggerAgent.h:
* inspector/InspectorDOMStorageAgent.cpp:
(WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
(WebCore::InspectorDOMStorageAgent::didCreateFrontendAndBackend):
(WebCore::InspectorDOMStorageAgent::findStorageArea):
(WebCore::InspectorDOMStorageAgent::willDestroyFrontendAndBackend):
* inspector/InspectorDOMStorageAgent.h:
* inspector/InspectorDatabaseAgent.cpp:
(WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
(WebCore::InspectorDatabaseAgent::didCreateFrontendAndBackend):
(WebCore::InspectorDatabaseAgent::willDestroyFrontendAndBackend):
* inspector/InspectorDatabaseAgent.h:
* inspector/InspectorIndexedDBAgent.cpp:
(WebCore::InspectorIndexedDBAgent::InspectorIndexedDBAgent):
(WebCore::InspectorIndexedDBAgent::didCreateFrontendAndBackend):
(WebCore::InspectorIndexedDBAgent::willDestroyFrontendAndBackend):
* inspector/InspectorIndexedDBAgent.h:
* inspector/InspectorInstrumentation.cpp:
(WebCore::InspectorInstrumentation::didClearWindowObjectInWorldImpl):
* inspector/InspectorLayerTreeAgent.cpp:
(WebCore::InspectorLayerTreeAgent::InspectorLayerTreeAgent):
(WebCore::InspectorLayerTreeAgent::didCreateFrontendAndBackend):
(WebCore::InspectorLayerTreeAgent::willDestroyFrontendAndBackend):
* inspector/InspectorLayerTreeAgent.h:
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::InspectorPageAgent):
(WebCore::InspectorPageAgent::didCreateFrontendAndBackend):
(WebCore::InspectorPageAgent::enable):
(WebCore::InspectorPageAgent::reload):
(WebCore::InspectorPageAgent::navigate):
(WebCore::InspectorPageAgent::getCookies):
(WebCore::InspectorPageAgent::deleteCookie):
(WebCore::InspectorPageAgent::getResourceTree):
(WebCore::InspectorPageAgent::searchInResources):
(WebCore::InspectorPageAgent::getScriptExecutionStatus):
(WebCore::InspectorPageAgent::setScriptExecutionDisabled):
(WebCore::InspectorPageAgent::mainFrame):
(WebCore::InspectorPageAgent::findFrameWithSecurityOrigin):
(WebCore::InspectorPageAgent::buildObjectForFrame):
(WebCore::InspectorPageAgent::buildObjectForFrameTree):
(WebCore::InspectorPageAgent::setEmulatedMedia):
(WebCore::InspectorPageAgent::getCompositingBordersVisible):
(WebCore::InspectorPageAgent::setCompositingBordersVisible):
(WebCore::InspectorPageAgent::snapshotNode):
(WebCore::InspectorPageAgent::snapshotRect):
(WebCore::InspectorPageAgent::archive):
(WebCore::InspectorPageAgent::willDestroyFrontendAndBackend):
* inspector/InspectorPageAgent.h:
* inspector/InspectorReplayAgent.cpp:
(WebCore::InspectorReplayAgent::InspectorReplayAgent):
(WebCore::InspectorReplayAgent::didCreateFrontendAndBackend):
(WebCore::InspectorReplayAgent::willDestroyFrontendAndBackend):
* inspector/InspectorReplayAgent.h:
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::InspectorResourceAgent):
(WebCore::InspectorResourceAgent::didCreateFrontendAndBackend):
(WebCore::InspectorResourceAgent::willDestroyFrontendAndBackend):
* inspector/InspectorResourceAgent.h:
* inspector/InspectorTimelineAgent.cpp:
(WebCore::InspectorTimelineAgent::didCreateFrontendAndBackend):
(WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
(WebCore::InspectorTimelineAgent::willDestroyFrontendAndBackend):
(WebCore::InspectorTimelineAgent::page):
* inspector/InspectorTimelineAgent.h:
* inspector/InspectorWebAgentBase.h:
(WebCore::WebAgentContext::WebAgentContext):
(WebCore::PageAgentContext::PageAgentContext):
(WebCore::WorkerAgentContext::WorkerAgentContext):
(WebCore::InspectorAgentBase::InspectorAgentBase):
* inspector/InspectorWorkerAgent.cpp:
(WebCore::InspectorWorkerAgent::InspectorWorkerAgent):
(WebCore::InspectorWorkerAgent::didCreateFrontendAndBackend):
(WebCore::InspectorWorkerAgent::willDestroyFrontendAndBackend):
* inspector/InspectorWorkerAgent.h:
* inspector/PageConsoleAgent.cpp:
(WebCore::PageConsoleAgent::PageConsoleAgent):
* inspector/PageConsoleAgent.h:
* inspector/PageDebuggerAgent.cpp:
(WebCore::PageDebuggerAgent::PageDebuggerAgent):
(WebCore::PageDebuggerAgent::sourceMapURLForScript):
(WebCore::PageDebuggerAgent::breakpointActionLog):
(WebCore::PageDebuggerAgent::injectedScriptForEval):
* inspector/PageDebuggerAgent.h:
* inspector/PageRuntimeAgent.cpp:
(WebCore::PageRuntimeAgent::PageRuntimeAgent):
(WebCore::PageRuntimeAgent::didCreateFrontendAndBackend):
(WebCore::PageRuntimeAgent::injectedScriptForEval):
(WebCore::PageRuntimeAgent::reportExecutionContextCreation):
(WebCore::PageRuntimeAgent::willDestroyFrontendAndBackend):
* inspector/PageRuntimeAgent.h:
* inspector/WebConsoleAgent.cpp:
(WebCore::WebConsoleAgent::WebConsoleAgent):
* inspector/WebConsoleAgent.h:
* inspector/WebDebuggerAgent.cpp:
(WebCore::WebDebuggerAgent::WebDebuggerAgent):
* inspector/WebDebuggerAgent.h:
* inspector/WorkerConsoleAgent.cpp:
(WebCore::WorkerConsoleAgent::WorkerConsoleAgent):
* inspector/WorkerConsoleAgent.h:
* inspector/WorkerDebuggerAgent.cpp:
(WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
(WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent):
(WebCore::WorkerDebuggerAgent::interruptAndDispatchInspectorCommands):
(WebCore::WorkerDebuggerAgent::breakpointActionLog):
(WebCore::WorkerDebuggerAgent::injectedScriptForEval):
* inspector/WorkerDebuggerAgent.h:
* inspector/WorkerInspectorController.cpp:
(WebCore::WorkerInspectorController::WorkerInspectorController):
* inspector/WorkerRuntimeAgent.cpp:
(WebCore::WorkerRuntimeAgent::WorkerRuntimeAgent):
(WebCore::WorkerRuntimeAgent::didCreateFrontendAndBackend):
(WebCore::WorkerRuntimeAgent::injectedScriptForEval):
(WebCore::WorkerRuntimeAgent::willDestroyFrontendAndBackend):
* inspector/WorkerRuntimeAgent.h:

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

4 years agoUnreviewed, skip http/tests/w3c/html/semantics/embedded-content/media-elements/*...
cdumez@apple.com [Sat, 5 Sep 2015 17:44:39 +0000 (17:44 +0000)]
Unreviewed, skip http/tests/w3c/html/semantics/embedded-content/media-elements/* tests on Win/Debug.

Filed Bug 148903 to track the problem.

* platform/win/TestExpectations:

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

4 years agoUnreviewed, mark imported/w3c/css/css-multicol-1/multicol-span-all-001.xht as failing...
cdumez@apple.com [Sat, 5 Sep 2015 17:33:37 +0000 (17:33 +0000)]
Unreviewed, mark imported/w3c/css/css-multicol-1/multicol-span-all-001.xht as failing on Windows.

* platform/win/TestExpectations:

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

4 years agoWeb Inspector: Improve prepare-ChangeLog for multiple cases
commit-queue@webkit.org [Sat, 5 Sep 2015 17:33:19 +0000 (17:33 +0000)]
Web Inspector: Improve prepare-ChangeLog for multiple cases
https://bugs.webkit.org/show_bug.cgi?id=148875

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-09-05
Reviewed by Timothy Hatcher.

* Scripts/prepare-ChangeLog:
(get_function_line_ranges_for_javascript):
- We were ignoring everything inside of an anonymous function expression,
  such as (function(){ ... }), which made InjectedScriptSource produce nothing.
  Better handle this by inserting a few tweaks.
- Allow method syntax outside of classes as long as they are at the global level.
- Avoid treating "get" and "set" as getter/setter functions in bad contexts.

* Scripts/webkitperl/prepare-ChangeLog_unittest/resources/javascript_unittests-expected.txt:
* Scripts/webkitperl/prepare-ChangeLog_unittest/resources/javascript_unittests.js:
(Foo.prototype.method1):
(Foo.prototype.method2):
(Foo.prototype.method3.innerFunction):
(Foo.prototype.method3):
(insideGlobalAnonymousFunctionExpression):
(foo.insideGlobalFunctionExpression):
(IssueWithMapGetAndSet.prototype.method1.nestedFunctionInsideMethod1):
(IssueWithMapGetAndSet.prototype.method1):
(IssueWithMapGetAndSet.prototype.method2):
(IssueWithMapGetAndSet.prototype.method3):
(IssueWithMapGetAndSet):

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

4 years agoUnreviewed, land Windows baselines for the new W3C html tests imported in r189394.
cdumez@apple.com [Sat, 5 Sep 2015 17:27:22 +0000 (17:27 +0000)]
Unreviewed, land Windows baselines for the new W3C html tests imported in r189394.

* platform/win/http/tests/w3c/html/dom/interfaces-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/embedded-content/media-elements/mime-types/canPlayType-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/embedded-content/the-img-element/srcset/parse-a-srcset-attribute-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/embedded-content/the-img-element/srcset/select-an-image-source-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/embedded-content/the-img-element/update-the-source-set-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/forms/constraints/form-validation-validity-badInput-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/forms/constraints/form-validation-willValidate-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/forms/textfieldselection/selection-not-application-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/forms/the-input-element/color-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/forms/the-input-element/input-textselection-01-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/forms/the-input-element/type-change-state-expected.txt: Added.
* platform/win/http/tests/w3c/html/semantics/forms/the-input-element/valueMode-expected.txt: Added.

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

4 years agoWeb Inspector: agents should send messages through FrontendRouter instead of Frontend...
bburg@apple.com [Sat, 5 Sep 2015 16:06:23 +0000 (16:06 +0000)]
Web Inspector: agents should send messages through FrontendRouter instead of FrontendChannel
https://bugs.webkit.org/show_bug.cgi?id=148492

Reviewed by Joseph Pecoraro.

Source/JavaScriptCore:

Replace uses of FrontendChannel with FrontendRouter. Minor cleanups along the way.

Make AgentRegistry automatically signal discardAgent() in its destructor, since it always
gets executed in the owning controller's destructor anyway.

* inspector/InspectorAgentBase.h:
* inspector/InspectorAgentRegistry.cpp:
(Inspector::AgentRegistry::~AgentRegistry):
(Inspector::AgentRegistry::didCreateFrontendAndBackend):
(Inspector::AgentRegistry::willDestroyFrontendAndBackend):
(Inspector::AgentRegistry::discardAgents): Deleted.
* inspector/InspectorAgentRegistry.h:
* inspector/InspectorBackendDispatcher.cpp:
* inspector/InspectorFrontendRouter.cpp:
(Inspector::FrontendRouter::leakChannel): Deleted, no longer necessary.
* inspector/InspectorFrontendRouter.h:
* inspector/JSGlobalObjectInspectorController.cpp:
(Inspector::JSGlobalObjectInspectorController::JSGlobalObjectInspectorController):
(Inspector::JSGlobalObjectInspectorController::connectFrontend):
(Inspector::JSGlobalObjectInspectorController::appendExtraAgent):
(Inspector::JSGlobalObjectInspectorController::~JSGlobalObjectInspectorController):
* inspector/JSGlobalObjectInspectorController.h:
* inspector/agents/InspectorAgent.cpp:
(Inspector::InspectorAgent::didCreateFrontendAndBackend):
* inspector/agents/InspectorAgent.h:
* inspector/agents/InspectorConsoleAgent.cpp:
(Inspector::InspectorConsoleAgent::didCreateFrontendAndBackend):
* inspector/agents/InspectorConsoleAgent.h:
* inspector/agents/InspectorDebuggerAgent.cpp:
(Inspector::InspectorDebuggerAgent::didCreateFrontendAndBackend):
* inspector/agents/InspectorDebuggerAgent.h:
* inspector/agents/JSGlobalObjectRuntimeAgent.cpp:
(Inspector::JSGlobalObjectRuntimeAgent::didCreateFrontendAndBackend):
* inspector/agents/JSGlobalObjectRuntimeAgent.h:
* inspector/augmentable/AlternateDispatchableAgent.h:
* inspector/remote/RemoteInspectorDebuggable.cpp:
* inspector/scripts/codegen/cpp_generator_templates.py:
* inspector/scripts/codegen/generate_cpp_backend_dispatcher_implementation.py:
(CppBackendDispatcherImplementationGenerator.generate_output):
* inspector/scripts/codegen/generate_cpp_frontend_dispatcher_header.py:
(CppFrontendDispatcherHeaderGenerator.generate_output.FrontendRouter):
(CppFrontendDispatcherHeaderGenerator.generate_output):
* inspector/scripts/codegen/generate_cpp_frontend_dispatcher_implementation.py:
(CppFrontendDispatcherImplementationGenerator.generate_output):
(CppFrontendDispatcherImplementationGenerator._generate_dispatcher_implementation_for_event):
* inspector/scripts/codegen/generate_objc_backend_dispatcher_implementation.py:
(ObjCConfigurationImplementationGenerator.generate_output):
* inspector/scripts/codegen/generate_objc_frontend_dispatcher_implementation.py:
(ObjCFrontendDispatcherImplementationGenerator.generate_output):

Source/WebCore:

Replace uses of FrontendChannel with FrontendRouter. Minor code cleanup along the way.

No new tests, no behavior changed.

* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* inspector/InspectorApplicationCacheAgent.cpp:
(WebCore::InspectorApplicationCacheAgent::didCreateFrontendAndBackend):
* inspector/InspectorApplicationCacheAgent.h:
* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::didCreateFrontendAndBackend):
* inspector/InspectorCSSAgent.h:
* inspector/InspectorController.cpp:
(WebCore::InspectorController::connectFrontend):
(WebCore::InspectorController::~InspectorController): No need to call discardAgents().
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::didCreateFrontendAndBackend):
* inspector/InspectorDOMAgent.h:
* inspector/InspectorDOMDebuggerAgent.cpp:
(WebCore::InspectorDOMDebuggerAgent::didCreateFrontendAndBackend):
* inspector/InspectorDOMDebuggerAgent.h:
* inspector/InspectorDOMStorageAgent.cpp:
(WebCore::InspectorDOMStorageAgent::didCreateFrontendAndBackend):
* inspector/InspectorDOMStorageAgent.h:
* inspector/InspectorDatabaseAgent.cpp:
(WebCore::InspectorDatabaseAgent::didCreateFrontendAndBackend):
* inspector/InspectorDatabaseAgent.h:
* inspector/InspectorForwarding.h: Removed.
* inspector/InspectorIndexedDBAgent.cpp:
(WebCore::InspectorIndexedDBAgent::didCreateFrontendAndBackend):
* inspector/InspectorIndexedDBAgent.h:
* inspector/InspectorLayerTreeAgent.cpp:
(WebCore::InspectorLayerTreeAgent::didCreateFrontendAndBackend):
* inspector/InspectorLayerTreeAgent.h:
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::didCreateFrontendAndBackend):
* inspector/InspectorPageAgent.h:
* inspector/InspectorReplayAgent.cpp:
(WebCore::InspectorReplayAgent::didCreateFrontendAndBackend):
* inspector/InspectorReplayAgent.h:
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::didCreateFrontendAndBackend):
* inspector/InspectorResourceAgent.h:
* inspector/InspectorTimelineAgent.cpp:
(WebCore::InspectorTimelineAgent::didCreateFrontendAndBackend):
* inspector/InspectorTimelineAgent.h:
* inspector/InspectorWebAgentBase.h:
* inspector/InspectorWorkerAgent.cpp:
(WebCore::InspectorWorkerAgent::didCreateFrontendAndBackend):
* inspector/InspectorWorkerAgent.h:
* inspector/PageRuntimeAgent.cpp:
(WebCore::PageRuntimeAgent::didCreateFrontendAndBackend):
* inspector/PageRuntimeAgent.h:
* inspector/WorkerInspectorController.cpp:
(WebCore::WorkerInspectorController::connectFrontend):
* inspector/WorkerInspectorController.h:
* inspector/WorkerRuntimeAgent.cpp:
(WebCore::WorkerRuntimeAgent::didCreateFrontendAndBackend):
* inspector/WorkerRuntimeAgent.h:
* page/PageDebuggable.cpp:
* testing/Internals.cpp:

Source/WebKit/mac:

* WebCoreSupport/WebInspectorClient.h: Clean up the forward declarations, don't use InspectorForwarding.h.
* WebCoreSupport/WebInspectorClient.mm:
(WebInspectorClient::openInspectorFrontend):

Source/WebKit/win:

Stop using InspectorForwarding.h.

* WebCoreSupport/WebInspectorClient.h:

Source/WebKit2:

Stop using InspectorForwarding.h.

* WebProcess/WebPage/WebInspector.h:
* WebProcess/WebPage/WebInspectorUI.h:

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

4 years agoAdd a new ResourceLoaderOption to avoid page defers loading mechanisms for inspector
commit-queue@webkit.org [Sat, 5 Sep 2015 08:47:22 +0000 (08:47 +0000)]
Add a new ResourceLoaderOption to avoid page defers loading mechanisms for inspector
https://bugs.webkit.org/show_bug.cgi?id=148727

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-09-05
Reviewed by Antti Koivisto.

This will be tested shortly by inspector tests.

* loader/ResourceLoaderOptions.h:
(WebCore::ResourceLoaderOptions::ResourceLoaderOptions):
(WebCore::ResourceLoaderOptions::defersLoadingPolicy):
(WebCore::ResourceLoaderOptions::setDefersLoadingPolicy):
Add a new policy for defers loading. The default is to allow defers loading.

* loader/ResourceLoader.cpp:
(WebCore::ResourceLoader::ResourceLoader):
(WebCore::ResourceLoader::init):
(WebCore::ResourceLoader::setDefersLoading):
Respect the defers loading policy whenever we would set defers loading status.

* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::loadResource):
Switch from incorrectly changing the defersLoading state of the loader
to setting an option to disallow defers loading entirely for the loader.

* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::startLoadingMainResource):
* loader/MediaResourceLoader.cpp:
(WebCore::MediaResourceLoader::start):
* loader/NetscapePlugInStreamLoader.cpp:
(WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::requestUserCSSStyleSheet):
(WebCore::CachedResourceLoader::defaultCachedResourceOptions):
* loader/icon/IconLoader.cpp:
(WebCore::IconLoader::startLoading):
* platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp:
(WebCore::WebCoreAVCFResourceLoader::startLoading):
* platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm:
(WebCore::WebCoreAVFResourceLoader::startLoading):
Add the new value to instance of the longhand ResourceLoaderOptions constructor.

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

4 years ago[ES6] Enable ES6 Module in JSC shell by default
utatane.tea@gmail.com [Sat, 5 Sep 2015 07:44:35 +0000 (07:44 +0000)]
[ES6] Enable ES6 Module in JSC shell by default
https://bugs.webkit.org/show_bug.cgi?id=148689

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

Enable ES6 Modules in JSC shell by default. Compile time flag is left for WebCore.
Since the entry point to evaluate the modules are completely separated from the usual
entry point to evaluate the script, we can safely enable ES6 modules in JSC shell.

And add bunch of tests for ES6 Modules.

* jsc.cpp:
(GlobalObject::finishCreation):
(functionLoadModule):
(runWithScripts):
(printUsageStatement): Deleted.
(CommandLine::parseArguments): Deleted.
* parser/Parser.cpp:
(JSC::Parser<LexerType>::parseInner): Deleted.
* tests/modules.yaml: Added.
* tests/modules/aliasing.js: Added.
* tests/modules/aliasing/drink-2.js: Added.
(export.let.Cappuccino.string_appeared_here.export.changeCappuccino):
* tests/modules/aliasing/drink.js: Added.
(export.changeCocoa):
* tests/modules/cyclic-may-produce-tdz.js: Added.
* tests/modules/cyclic-may-produce-tdz/1.js: Added.
* tests/modules/cyclic-may-produce-tdz/2.js: Added.
* tests/modules/default-error/main.js: Added.
* tests/modules/default-value-case-should-be-copied.js: Added.
* tests/modules/default-value-case-should-be-copied/module.js: Added.
(export.changeValue):
* tests/modules/defaults.js: Added.
* tests/modules/defaults/Cappuccino.js: Added.
* tests/modules/defaults/Cocoa.js: Added.
(export.default.Cocoa):
* tests/modules/defaults/Matcha.js: Added.
* tests/modules/destructuring-export.js: Added.
* tests/modules/destructuring-export/array.js: Added.
* tests/modules/destructuring-export/main.js: Added.
* tests/modules/execution-order-cyclic.js: Added.
* tests/modules/execution-order-cyclic/1.js: Added.
* tests/modules/execution-order-cyclic/10.js: Added.
* tests/modules/execution-order-cyclic/11.js: Added.
* tests/modules/execution-order-cyclic/2.js: Added.
* tests/modules/execution-order-cyclic/3.js: Added.
* tests/modules/execution-order-cyclic/4.js: Added.
* tests/modules/execution-order-cyclic/5.js: Added.
* tests/modules/execution-order-cyclic/6.js: Added.
* tests/modules/execution-order-cyclic/7.js: Added.
* tests/modules/execution-order-cyclic/8.js: Added.
* tests/modules/execution-order-cyclic/9.js: Added.
* tests/modules/execution-order-dag.js: Added.
* tests/modules/execution-order-dag/1.js: Added.
* tests/modules/execution-order-dag/10.js: Added.
* tests/modules/execution-order-dag/2.js: Added.
* tests/modules/execution-order-dag/3.js: Added.
* tests/modules/execution-order-dag/4.js: Added.
* tests/modules/execution-order-dag/5.js: Added.
* tests/modules/execution-order-dag/6.js: Added.
* tests/modules/execution-order-dag/7.js: Added.
* tests/modules/execution-order-dag/8.js: Added.
* tests/modules/execution-order-dag/9.js: Added.
* tests/modules/execution-order-depth.js: Added.
* tests/modules/execution-order-depth/1.js: Added.
* tests/modules/execution-order-depth/2.js: Added.
* tests/modules/execution-order-depth/3.js: Added.
* tests/modules/execution-order-self.js: Added.
* tests/modules/execution-order-sibling.js: Added.
* tests/modules/execution-order-sibling/1.js: Added.
* tests/modules/execution-order-sibling/2.js: Added.
* tests/modules/execution-order-sibling/3.js: Added.
* tests/modules/execution-order-tree.js: Added.
* tests/modules/execution-order-tree/1.js: Added.
* tests/modules/execution-order-tree/10.js: Added.
* tests/modules/execution-order-tree/11.js: Added.
* tests/modules/execution-order-tree/2.js: Added.
* tests/modules/execution-order-tree/3.js: Added.
* tests/modules/execution-order-tree/4.js: Added.
* tests/modules/execution-order-tree/5.js: Added.
* tests/modules/execution-order-tree/6.js: Added.
* tests/modules/execution-order-tree/7.js: Added.
* tests/modules/execution-order-tree/8.js: Added.
* tests/modules/execution-order-tree/9.js: Added.
* tests/modules/export-conflict-ok.js: Added.
* tests/modules/export-conflict-ok/A.js: Added.
* tests/modules/export-conflict-ok/B.js: Added.
* tests/modules/export-conflict-ok/main.js: Added.
* tests/modules/export-from.js: Added.
* tests/modules/export-from/main.js: Added.
* tests/modules/export-from/second.js: Added.
* tests/modules/export-with-declarations-list.js: Added.
* tests/modules/export-with-declarations-list/main.js: Added.
* tests/modules/exported-function-may-be-called-before-module-is-executed.js: Added.
* tests/modules/exported-function-may-be-called-before-module-is-executed/1.js: Added.
* tests/modules/exported-function-may-be-called-before-module-is-executed/2.js: Added.
(export.add):
(export.raise):
* tests/modules/import-error.js: Added.
* tests/modules/import-error/export-ambiguous-1.js: Added.
* tests/modules/import-error/export-ambiguous-2.js: Added.
* tests/modules/import-error/export-ambiguous.js: Added.
* tests/modules/import-error/export-default-from-star-2.js: Added.
(export.default.Cocoa):
* tests/modules/import-error/export-default-from-star.js: Added.
* tests/modules/import-error/export-not-found.js: Added.
* tests/modules/import-error/import-ambiguous.js: Added.
* tests/modules/import-error/import-default-from-star.js: Added.
* tests/modules/import-error/import-not-found.js: Added.
* tests/modules/imported-bindings-are-immutable.js: Added.
* tests/modules/imported-bindings-are-immutable/bindings.js: Added.
(export.functionDeclaration):
(export.classDeclaration):
* tests/modules/imported-bindings-can-be-changed-in-original-module.js: Added.
* tests/modules/imported-bindings-can-be-changed-in-original-module/bindings.js: Added.
* tests/modules/indirect-export-error.js: Added.
* tests/modules/indirect-export-error/indirect-export-ambiguous-2.js: Added.
* tests/modules/indirect-export-error/indirect-export-ambiguous-3.js: Added.
* tests/modules/indirect-export-error/indirect-export-ambiguous-4.js: Added.
* tests/modules/indirect-export-error/indirect-export-ambiguous.js: Added.
* tests/modules/indirect-export-error/indirect-export-default-2.js: Added.
* tests/modules/indirect-export-error/indirect-export-default-3.js: Added.
(export.default.Cocoa):
* tests/modules/indirect-export-error/indirect-export-default.js: Added.
* tests/modules/indirect-export-error/indirect-export-not-found-2.js: Added.
* tests/modules/indirect-export-error/indirect-export-not-found.js: Added.
* tests/modules/module-eval.js: Added.
* tests/modules/module-eval/A.js: Added.
* tests/modules/module-eval/B.js: Added.
* tests/modules/module-eval/drink.js: Added.
* tests/modules/module-is-strict-code.js: Added.
* tests/modules/namespace-ambiguous.js: Added.
* tests/modules/namespace-ambiguous/ambiguous-2.js: Added.
* tests/modules/namespace-ambiguous/ambiguous-3.js: Added.
* tests/modules/namespace-ambiguous/ambiguous-4.js: Added.
* tests/modules/namespace-ambiguous/ambiguous.js: Added.
* tests/modules/namespace-error.js: Added.
* tests/modules/namespace-error/namespace-local-error-should-hide-global-ambiguity-2.js: Added.
* tests/modules/namespace-error/namespace-local-error-should-hide-global-ambiguity-3.js: Added.
* tests/modules/namespace-error/namespace-local-error-should-hide-global-ambiguity-4.js: Added.
* tests/modules/namespace-error/namespace-local-error-should-hide-global-ambiguity-5.js: Added.
* tests/modules/namespace-error/namespace-local-error-should-hide-global-ambiguity-6.js: Added.
* tests/modules/namespace-error/namespace-local-error-should-hide-global-ambiguity-7.js: Added.
* tests/modules/namespace-error/namespace-local-error-should-hide-global-ambiguity.js: Added.
* tests/modules/namespace-tdz.js: Added.
* tests/modules/namespace-tdz/A.js: Added.
* tests/modules/namespace-tdz/B.js: Added.
(export.later):
* tests/modules/namespace-tdz/main.js: Added.
* tests/modules/namespace.js: Added.
* tests/modules/namespace/additional-drink.js: Added.
* tests/modules/namespace/drink.js: Added.
(export.default.changeCappuccino):
* tests/modules/namespace/more-additional-drink.js: Added.
* tests/modules/resources/assert.js: Added.
(export.shouldBe):
(export.shouldThrow):
* tests/modules/scopes.js: Added.
* tests/modules/scopes/additional-drink.js: Added.
* tests/modules/scopes/drink.js: Added.
(export.default.changeCappuccino):
* tests/modules/scopes/more-additional-drink.js: Added.
* tests/modules/this-should-be-undefined.js: Added.
* tests/stress/modules-syntax-error-with-names.js:
* tests/stress/modules-syntax-error.js:
* tests/stress/modules-syntax.js:

Tools:

* Scripts/run-javascriptcore-tests:
(runJSCStressTests):
* Scripts/run-jsc-stress-tests:

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

4 years agoFix lint warnings on iOS.
ap@apple.com [Sat, 5 Sep 2015 07:29:46 +0000 (07:29 +0000)]
Fix lint warnings on iOS.

This enables the correct expectation for fast/events/scroll-in-scaled-page-with-overflow-hidden.html.
For other tests, I went with the expectation that was currently in effect.

Re-landing, as this had to be rolled out together with another patch.

* platform/ios-simulator-wk1/TestExpectations:
* platform/ios-simulator-wk2/TestExpectations:
* platform/ios-simulator/TestExpectations:

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

4 years ago[ES6] Implement ModuleNamespaceObject
utatane.tea@gmail.com [Sat, 5 Sep 2015 07:22:54 +0000 (07:22 +0000)]
[ES6] Implement ModuleNamespaceObject
https://bugs.webkit.org/show_bug.cgi?id=148705

Reviewed by Geoffrey Garen.

Implement Module namespace object.
That is used when importing the module with the form `import * as namespace from "mod"`.
The module namespace object is non-extensible object that has the bindings to the original module
as the property.

* CMakeLists.txt:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
* JavaScriptCore.xcodeproj/project.pbxproj:
* runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
(JSC::JSGlobalObject::visitChildren):
* runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::moduleNamespaceObjectStructure):
* runtime/JSModuleNamespaceObject.cpp: Added.
(JSC::JSModuleNamespaceObject::JSModuleNamespaceObject):
(JSC::JSModuleNamespaceObject::finishCreation):
(JSC::JSModuleNamespaceObject::destroy):
(JSC::JSModuleNamespaceObject::visitChildren):
(JSC::callbackGetter):
(JSC::JSModuleNamespaceObject::getOwnPropertySlot):
(JSC::JSModuleNamespaceObject::put):
(JSC::JSModuleNamespaceObject::putByIndex):
(JSC::JSModuleNamespaceObject::deleteProperty):
(JSC::JSModuleNamespaceObject::getOwnPropertyNames):
(JSC::JSModuleNamespaceObject::defineOwnProperty):
(JSC::moduleNamespaceObjectSymbolIterator):
* runtime/JSModuleNamespaceObject.h: Added.
(JSC::JSModuleNamespaceObject::create):
(JSC::JSModuleNamespaceObject::createStructure):
(JSC::JSModuleNamespaceObject::moduleRecord):
* runtime/JSModuleRecord.cpp:
(JSC::JSModuleRecord::visitChildren):
(JSC::getExportedNames):
(JSC::JSModuleRecord::getModuleNamespace):
(JSC::JSModuleRecord::instantiateDeclarations):
* runtime/JSModuleRecord.h:

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

4 years agoUnreviewed, rolling out r189372 and r189403.
commit-queue@webkit.org [Sat, 5 Sep 2015 07:18:21 +0000 (07:18 +0000)]
Unreviewed, rolling out r189372 and r189403.
https://bugs.webkit.org/show_bug.cgi?id=148892

[iOS] All the media tests fail (Requested by ap on #webkit).

Reverted changesets:

"Unreviewed gardening; enabling media/ and http/tests/media/
tests (with expected failures) on ios-simulator"
http://trac.webkit.org/changeset/189372

"Fix lint warnings on iOS."
http://trac.webkit.org/changeset/189403

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

4 years agoRename members of CanvasRenderingContext2D::State
mmaxfield@apple.com [Sat, 5 Sep 2015 06:44:56 +0000 (06:44 +0000)]
Rename members of CanvasRenderingContext2D::State
https://bugs.webkit.org/show_bug.cgi?id=148889

Reviewed by Tim Horton.

CanvasRenderingContext2D::State is a struct, so its members should not start with m_.

No new tests because there is no behavior change.

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::State::State):
(WebCore::CanvasRenderingContext2D::State::operator=):
(WebCore::CanvasRenderingContext2D::restore):
(WebCore::CanvasRenderingContext2D::setStrokeStyle):
(WebCore::CanvasRenderingContext2D::setFillStyle):
(WebCore::CanvasRenderingContext2D::lineWidth):
(WebCore::CanvasRenderingContext2D::setLineWidth):
(WebCore::CanvasRenderingContext2D::lineCap):
(WebCore::CanvasRenderingContext2D::setLineCap):
(WebCore::CanvasRenderingContext2D::lineJoin):
(WebCore::CanvasRenderingContext2D::setLineJoin):
(WebCore::CanvasRenderingContext2D::miterLimit):
(WebCore::CanvasRenderingContext2D::setMiterLimit):
(WebCore::CanvasRenderingContext2D::shadowOffsetX):
(WebCore::CanvasRenderingContext2D::setShadowOffsetX):
(WebCore::CanvasRenderingContext2D::shadowOffsetY):
(WebCore::CanvasRenderingContext2D::setShadowOffsetY):
(WebCore::CanvasRenderingContext2D::shadowBlur):
(WebCore::CanvasRenderingContext2D::setShadowBlur):
(WebCore::CanvasRenderingContext2D::shadowColor):
(WebCore::CanvasRenderingContext2D::setShadowColor):
(WebCore::CanvasRenderingContext2D::getLineDash):
(WebCore::CanvasRenderingContext2D::setLineDash):
(WebCore::CanvasRenderingContext2D::setWebkitLineDash):
(WebCore::CanvasRenderingContext2D::lineDashOffset):
(WebCore::CanvasRenderingContext2D::setLineDashOffset):
(WebCore::CanvasRenderingContext2D::applyLineDash):
(WebCore::CanvasRenderingContext2D::globalAlpha):
(WebCore::CanvasRenderingContext2D::setGlobalAlpha):
(WebCore::CanvasRenderingContext2D::globalCompositeOperation):
(WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation):
(WebCore::CanvasRenderingContext2D::scale):
(WebCore::CanvasRenderingContext2D::rotate):
(WebCore::CanvasRenderingContext2D::translate):
(WebCore::CanvasRenderingContext2D::transform):
(WebCore::CanvasRenderingContext2D::setTransform):
(WebCore::CanvasRenderingContext2D::setStrokeColor):
(WebCore::CanvasRenderingContext2D::setFillColor):
(WebCore::CanvasRenderingContext2D::fillInternal):
(WebCore::CanvasRenderingContext2D::strokeInternal):
(WebCore::CanvasRenderingContext2D::clipInternal):
(WebCore::CanvasRenderingContext2D::isPointInPathInternal):
(WebCore::CanvasRenderingContext2D::isPointInStrokeInternal):
(WebCore::CanvasRenderingContext2D::clearRect):
(WebCore::CanvasRenderingContext2D::fillRect):
(WebCore::CanvasRenderingContext2D::strokeRect):
(WebCore::CanvasRenderingContext2D::setShadow):
(WebCore::CanvasRenderingContext2D::applyShadow):
(WebCore::CanvasRenderingContext2D::shouldDrawShadows):
(WebCore::CanvasRenderingContext2D::drawImage):
(WebCore::CanvasRenderingContext2D::transformAreaToDevice):
(WebCore::CanvasRenderingContext2D::rectContainsCanvas):
(WebCore::CanvasRenderingContext2D::compositeBuffer):
(WebCore::CanvasRenderingContext2D::didDraw):
(WebCore::CanvasRenderingContext2D::drawFocusIfNeededInternal):
(WebCore::CanvasRenderingContext2D::font):
(WebCore::CanvasRenderingContext2D::setFont):
(WebCore::CanvasRenderingContext2D::textAlign):
(WebCore::CanvasRenderingContext2D::setTextAlign):
(WebCore::CanvasRenderingContext2D::textBaseline):
(WebCore::CanvasRenderingContext2D::setTextBaseline):
(WebCore::CanvasRenderingContext2D::direction):
(WebCore::CanvasRenderingContext2D::setDirection):
(WebCore::CanvasRenderingContext2D::drawTextInternal):
(WebCore::CanvasRenderingContext2D::inflateStrokeRect):
(WebCore::CanvasRenderingContext2D::imageSmoothingEnabled):
(WebCore::CanvasRenderingContext2D::setImageSmoothingEnabled):
* html/canvas/CanvasRenderingContext2D.h:

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

4 years agoAdd expectation for some tests that are very flaky on Windows.
ap@apple.com [Sat, 5 Sep 2015 06:35:23 +0000 (06:35 +0000)]
Add expectation for some tests that are very flaky on Windows.

* platform/win/TestExpectations:

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

4 years agoGet rid of unneeded TestExpectations files.
ap@apple.com [Sat, 5 Sep 2015 06:11:11 +0000 (06:11 +0000)]
Get rid of unneeded TestExpectations files.

* platform/mac-mavericks/TestExpectations: Removed.
* platform/mac-yosemite/TestExpectations: Removed.
* platform/mac/TestExpectations:

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

4 years agoREGRESSION (r189407): webgl/1.0.3/conformance/extensions/webgl-draw-buffers.html
ap@apple.com [Sat, 5 Sep 2015 05:58:14 +0000 (05:58 +0000)]
REGRESSION (r189407): webgl/1.0.3/conformance/extensions/webgl-draw-buffers.html
fails on Mavericks.

* platform/mac/TestExpectations: Mark it as such.

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

4 years agoNewly imported http/tests/w3c/html/semantics/forms/textfieldselection/selection.html
ap@apple.com [Sat, 5 Sep 2015 05:49:17 +0000 (05:49 +0000)]
Newly imported http/tests/w3c/html/semantics/forms/textfieldselection/selection.html
is flaky.

* TestExpectations: Mark it as such.

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

4 years agoUpdate expectations for color input tests, which don't work in Mac WebKit1.
ap@apple.com [Sat, 5 Sep 2015 05:43:36 +0000 (05:43 +0000)]
Update expectations for color input tests, which don't work in Mac WebKit1.

* TestExpectations:
* platform/mac-wk1/TestExpectations:

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

4 years agoCrash when font completes downloading after calling 2D canvas setText() multiple...
mmaxfield@apple.com [Sat, 5 Sep 2015 05:33:16 +0000 (05:33 +0000)]
Crash when font completes downloading after calling 2D canvas setText() multiple times
https://bugs.webkit.org/show_bug.cgi?id=148789

Reviewed by Darin Adler.

Source/WebCore:

The CSSFontSelector has a list of clients, and when fonts complete downloading, these
clients get a call back. CanvasRenderingContext2D::State is one such of these clients. However,
the CSSFontSelector may be destroyed and recreated at any time. We were getting into a case
where multiple CSSFontSelectors were thinking that the same CanvasRenderingContext2D::State were
their client. When the CanvasRenderingContext2D::State was destroyed, it only unregistered
itself from one of the CSSFontSelectors, which means the CSSFontSelector left over has a dangling
pointer to it.

The solution is to implement a new helper class, FontProxy, to hold the
CanvasRenderingContext2D::State's font, and maintain the invariant that this object is always
registered to exactly one CSSFontSelector, and this CSSFontSelector is the one which is associated
with the FontProxy's FontCascade object. This patch maintains this invariant, as well as protecting
all access to the State's FontCascade object so no one can reach in and change it without going
through functions which maintain the invariant.

Test: fast/canvas/font-selector-crash.html

* css/CSSFontSelector.cpp:
(WebCore::CSSFontSelector::registerForInvalidationCallbacks):
(WebCore::CSSFontSelector::unregisterForInvalidationCallbacks):
(WebCore::CSSFontSelector::dispatchInvalidationCallbacks):
* css/CSSFontSelector.h:
* dom/Document.cpp:
(WebCore::Document::fontsNeedUpdate):
(WebCore::Document::fontSelector):
(WebCore::Document::clearStyleResolver):
* dom/Document.h:
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::State::State):
(WebCore::CanvasRenderingContext2D::State::operator=):
(WebCore::CanvasRenderingContext2D::FontProxy::~FontProxy):
(WebCore::CanvasRenderingContext2D::FontProxy::FontProxy):
(WebCore::CanvasRenderingContext2D::FontProxy::update):
(WebCore::CanvasRenderingContext2D::FontProxy::fontsNeedUpdate):
(WebCore::CanvasRenderingContext2D::FontProxy::initialize):
(WebCore::CanvasRenderingContext2D::FontProxy::fontMetrics):
(WebCore::CanvasRenderingContext2D::FontProxy::fontDescription):
(WebCore::CanvasRenderingContext2D::FontProxy::width):
(WebCore::CanvasRenderingContext2D::FontProxy::drawBidiText):
(WebCore::CanvasRenderingContext2D::font):
(WebCore::CanvasRenderingContext2D::setFont):
(WebCore::CanvasRenderingContext2D::measureText):
(WebCore::CanvasRenderingContext2D::drawTextInternal):
(WebCore::CanvasRenderingContext2D::State::~State): Deleted.
(WebCore::CanvasRenderingContext2D::State::fontsNeedUpdate): Deleted.
(WebCore::CanvasRenderingContext2D::accessFont): Deleted.
* html/canvas/CanvasRenderingContext2D.h:
* platform/graphics/FontSelector.h:

LayoutTests:

* fast/canvas/font-selector-crash-expected.txt: Added.
* fast/canvas/font-selector-crash.html: Added.
* fast/canvas/resources/font-selector-crash.ttf: Added.

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

4 years agoWeb Inspector: combine Test.html resources to make tests run faster
bburg@apple.com [Sat, 5 Sep 2015 05:29:36 +0000 (05:29 +0000)]
Web Inspector: combine Test.html resources to make tests run faster
https://bugs.webkit.org/show_bug.cgi?id=148726

Reviewed by Timothy Hatcher.

In an attempt to make inspector tests run faster, always combine resources
on the Test.html page. This cuts down from 110+ resource loads to 5 loads.

To avoid name clashes, add the 'Combined' suffix to files that would clash
with uncombined Test resources, and add the 'Test' prefix when combining
or minifying files that would clash with production minification. So, it
would be possible for Main.html and Test.html to have different minified
versions of CodeMirror or other external libraries if they use different
subsets.

Combining is unlikely to make debugging tests more difficult, since almost
all test code is marshalled and eval'd into existence anyway.

* Configurations/WebInspectorUIFramework.xcconfig:
* Scripts/combine-resources.pl: Drive-by spelling.
(concatenateFiles):
(concatinateFiles): Deleted.
* Scripts/copy-user-interface-resources-dryrun.rb:
* Scripts/copy-user-interface-resources.pl:

    Drive-by spelling. Add a new code path for combining Test resources, which
    doesn't require minification or handling CSS, images, or most externals.

* WebInspectorUI.vcxproj/build-webinspectorui.pl:

    Always combine Test.html, but also ditto everything into place for
    engineering builds.

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

4 years agoUnreviewed, rolling out r189386.
commit-queue@webkit.org [Sat, 5 Sep 2015 05:29:24 +0000 (05:29 +0000)]
Unreviewed, rolling out r189386.
https://bugs.webkit.org/show_bug.cgi?id=148883

Made several event dispatch tests assert (Requested by ap on
#webkit).

Reverted changeset:

"dispatchEvent() should throw an InvalidStateError if the
event's initialized flag is not set"
https://bugs.webkit.org/show_bug.cgi?id=148800
http://trac.webkit.org/changeset/189386

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

4 years agoRepaint cleanup:
zalan@apple.com [Sat, 5 Sep 2015 04:20:54 +0000 (04:20 +0000)]
Repaint cleanup:

layer-child-outline.html -> reftest
layer-full-repaint.html -> reftest
layer-hide-when-needs-layout.html -> reftest
layer-visibility.html -> reftest
layout-state-only-positioned.html -> reftest
layout-state-relative.html -> reftest
layout-state-scrolloffset.html -> reftest
layout-state-scrolloffset2.html -> reftest
layout-state-scrolloffset3.html -> reftest

* fast/repaint/layer-child-outline-expected.html: Added.
* fast/repaint/layer-child-outline.html:
* fast/repaint/layer-full-repaint-expected.html: Added.
* fast/repaint/layer-full-repaint-expected.txt: Removed.
* fast/repaint/layer-full-repaint.html:
* fast/repaint/layer-hide-when-needs-layout-expected.html: Added.
* fast/repaint/layer-hide-when-needs-layout-expected.png: Removed.
* fast/repaint/layer-hide-when-needs-layout-expected.txt: Removed.
* fast/repaint/layer-hide-when-needs-layout.html:
* fast/repaint/layer-visibility-expected.html: Added.
* fast/repaint/layer-visibility-expected.png: Removed.
* fast/repaint/layer-visibility-expected.txt: Removed.
* fast/repaint/layer-visibility.html:
* fast/repaint/layout-state-only-positioned-expected.html: Added.
* fast/repaint/layout-state-only-positioned-expected.txt: Removed.
* fast/repaint/layout-state-only-positioned.html:
* fast/repaint/layout-state-relative-expected.html: Added.
* fast/repaint/layout-state-relative.html:
* fast/repaint/layout-state-scrolloffset-expected.html: Added.
* fast/repaint/layout-state-scrolloffset.html:
* fast/repaint/layout-state-scrolloffset2-expected.html: Added.
* fast/repaint/layout-state-scrolloffset2.html:
* fast/repaint/layout-state-scrolloffset3-expected.html: Added.
* fast/repaint/layout-state-scrolloffset3.html:
* platform/efl/fast/repaint/layer-child-outline-expected.png: Removed.
* platform/efl/fast/repaint/layer-child-outline-expected.txt: Removed.
* platform/efl/fast/repaint/layout-state-only-positioned-expected.png: Removed.
* platform/efl/fast/repaint/layout-state-relative-expected.png: Removed.
* platform/efl/fast/repaint/layout-state-relative-expected.txt: Removed.
* platform/efl/fast/repaint/layout-state-scrolloffset-expected.png: Removed.
* platform/efl/fast/repaint/layout-state-scrolloffset-expected.txt: Removed.
* platform/efl/fast/repaint/layout-state-scrolloffset2-expected.png: Removed.
* platform/efl/fast/repaint/layout-state-scrolloffset2-expected.txt: Removed.
* platform/efl/fast/repaint/layout-state-scrolloffset3-expected.png: Removed.
* platform/efl/fast/repaint/layout-state-scrolloffset3-expected.txt: Removed.
* platform/gtk/fast/repaint/layer-child-outline-expected.png: Removed.
* platform/gtk/fast/repaint/layer-child-outline-expected.txt: Removed.
* platform/gtk/fast/repaint/layout-state-only-positioned-expected.png: Removed.
* platform/gtk/fast/repaint/layout-state-relative-expected.png: Removed.
* platform/gtk/fast/repaint/layout-state-relative-expected.txt: Removed.
* platform/gtk/fast/repaint/layout-state-scrolloffset-expected.png: Removed.
* platform/gtk/fast/repaint/layout-state-scrolloffset-expected.txt: Removed.
* platform/gtk/fast/repaint/layout-state-scrolloffset2-expected.png: Removed.
* platform/gtk/fast/repaint/layout-state-scrolloffset2-expected.txt: Removed.
* platform/gtk/fast/repaint/layout-state-scrolloffset3-expected.png: Removed.
* platform/gtk/fast/repaint/layout-state-scrolloffset3-expected.txt: Removed.
* platform/mac-wk2/fast/repaint/layer-hide-when-needs-layout-expected.txt: Removed.
* platform/mac/fast/repaint/layer-child-outline-expected.png: Removed.
* platform/mac/fast/repaint/layer-child-outline-expected.txt: Removed.
* platform/mac/fast/repaint/layer-hide-when-needs-layout-expected.png: Removed.
* platform/mac/fast/repaint/layer-visibility-expected.png: Removed.
* platform/mac/fast/repaint/layout-state-only-positioned-expected.png: Removed.
* platform/mac/fast/repaint/layout-state-relative-expected.png: Removed.
* platform/mac/fast/repaint/layout-state-relative-expected.txt: Removed.
* platform/mac/fast/repaint/layout-state-scrolloffset-expected.png: Removed.
* platform/mac/fast/repaint/layout-state-scrolloffset-expected.txt: Removed.
* platform/mac/fast/repaint/layout-state-scrolloffset2-expected.png: Removed.
* platform/mac/fast/repaint/layout-state-scrolloffset2-expected.txt: Removed.
* platform/mac/fast/repaint/layout-state-scrolloffset3-expected.png: Removed.
* platform/mac/fast/repaint/layout-state-scrolloffset3-expected.txt: Removed.
* platform/win/fast/repaint/layer-child-outline-expected.txt: Removed.
* platform/win/fast/repaint/layout-state-relative-expected.txt: Removed.
* platform/win/fast/repaint/layout-state-scrolloffset-expected.txt: Removed.
* platform/win/fast/repaint/layout-state-scrolloffset2-expected.txt: Removed.
* platform/win/fast/repaint/layout-state-scrolloffset3-expected.txt: Removed.

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

4 years agoRollout r189411, r189413: Broke JSC tests.
mark.lam@apple.com [Sat, 5 Sep 2015 03:10:23 +0000 (03:10 +0000)]
Rollout r189411, r189413: Broke JSC tests.

Not reviewed.

* API/tests/PingPongStackOverflowTest.cpp: Removed.
* API/tests/PingPongStackOverflowTest.h: Removed.
* API/tests/testapi.c:
(main):
* JavaScriptCore.xcodeproj/project.pbxproj:
* interpreter/CallFrame.h:
(JSC::ExecState::operator=):
(JSC::ExecState::callerFrame):
(JSC::ExecState::argIndexForRegister):
(JSC::ExecState::callerFrameOrVMEntryFrame):
(JSC::ExecState::callerFrameAndPC):
* interpreter/Interpreter.cpp:
(JSC::UnwindFunctor::UnwindFunctor):
(JSC::UnwindFunctor::operator()):
(JSC::Interpreter::unwind):
* interpreter/Interpreter.h:
(JSC::NativeCallFrameTracer::NativeCallFrameTracer):
(JSC::Interpreter::sampler):
* jit/CCallHelpers.h:
(JSC::CCallHelpers::jumpToExceptionHandler):
* jit/JITExceptions.cpp:
(JSC::genericUnwind):
* jit/JITExceptions.h:
* jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_catch):
* jit/JITOpcodes32_64.cpp:
(JSC::JIT::emit_op_catch):
* jit/JITOperations.cpp:
* llint/LowLevelInterpreter32_64.asm:
* llint/LowLevelInterpreter64.asm:
* runtime/VM.h:
(JSC::VM::exceptionOffset):
(JSC::VM::vmEntryFrameForThrowOffset):
(JSC::VM::topVMEntryFrameOffset):
(JSC::VM::callFrameForThrowOffset):

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

4 years agoWeb Inspector: Add tests for DOM highlight commands
commit-queue@webkit.org [Sat, 5 Sep 2015 02:38:42 +0000 (02:38 +0000)]
Web Inspector: Add tests for DOM highlight commands
https://bugs.webkit.org/show_bug.cgi?id=148786

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-09-04
Reviewed by Timothy Hatcher.

Source/WebCore:

Tests: inspector/dom/hideHighlight.html
       inspector/dom/highlightFrame.html
       inspector/dom/highlightNode.html
       inspector/dom/highlightQuad.html
       inspector/dom/highlightRect.html

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::highlightNode):
(WebCore::InspectorDOMAgent::highlightFrame):
Include an error if a frame is not found.

* inspector/InspectorOverlay.cpp:
(WebCore::InspectorOverlay::highlightQuad):
Should have been checking the usePageCoordinates state of the incoming
highlight configuration, not the one that will be replaced.

LayoutTests:

* inspector/dom/hideHighlight-expected.txt: Added.
* inspector/dom/hideHighlight.html: Added.
* inspector/dom/highlightFrame-expected.txt: Added.
* inspector/dom/highlightFrame.html: Added.
* inspector/dom/highlightNode-expected.txt: Added.
* inspector/dom/highlightNode.html: Added.
* inspector/dom/highlightQuad-expected.txt: Added.
* inspector/dom/highlightQuad.html: Added.
* inspector/dom/highlightRect-expected.txt: Added.
* inspector/dom/highlightRect.html: Added.
* inspector/dom/highlightSelector-expected.txt:
* inspector/dom/highlightSelector.html:
* inspector/dom/resources/highlight-iframe.html: Renamed from LayoutTests/inspector/dom/resources/highlightSelector-iframe.html.

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

4 years agoWeb Inspector: Test Runtime.saveResult and $n values
commit-queue@webkit.org [Sat, 5 Sep 2015 02:34:22 +0000 (02:34 +0000)]
Web Inspector: Test Runtime.saveResult and $n values
https://bugs.webkit.org/show_bug.cgi?id=148837

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-09-04
Reviewed by Timothy Hatcher.

Source/JavaScriptCore:

* inspector/InjectedScriptSource.js:
(InjectedScript.prototype._evaluateOn):
We don't need to be in the console object group to put the value
in the saved results list. That strong reference will ensure $n
values are always alive even if other object groups were used
when creating and subsequently released.

Source/WebInspectorUI:

* UserInterface/Protocol/InspectorBackend.js:
(InspectorBackendClass):
Initialize the dump logging function different if we are in tests or not.
When in tests, using console.log as well as dumping system activity to
the system console results in an infinite loop of logging!

(InspectorBackendClass.prototype.dispatch):
(InspectorBackendClass.prototype._sendCommandToBackendWithCallback):
Use the logging function we figured out earlier.

LayoutTests:

* inspector/runtime/parse.html: Remove unncessary debug flag.
* inspector/runtime/saveResult-expected.txt: Added.
* inspector/runtime/saveResult.html: Added.

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

4 years agoRemove unnecessary compiler guards from mm files
ossy@webkit.org [Sat, 5 Sep 2015 02:30:48 +0000 (02:30 +0000)]
Remove unnecessary compiler guards from mm files
https://bugs.webkit.org/show_bug.cgi?id=148797

Reviewed by Dan Bernstein.

Source/WebCore:

* bindings/objc/DOMInternal.mm:
* bridge/objc/objc_instance.mm:

Source/WebKit/mac:

* Plugins/WebBasePluginPackage.mm:
* Plugins/WebNetscapePluginPackage.mm:

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

4 years ago[Follow up] StackOverflow stack unwinding should stop at native frames.
mark.lam@apple.com [Sat, 5 Sep 2015 01:23:03 +0000 (01:23 +0000)]
[Follow up] StackOverflow stack unwinding should stop at native frames.
https://bugs.webkit.org/show_bug.cgi?id=148749

Rubber stamped by Michael Saboff.

Speculative fix for jsc test failure.

* interpreter/Interpreter.cpp:
(JSC::Interpreter::unwind):

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

4 years agoUnreviewed, land baseline for one of the newly imported w3c tests.
cdumez@apple.com [Sat, 5 Sep 2015 01:13:44 +0000 (01:13 +0000)]
Unreviewed, land baseline for one of the newly imported w3c tests.

* http/tests/w3c/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-insert-into-iframe-expected.txt: Added.

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

4 years agoStackOverflow stack unwinding should stop at native frames.
mark.lam@apple.com [Sat, 5 Sep 2015 01:03:45 +0000 (01:03 +0000)]
StackOverflow stack unwinding should stop at native frames.
https://bugs.webkit.org/show_bug.cgi?id=148749

Reviewed by Michael Saboff.

In the present code, after ping-pong'ing back and forth between native and JS
code a few times, if we have a stack overflow on re-entry into the VM to run
JS code's whose stack frame would overflow the JS stack, the code will end up
unwinding past the native function that is making the call to re-enter the VM.
As a result, any clean up code (e.g. destructors for stack variables) in the
skipped native function frame (and its chain of native function callers) will
not be called.

This patch is based on the Michael Saboff's fix of this issue landed on the
jsc-tailcall branch: http://trac.webkit.org/changeset/188555

We now check for the case where there are no JS frames to unwind since the
last native frame, and treat the exception as an unhandled exception.  The
native function is responsible for further propagating the exception if needed.

Other supporting work:
1. Remove vm->vmEntryFrameForThrow.  It should always be the same as
   vm->topVMEntryFrame.
2. Change operationThrowStackOverflowError() to use the throwStackOverflowError()
   helper function instead of rolling its own.
3. In the LLINT vm entry, set vm->topVMEntryFrame as soon as the entry frame is
   fully initialized (instead of waiting).  With this, we can always reliably
   tell which VMEntryFrame is on top.
4. Added a test that exercises this edge case.  The test should not hang or crash.

* API/tests/PingPongStackOverflowTest.cpp: Added.
(PingPongStackOverflowObject_hasInstance):
(testPingPongStackOverflow):
* API/tests/PingPongStackOverflowTest.h: Added.
* API/tests/testapi.c:
(main):
* JavaScriptCore.xcodeproj/project.pbxproj:
* interpreter/Interpreter.cpp:
(JSC::unwindCallFrame):
(JSC::getStackFrameCodeType):
(JSC::UnwindFunctor::UnwindFunctor):
(JSC::UnwindFunctor::operator()):
(JSC::Interpreter::unwind):
* interpreter/Interpreter.h:
(JSC::NativeCallFrameTracer::NativeCallFrameTracer):
(JSC::NativeCallFrameTracerWithRestore::NativeCallFrameTracerWithRestore):
(JSC::NativeCallFrameTracerWithRestore::~NativeCallFrameTracerWithRestore):
(JSC::Interpreter::sampler):
* jit/CCallHelpers.h:
(JSC::CCallHelpers::jumpToExceptionHandler):
* jit/JITExceptions.cpp:
(JSC::genericUnwind):
* jit/JITExceptions.h:
* jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_catch):
* jit/JITOpcodes32_64.cpp:
(JSC::JIT::emit_op_catch):
* jit/JITOperations.cpp:
* llint/LowLevelInterpreter32_64.asm:
* llint/LowLevelInterpreter64.asm:
* runtime/VM.h:
(JSC::VM::exceptionOffset):
(JSC::VM::callFrameForThrowOffset):
(JSC::VM::vmEntryFrameForThrowOffset): Deleted.
(JSC::VM::topVMEntryFrameOffset): Deleted.

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

4 years ago[iOS] Need a test for bug #145539: Uploading an animated GIF from the
jhoneycutt@apple.com [Sat, 5 Sep 2015 00:58:37 +0000 (00:58 +0000)]
[iOS] Need a test for bug #145539: Uploading an animated GIF from the
photo library uploads a JPEG
https://bugs.webkit.org/show_bug.cgi?id=148849

Reviewed by Daniel Bates.

* ManualTests/ios/image-file-uploads-as-original-type.html: Added.
On the Mac, file upload tests use EventSender::beginDragWithFiles. This
functionality doesn't exist on iOS, so we'll add a manual test.
This tests that the first few bytes of the selected file are "GIF".

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

4 years agoUnreviewed, change my email address.
basile_clement@apple.com [Sat, 5 Sep 2015 00:46:06 +0000 (00:46 +0000)]
Unreviewed, change my email address.

* Scripts/webkitpy/common/config/contributors.json:

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

4 years agoImport a Chromium <input type=color> test.
jhoneycutt@apple.com [Sat, 5 Sep 2015 00:34:08 +0000 (00:34 +0000)]
Import a Chromium <input type=color> test.
https://bugs.webkit.org/show_bug.cgi?id=148844

Reviewed by Andy Estes.

* fast/forms/color/color-suggestion-picker-crash-on-set-value-expected.txt: Added.
* fast/forms/color/color-suggestion-picker-crash-on-set-value.html: Added.

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

4 years ago[WebGL] Update WebGL 1.0.3 conformance tests
dino@apple.com [Sat, 5 Sep 2015 00:32:01 +0000 (00:32 +0000)]
[WebGL] Update WebGL 1.0.3 conformance tests
https://bugs.webkit.org/show_bug.cgi?id=148858
<rdar://problem/22588694>

Reviewed by Beth Dakin.

Update to the final version of the 1.0.3 WebGL conformance suite.
At the same time, unskip the tests (other than the one that crashes)
and check in results that we can use as progressions (later).

* platform/mac/TestExpectations:
* webgl/1.0.3/conformance/extensions/oes-texture-half-float-expected.txt:
* webgl/1.0.3/conformance/extensions/webgl-compressed-texture-size-limit-expected.txt:
* webgl/1.0.3/conformance/extensions/webgl-draw-buffers-expected.txt:
* webgl/1.0.3/conformance/glsl/misc/shader-struct-scope-expected.txt:
* webgl/1.0.3/conformance/glsl/misc/shaders-with-invariance-expected.txt:
* webgl/1.0.3/conformance/glsl/misc/shaders-with-name-conflicts-expected.txt:
* webgl/1.0.3/conformance/glsl/misc/struct-nesting-of-variable-names-expected.txt:
* webgl/1.0.3/conformance/renderbuffers/feedback-loop-expected.txt:
* webgl/1.0.3/conformance/textures/texture-copying-feedback-loops-expected.txt:
* webgl/1.0.3/resources/webgl_test_files/conformance/extensions/angle-instanced-arrays.html:
* webgl/1.0.3/resources/webgl_test_files/conformance/glsl/misc/shader-with-for-loop.html:
* webgl/1.0.3/resources/webgl_test_files/conformance/glsl/misc/ternary-operators-in-global-initializers.html:
* webgl/1.0.3/resources/webgl_test_files/conformance/misc/bad-arguments-test.html:
* webgl/1.0.3/resources/webgl_test_files/conformance/more/functions/uniformMatrixBadArgs.html:
* webgl/1.0.3/resources/webgl_test_files/conformance/more/unit.js:
* webgl/1.0.3/resources/webgl_test_files/conformance/ogles/ogles-utils.js:
(OpenGLESTestRunner):
* webgl/1.0.3/resources/webgl_test_files/conformance/textures/tex-image-with-invalid-data.html:
* webgl/1.0.3/resources/webgl_test_files/conformance/typedarrays/array-unit-tests.html:
* webgl/1.0.3/resources/webgl_test_files/conformance/typedarrays/resources/typed-array-worker.js:
(onmessage):
* webgl/1.0.3/resources/webgl_test_files/webgl-conformance-tests.html:

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

4 years agoForgot to mark these expectations.
bdakin@apple.com [Sat, 5 Sep 2015 00:23:50 +0000 (00:23 +0000)]
Forgot to mark these expectations.

* TestExpectations:
* platform/mac-wk2/TestExpectations:

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

4 years agoImplement the division and modulo instructions in WebAssembly
commit-queue@webkit.org [Sat, 5 Sep 2015 00:14:21 +0000 (00:14 +0000)]
Implement the division and modulo instructions in WebAssembly
https://bugs.webkit.org/show_bug.cgi?id=148791

Patch by Sukolsak Sakshuwong <sukolsak@gmail.com> on 2015-09-04
Reviewed by Geoffrey Garen.

This patch implements the unsigned division, signed modulo, and unsigned
modulo instructions for 32-bit integers in WebAssembly. It also
implements the context pool index instructions, which are needed for
testing. (pack-asmjs puts numbers that are used more than once in the
constant pool.)

* assembler/X86Assembler.h:
(JSC::X86Assembler::divl_r):
* tests/stress/wasm-arithmetic.js:
* tests/stress/wasm-arithmetic.wasm:
* wasm/WASMFunctionCompiler.h:
(JSC::operationMod):
(JSC::operationUnsignedDiv):
(JSC::operationUnsignedMod):
(JSC::WASMFunctionCompiler::buildBinaryI32):
(JSC::WASMFunctionCompiler::callOperation):
* wasm/WASMFunctionParser.cpp:
(JSC::WASMFunctionParser::parseExpressionI32):
(JSC::WASMFunctionParser::parseConstantPoolIndexExpressionI32):
* wasm/WASMFunctionParser.h:

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

4 years agoUnreviewed, add bug number for http/tests/w3c/html/semantics/embedded-content/the...
cdumez@apple.com [Sat, 5 Sep 2015 00:12:01 +0000 (00:12 +0000)]
Unreviewed, add bug number for http/tests/w3c/html/semantics/embedded-content/the-video-element/video_initially_paused.html

* TestExpectations:

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

4 years agoFix lint warnings on iOS.
ap@apple.com [Sat, 5 Sep 2015 00:06:03 +0000 (00:06 +0000)]
Fix lint warnings on iOS.

This enables the correct expectation for fast/events/scroll-in-scaled-page-with-overflow-hidden.html.
As for other tests, I went with the expectation that was currently in effect.

* platform/ios-simulator-wk1/TestExpectations:
* platform/ios-simulator-wk2/TestExpectations:
* platform/ios-simulator/TestExpectations:

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

4 years agoUnreviewed, add bug number for http/tests/w3c/html/semantics/embedded-content/the...
cdumez@apple.com [Fri, 4 Sep 2015 23:57:06 +0000 (23:57 +0000)]
Unreviewed, add bug number for http/tests/w3c/html/semantics/embedded-content/the-embed-element/embed-represent-nothing*.html

* TestExpectations:

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

4 years ago[mediacontrols] Test AirPlay picker button
eric.carlson@apple.com [Fri, 4 Sep 2015 23:50:17 +0000 (23:50 +0000)]
[mediacontrols] Test AirPlay picker button
https://bugs.webkit.org/show_bug.cgi?id=148836

Reviewed by Dean Jackson.

Source/WebCore:

Test: media/controls/airplay-picker.html

* Modules/mediacontrols/mediaControlsApple.js:
(Controller.prototype.getCurrentControlsStatus.elements.forEach.):
(Controller.prototype.getCurrentControlsStatus):

LayoutTests:

* media/controls/airplay-picker-expected.txt: New test.
* media/controls/airplay-picker.html: New results.

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

4 years agoShould have a test to make sure links don't navigate after a cancelled force
bdakin@apple.com [Fri, 4 Sep 2015 23:48:58 +0000 (23:48 +0000)]
Should have a test to make sure links don't navigate after a cancelled force
click
https://bugs.webkit.org/show_bug.cgi?id=148846

Reviewed by Tim Horton.

Tools:

New EventSender function for a started then cancelled force click.
* WebKitTestRunner/EventSenderProxy.h:
* WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:
* WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
(WTR::EventSendingController::mouseForceClick):
(WTR::EventSendingController::startAndCancelMouseForceClick):
(WTR::EventSendingController::mouseForceDown):
* WebKitTestRunner/InjectedBundle/EventSendingController.h:
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::didReceiveSynchronousMessageFromInjectedBundle):
* WebKitTestRunner/mac/EventSenderProxy.mm:
(WTR::EventSenderProxy::mouseForceClick):
(WTR::EventSenderProxy::startAndCancelMouseForceClick):
(WTR::EventSenderProxy::mouseForceDown):
(WTR::EventSenderProxy::mouseMoveTo):

LayoutTests:

* fast/events/cancelled-force-click-link-navigation-expected.txt: Added.
* fast/events/cancelled-force-click-link-navigation.html: Added.

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

4 years agoUnreviewed, add bug number for http/tests/w3c/html/semantics/text-level-semantics...
cdumez@apple.com [Fri, 4 Sep 2015 23:35:30 +0000 (23:35 +0000)]
Unreviewed, add bug number for http/tests/w3c/html/semantics/text-level-semantics/the-wbr-element/wbr-element.html

* TestExpectations:

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

4 years agoFix debug output for an eval call
basile_clement@apple.com [Fri, 4 Sep 2015 23:21:25 +0000 (23:21 +0000)]
Fix debug output for an eval call
https://bugs.webkit.org/show_bug.cgi?id=148839

Reviewed by Filip Pizlo.

* jit/ThunkGenerators.cpp:
(JSC::virtualThunkFor):

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

4 years agoUnreviewed, add bug number for http/tests/w3c/html/semantics/document-metadata/the...
cdumez@apple.com [Fri, 4 Sep 2015 23:07:22 +0000 (23:07 +0000)]
Unreviewed, add bug number for http/tests/w3c/html/semantics/document-metadata/the-style-element/html_style_in_comment.html

* TestExpectations:

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

4 years agoImplement the signed division instruction in WebAssembly
commit-queue@webkit.org [Fri, 4 Sep 2015 22:47:23 +0000 (22:47 +0000)]
Implement the signed division instruction in WebAssembly
https://bugs.webkit.org/show_bug.cgi?id=148772

Patch by Sukolsak Sakshuwong <sukolsak@gmail.com> on 2015-09-04
Reviewed by Geoffrey Garen.

This patch implements the signed division instruction in WebAssembly
for 32-bit integers. We use the IDIV instruction on x86 and x86-64 and
use a C function on all other platforms. We throw an exception if
- the denominator is zero, or
- the numerator is -2^31 and the denominator is -1.

* jit/JITOperations.cpp:
* jit/JITOperations.h:
* tests/stress/wasm-arithmetic.js:
(shouldBe):
(shouldThrow):
* tests/stress/wasm-arithmetic.wasm:
* wasm/WASMFunctionCompiler.h:
(JSC::operationDiv):
(JSC::WASMFunctionCompiler::endFunction):
(JSC::WASMFunctionCompiler::buildBinaryI32):
(JSC::WASMFunctionCompiler::appendCall):
(JSC::WASMFunctionCompiler::appendCallWithExceptionCheck):
(JSC::WASMFunctionCompiler::callOperation):
(JSC::WASMFunctionCompiler::throwStackOverflowError): Deleted.
* wasm/WASMFunctionParser.cpp:
(JSC::WASMFunctionParser::parseExpressionI32):

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