Add space missing from some class declarations
https://bugs.webkit.org/show_bug.cgi?id=71632

Reviewed by Anders Carlsson.

* assembler/AssemblerBufferWithConstantPool.h:
* bytecode/CodeBlock.h:
* dfg/DFGVariableAccessData.h:
* heap/VTableSpectrum.h:
* jit/ExecutableAllocator.cpp:
* jit/ExecutableAllocatorFixedVMPool.cpp:
* wtf/MetaAllocatorHandle.h:
* wtf/UnionFind.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99382 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Implement the sandbox directive for CSP
https://bugs.webkit.org/show_bug.cgi?id=71604

Reviewed by Sam Weinig.

Source/WebCore:

At TPAC, Microsoft was pushing pretty hard to add the sandbox directive
to CSP.  There's a question about whether it's going to be in CSP 1.0
or CSP 1.1, but it seems to be clearly headed into the spec.

This patch implements the sandbox directive for CSP.  It's built on the
same machinery we use for the sandbox attribute for iframe.  Now that
I've done the implementation, I'm going to write up some concrete text
for the spec.

Tests: http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-subframe.html
       http/tests/security/contentSecurityPolicy/sandbox-allow-scripts.html
       http/tests/security/contentSecurityPolicy/sandbox-empty-subframe.html
       http/tests/security/contentSecurityPolicy/sandbox-empty.html

* page/ContentSecurityPolicy.cpp:
(WebCore::ContentSecurityPolicy::ContentSecurityPolicy):
(WebCore::ContentSecurityPolicy::applySandboxPolicy):
(WebCore::ContentSecurityPolicy::addDirective):
* page/ContentSecurityPolicy.h:

LayoutTests:

Test that the sandbox directive correctly wires up to the sandbox
flags.  Also, test that the policy inherits into subframes.  These are
essentially integration tests between the CSP and sandbox subsystems,
which is why they don't cover all the permutations of the sandbox
flags.  Those are covered in more detail via tests of the sandbox
attribute.

* http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-subframe-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/sandbox-allow-scripts-subframe.html: Added.
* http/tests/security/contentSecurityPolicy/sandbox-allow-scripts.html: Added.
* http/tests/security/contentSecurityPolicy/sandbox-empty-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/sandbox-empty-subframe-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/sandbox-empty-subframe.html: Added.
* http/tests/security/contentSecurityPolicy/sandbox-empty.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99383 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Leaks seen in RenderFlowThread::setRegionRangeForBox on Leaks bot
https://bugs.webkit.org/show_bug.cgi?id=71260

Reviewed by Mark Rowe.

Memory leak fix covered by existing tests.

* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::removeRenderBoxRegionInfo):
Instead of calling remove, call take and then delete, since the
values of the map are owned and need to be deleted when removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99384 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed trivial fix after build system refactoring.

* Scripts/run-qtwebkit-tests: Fix qml_import_path.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99385 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Don't crash when a context hasn't been created.  This fixed a
testing-only crash on the bots in the Chromium port.

* testing/v8/WebCoreTestSupport.cpp:
(WebCoreTestSupport::resetInternalsObject):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99386 268f45cc-cd09-0410-ab3c-d52691b4dbfc
editing/input/scroll-viewport-page-up-down.html is very flaky on chromium win release
https://bugs.webkit.org/show_bug.cgi?id=59642

Unreviewed; remove the failing test expectation since we can no longer observe the said failure.

* platform/chromium/test_expectations.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99387 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Skip tests for autocorrection panel on Chromium port since
Chromium Mac port doesn't support autocorrection panel.

