Web Inspector: Add delete button to FileSystemView
https://bugs.webkit.org/show_bug.cgi?id=93940

Patch by Taiju Tsuiki <tzik@chromium.org> on 2012-08-27
Reviewed by Vsevolod Vlasov.

Adding status bar button to allow user to delete entries in FileSystem
for debugging use.

Source/WebCore:

Test: http/tests/inspector/filesystem/delete-entry.html

* inspector/front-end/FileSystemModel.js:
(WebInspector.FileSystemModel.prototype.requestFileContent):
(WebInspector.FileSystemModel.prototype.deleteEntry.hookFileSystemDeletion):
(WebInspector.FileSystemModel.prototype.deleteEntry):
(WebInspector.FileSystemModel.prototype._removeFileSystem):
(WebInspector.FileSystemModel.Entry.prototype.deleteEntry):
(WebInspector.FileSystemRequestManager):
(WebInspector.FileSystemRequestManager.prototype.deleteEntry.requestAccepted):
(WebInspector.FileSystemRequestManager.prototype.deleteEntry):
(WebInspector.FileSystemRequestManager.prototype._deletionCompleted):
(WebInspector.FileSystemDispatcher.prototype.deletionCompleted):
* inspector/front-end/FileSystemView.js:
(WebInspector.FileSystemView):
(WebInspector.FileSystemView.prototype.get statusBarItems):
(WebInspector.FileSystemView.prototype._refresh):
(WebInspector.FileSystemView.prototype._confirmDelete):
(WebInspector.FileSystemView.prototype._delete):
(WebInspector.FileSystemView.EntryTreeElement.prototype.deleteEntry):
(WebInspector.FileSystemView.EntryTreeElement.prototype._deletionCompleted):

LayoutTests:

* http/tests/inspector/filesystem/delete-entry-expected.txt: Added.
* http/tests/inspector/filesystem/delete-entry.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Enable CSS sticky position
https://bugs.webkit.org/show_bug.cgi?id=95172

Reviewed by Simon Hausmann.

Tools:

* qmake/mkspecs/features/features.pri:

LayoutTests:

* platform/qt/Skipped: Unskip a now passing test, skip still failing sticky tests.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Gardening after r126789. Update expectations and skip a test
because of disabled SHADOW_DOM feature.

Patch by János Badics <jbadics@inf.u-szeged.hu> on 2012-08-27
Reviewed by Csaba Osztrogonác.

* platform/qt/Skipped:
* platform/qt/fast/html/details-nested-2-expected.txt:
* platform/qt/fast/multicol/span/clone-anonymous-block-non-inline-child-crash-expected.txt:

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

Skipping the tests in fast/css/sticky. CSS Sticky Position
feature is not yet enabled on the GTK port.

* platform/gtk/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126850 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: persist the state of glue records to parents button of Timeline panel
https://bugs.webkit.org/show_bug.cgi?id=95091

Reviewed by Vsevolod Vlasov.

Add a setting for "Glue records" button on the timeline, use it to persist the state of the button.

* inspector/front-end/TimelinePanel.js:
(WebInspector.TimelinePanel):
(WebInspector.TimelinePanel.prototype._createStatusBarItems.get this):
(WebInspector.TimelinePanel.prototype._createStatusBarItems):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add call stacks to Content Security Policy checks when relevant.
https://bugs.webkit.org/show_bug.cgi?id=94433

Patch by Mike West <mkwst@chromium.org> on 2012-08-28
Reviewed by Adam Barth.

Source/WebCore:

Previously, we generated stack traces only for eval-related CSP
violations. As it turns out, we can call createScriptCallStack from
practically anywhere. This patch takes advantage of that to generate
stack traces whenever a warning is logged to the console. If we're in
a JavaScript stack, brilliant: we get a detailed warning. If not, the
stack trace is empty, and we don't pass it into the console logging
method.

This has the advantage of giving us good developer-facing logging for
any and all violations that result from script-based injection of
resources. Yay!

Tests: http/tests/inspector/csp-injected-content-warning-contains-stacktrace.html
       http/tests/inspector/csp-inline-warning-contains-stacktrace.html

* bindings/js/ScriptController.cpp:
(WebCore::ScriptController::initScript):
* bindings/js/ScheduledAction.cpp:
(WebCore::ScheduledAction::create):
* bindings/v8/V8DOMWindowShell.cpp:
(WebCore::V8DOMWindowShell::initContextIfNeeded):
* bindings/v8/custom/V8DOMWindowCustom.cpp:
(WebCore::WindowSetTimeoutImpl):
    Dropping stack trace from call to ContentSecurityPolicy::allowEval.
* page/ContentSecurityPolicy.cpp:
(CSPDirectiveList):
(WebCore::CSPDirectiveList::reportViolation):
(WebCore::CSPDirectiveList::checkEvalAndReportViolation):
(WebCore::CSPDirectiveList::allowEval):
    No longer piping a stack trace through CSPDirectiveList::allowEval
    to reportViolation.
(WebCore::ContentSecurityPolicy::didReceiveHeader):
    Dropping stack trace from call to ContentSecurityPolicy::allowEval.
(WebCore):
(WebCore::isAllowedByAll):
(WebCore::ContentSecurityPolicy::allowEval):
(WebCore::ContentSecurityPolicy::reportViolation):
(WebCore::ContentSecurityPolicy::logToConsole):
    No longer piping a stack trace through ContentSecurityPolicy down to
    the point where it would be logged. Instead, we simply generate the
    stack trace just before logging it, and only pass it to
    addConsoleMessage if it's non-empty.
* page/ContentSecurityPolicy.h:
(WebCore):
* page/DOMSecurityPolicy.cpp:
(WebCore::DOMSecurityPolicy::allowsEval):
    Dropping stack trace from call to ContentSecurityPolicy::allowEval.

LayoutTests:

* http/tests/inspector/csp-injected-content-warning-contains-stacktrace-expected.txt: Added.
* http/tests/inspector/csp-injected-content-warning-contains-stacktrace.html: Added.
* http/tests/inspector/csp-inline-warning-contains-stacktrace-expected.txt: Added.
* http/tests/inspector/csp-inline-warning-contains-stacktrace.html: Added.
* http/tests/inspector/resources/csp-inline-test.js: Added.
(thisTest):
* http/tests/inspector/resources/csp-test.js: Added.
(test.addMessage):
(test):

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