garden-o-matic should work for local results
https://bugs.webkit.org/show_bug.cgi?id=100805

Reviewed by Adam Barth.

This is the next step in making garden-o-matic replace
'webkit-patch rebaseline-server' and be able to deal with local
results. garden-o-matic now accepts a '--results-directory' option
that will point to a layout-test-results directory. At the moment
this will only work if you are also filtering to a single bot/
platform at a time (we can't handle multiple bots' worth of local
results, but that is a logical next step).

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/garden-o-matic.html:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/config.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/results.js:
* Scripts/webkitpy/tool/commands/gardenomatic.py:
(GardenOMatic.__init__):
(GardenOMatic.execute):
* Scripts/webkitpy/tool/commands/rebaseline.py:
(AbstractRebaseliningCommand):
(RebaselineTest.__init__):
(RebaselineTest._rebaseline_test):
(RebaselineTest._rebaseline_test_and_update_expectations):
(RebaselineTest.execute):
(AbstractParallelRebaselineCommand._rebaseline_commands):
(AbstractParallelRebaselineCommand._rebaseline):
(RebaselineJson.__init__):
* Scripts/webkitpy/tool/commands/rebaseline_unittest.py:
(_BaseTestCase):
(test_rebaseline_updates_expectations_file):
(test_rebaseline_does_not_include_overrides):
(test_rebaseline_test):
(test_rebaseline_test_and_print_scm_changes):
(test_rebaseline_and_copy_test):
(test_rebaseline_and_copy_test_no_existing_result):
(test_rebaseline_and_copy_test_with_lion_result):
(test_rebaseline_and_copy_no_overwrite_test):
(test_rebaseline_test_internal_with_move_overwritten_baselines_to):
(TestRebaselineJson.test_rebaseline_all):
(TestRebaselineJson.test_rebaseline_debug):
(TestRebaselineJson.test_move_overwritten):
(TestRebaselineJson.test_no_optimize):
(TestRebaselineExpectations.test_rebaseline_expectations):
* Scripts/webkitpy/tool/servers/gardeningserver.py:
(GardeningHTTPRequestHandler.rebaselineall):
(GardeningHTTPRequestHandler):
(GardeningHTTPRequestHandler.localresult):
* Scripts/webkitpy/tool/servers/reflectionhandler.py:
(ReflectionHandler.do_POST):
(ReflectionHandler):
(ReflectionHandler.do_HEAD):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] New linux baseline for basic-inputs-expected.png, due to
crrev.com/164985.

Unreviewed.

* platform/chromium-linux/fast/forms/basic-inputs-expected.png:
* platform/efl-wk1/fast/forms/basic-inputs-expected.png: Renamed from LayoutTests/platform/efl/fast/forms/basic-inputs-expected.png.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Fix incorrect test names landed in
http://trac.webkit.org/changeset/133056

Unreviewed.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix typos introduced in r133061.
Unreviewed, build fix.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/results.js:
* Scripts/webkitpy/tool/servers/reflectionhandler.py:
(ReflectionHandler._serve_file):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: Malformed X-XSS-Protection headers not reported.
https://bugs.webkit.org/show_bug.cgi?id=100538

Reviewed by Adam Barth.

Re-writes X-XSS-Protection header parser to be more particular, and to
return better information on error.

Tests: http/tests/security/xssAuditor/malformed-xss-protection-header-1.html
       http/tests/security/xssAuditor/malformed-xss-protection-header-2.html
       http/tests/security/xssAuditor/malformed-xss-protection-header-4.html
       http/tests/security/xssAuditor/xss-protection-parsing-02.html

* html/parser/XSSAuditor.cpp:
(WebCore::XSSAuditor::init):
Detect error return code and log console message with details
* platform/network/HTTPParsers.cpp:
(WebCore):
(WebCore::skipWhiteSpace):
Use safe less-than comparsion in case called with pos already out of range.
(WebCore::skipToken):
Fix comparison to properly reject substrings at end of input.  Prevent advancing
returned position when match fails, so that this may someday be used to match
optional tokens.
(WebCore::parseXSSProtectionHeader):
Return detailled error status. Avoid needless string copy.
* platform/network/HTTPParsers.h:
Add new error returns for x-xss-protection header parser.