The failure was tracked by the Chromium issue 58254 (http://crbug.com/58254).

* platform/chromium/test_expectations.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99388 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove initBeforeLoadEvent method
https://bugs.webkit.org/show_bug.cgi?id=71636

Reviewed by Adam Barth.

Source/WebCore:

Test: fast/dom/Window/window-properties.html

* dom/BeforeLoadEvent.h:
* dom/BeforeLoadEvent.idl:

LayoutTests:

* fast/dom/Window/window-properties-expected.txt:
* platform/gtk/fast/dom/Window/window-properties-expected.txt:
* platform/mac/fast/dom/Window/window-properties-expected.txt:
* platform/qt-wk2/fast/dom/Window/window-properties-expected.txt:
* platform/qt/fast/dom/Window/window-properties-expected.txt:
* platform/win/fast/dom/Window/window-properties-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99389 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove extra semicolon in ColorInputType
https://bugs.webkit.org/show_bug.cgi?id=71639

Reviewed by Kent Tamura.

* html/ColorInputType.cpp:
(WebCore::ColorInputType::setValue):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99390 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove ColorInputType::handleClickEvent
https://bugs.webkit.org/show_bug.cgi?id=71640

Reviewed by Kent Tamura.

When you click the input color element, both ColorInputType::handleClickEvent and
ColorInputType::handleDOMActivateEvent are called, causing Chrome::openColorChooser
to be called too many times.

* html/ColorInputType.cpp: Removed ColorInputType::handleClickEvent
* html/ColorInputType.h: Removed ColorInputType::handleClickEvent


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99391 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r99374): GTK+ build of the jsc binary doesn't like the call
to initializeMainThread, and crashes
https://bugs.webkit.org/show_bug.cgi?id=71643

Reviewed by Sam Weinig.

* jsc.cpp:
(main):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed gardening.

* platform/chromium/test_expectations.txt:
fast/events/platform-wheelevent-paging-{x,y,xy}-in-scrolling-page.html fails on chromium-cg-mac.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99394 268f45cc-cd09-0410-ab3c-d52691b4dbfc
InputType::fallbackValue and defaultValue should be const
https://bugs.webkit.org/show_bug.cgi?id=71641

Reviewed by Kent Tamura.

Changing InputType::fallbackValue and defaultValue to const. Also adding OVERRIDE.

* html/BaseCheckableInputType.cpp:
(WebCore::BaseCheckableInputType::fallbackValue):
* html/BaseCheckableInputType.h:
* html/ColorInputType.cpp:
(WebCore::ColorInputType::fallbackValue):
* html/ColorInputType.h:
* html/InputType.cpp:
(WebCore::InputType::fallbackValue):
(WebCore::InputType::defaultValue):
* html/InputType.h:
* html/RangeInputType.cpp:
(WebCore::RangeInputType::fallbackValue):
* html/RangeInputType.h:
* html/ResetInputType.cpp:
(WebCore::ResetInputType::defaultValue):
* html/ResetInputType.h:
* html/SubmitInputType.cpp:
(WebCore::SubmitInputType::defaultValue):
* html/SubmitInputType.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Skip new failing test.
https://bugs.webkit.org/show_bug.cgi?id=71022

Patch by Ben Wells <benwells@chromium.org> on 2011-11-06
Reviewed by Martin Robinson.

* platform/gtk/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix some style issues in ImageBuffer.h
https://bugs.webkit.org/show_bug.cgi?id=71649

Reviewed by Kent Tamura.

No new tests. Style change only.

* platform/graphics/ImageBuffer.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, skip fast/events/platform-wheelevent-paging on GTK
because this platform does not support a paging mouse wheel event.

* platform/gtk/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed gardening.

* platform/chromium/test_expectations.txt:
Mark two tests as flaky. Remove some obsolete expectations.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, unkip a working test and reclassify the wheelevent missing DRT features.

* platform/gtk/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99400 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Cannot edit elements commented with <!--
https://bugs.webkit.org/show_bug.cgi?id=71357

Reviewed by Pavel Feldman.

Source/WebCore:

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::getOuterHTML):
(WebCore::InspectorDOMAgent::setOuterHTML):
* inspector/front-end/ElementsTreeOutline.js:
(WebInspector.ElementsTreeOutline.prototype.populateContextMenu):
(WebInspector.ElementsTreeElement.prototype._populateTagContextMenu):
(WebInspector.ElementsTreeElement.prototype._populateTextContextMenu):
(WebInspector.ElementsTreeElement.prototype._populateNodeContextMenu):

LayoutTests:

* inspector/elements/edit-dom-actions-expected.txt:
* inspector/elements/edit-dom-actions.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99401 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Cannot edit elements commented with <!--
https://bugs.webkit.org/show_bug.cgi?id=71357

Patch by Alexander Pavlov <apavlov@chromium.org> on 2011-11-07
Reviewed by Pavel Feldman.

* inspector/elements/edit-dom-actions-expected.txt:
* inspector/elements/edit-dom-actions.html:

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