LayoutTests: Malformed X-XSS-Protection headers not reported
https://bugs.webkit.org/show_bug.cgi?id=100538

Reviewed by Adam Barth.

* http/tests/security/xssAuditor/malformed-xss-protection-header-expected.txt: Removed.
* http/tests/security/xssAuditor/malformed-xss-protection-header.html: Removed.
* http/tests/security/xssAuditor/malformed-xss-protection-header-1.html: Copied from LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header.html.
* http/tests/security/xssAuditor/malformed-xss-protection-header-expected-1.txt: Copied from LayoutTests/http/tests/security/xssAuditor/malformed-xss-protection-header-expected.txt.
renamed to -1 to match convention.
* http/tests/security/xssAuditor/malformed-xss-protection-header-2-expected.txt: Added.
* http/tests/security/xssAuditor/malformed-xss-protection-header-2.html: Added.
* http/tests/security/xssAuditor/malformed-xss-protection-header-3-expected.txt: Added.
* http/tests/security/xssAuditor/malformed-xss-protection-header-3.html: Added.
* http/tests/security/xssAuditor/malformed-xss-protection-header-4-expected.txt: Added.
* http/tests/security/xssAuditor/malformed-xss-protection-header-4.html: Added.
New test to cover new error message cases.
* http/tests/security/xssAuditor/resources/echo-intertag.pl:
Added more x-xss-protection header values to its set of values.
* http/tests/security/xssAuditor/xss-protection-parsing-01.html:
Converted for interface change to echo_intertag.pl
* http/tests/security/xssAuditor/xss-protection-parsing-02-expected.txt: Added.
* http/tests/security/xssAuditor/xss-protection-parsing-02.html: Added.
New test for testing x-xss-protect: 0; (allow trailing semicolon).


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
https://bugs.webkit.org/show_bug.cgi?id=100879
ScrollingStateNode::cloneAndResetNode() should not be virtual

Reviewed by Simon Fraser.

cloneAndResetNode() is currently pure virtual and implemented only 
in ScrollingStateScrollingNode. However, all of the work that it 
does at this time is stuff that a generic ScrollingStateNode could 
do. We should move this implementation to the base class so that it 
does not need to be duplicated for future node types.

This patch also re-names cloneAndResetNode() to cloneAndReset()
and correspondingly re-names cloneAndResetChildNodes() to 
cloneAndResetChildren(). 

Finally the patch also changes the copy constructors of both of these 
classes to take a const reference instead of a pointer.

* page/scrolling/ScrollingStateNode.cpp:
(WebCore::ScrollingStateNode::ScrollingStateNode):
(WebCore::ScrollingStateNode::cloneAndReset):
(WebCore):
(WebCore::ScrollingStateNode::cloneAndResetChildren):
* page/scrolling/ScrollingStateNode.h:
(ScrollingStateNode):
* page/scrolling/ScrollingStateScrollingNode.cpp:
(WebCore::ScrollingStateScrollingNode::ScrollingStateScrollingNode):
(WebCore):
* page/scrolling/ScrollingStateScrollingNode.h:
(ScrollingStateScrollingNode):
* page/scrolling/ScrollingStateTree.cpp:
(WebCore::ScrollingStateTree::commit):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed gardening.  Mark a few tests as crashing.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] DRT and WTR should clear the cache between tests
https://bugs.webkit.org/show_bug.cgi?id=93195

Reviewed by Tony Chang.

Tools:

This change makes chromium DRT match the GTK+, Qt, and EFL ports.

* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::resetTestController): added a WebCache::clear() call to achieve the goal of the bug.

LayoutTests:

* media/video-poster-blocked-by-willsendrequest.html: updated list of still-busted ports.


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