XSSAuditor is silent
https://bugs.webkit.org/show_bug.cgi?id=70973
Patch by Tom Sepez <tsepez@chromium.org> on 2011-11-02
Reviewed by Adam Barth.
Source/WebCore:
Test: http/tests/security/xssAuditor/script-tag-with-callbacks.html
* html/parser/XSSAuditor.cpp:
(WebCore::XSSAuditor::XSSAuditor):
(WebCore::XSSAuditor::filterToken):
* html/parser/XSSAuditor.h:
* loader/EmptyClients.h:
(WebCore::EmptyFrameLoaderClient::didDetectXSS):
* loader/FrameLoaderClient.h:
Source/WebKit/chromium:
* public/WebFrameClient.h:
(WebKit::WebFrameClient::didDetectXSS):
* src/FrameLoaderClientImpl.cpp:
(WebKit::FrameLoaderClientImpl::didDetectXSS):
* src/FrameLoaderClientImpl.h:
Source/WebKit/efl:
* WebCoreSupport/FrameLoaderClientEfl.cpp:
(WebCore::FrameLoaderClientEfl::didDetectXSS):
* WebCoreSupport/FrameLoaderClientEfl.h:
Source/WebKit/gtk:
* WebCoreSupport/FrameLoaderClientGtk.cpp:
(WebKit::FrameLoaderClient::didDetectXSS):
* WebCoreSupport/FrameLoaderClientGtk.h:
Source/WebKit/mac:
* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::didRunInsecureContent):
(WebFrameLoaderClient::didDetectXSS):
* WebView/WebDelegateImplementationCaching.h:
* WebView/WebFrameLoadDelegatePrivate.h:
* WebView/WebView.mm:
(-[WebView _cacheFrameLoadDelegateImplementations]):
Source/WebKit/qt:
* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::didDetectXSS):
* WebCoreSupport/FrameLoaderClientQt.h:
Source/WebKit/win:
* WebCoreSupport/WebFrameLoaderClient.cpp:
(WebFrameLoaderClient::didDetectXSS):
* WebCoreSupport/WebFrameLoaderClient.h:
Source/WebKit/wince:
* WebCoreSupport/FrameLoaderClientWinCE.cpp:
(WebKit::FrameLoaderClientWinCE::didDetectXSS):
* WebCoreSupport/FrameLoaderClientWinCE.h:
Source/WebKit/wx:
* WebKitSupport/FrameLoaderClientWx.cpp:
(WebCore::FrameLoaderClientWx::didDetectXSS):
* WebKitSupport/FrameLoaderClientWx.h:
Source/WebKit2:
* UIProcess/API/C/WKPage.h:
* UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
(webkitWebLoaderClientAttachLoaderClientToPage):
* UIProcess/WebLoaderClient.cpp:
(WebKit::WebLoaderClient::didDetectXSSForFrame):
* UIProcess/WebLoaderClient.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didDetectXSSForFrame):
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
(WebKit::InjectedBundlePageLoaderClient::didDetectXSSForFrame):
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::didDetectXSS):
* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
Tools:
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::didDetectXSS):
* DumpRenderTree/chromium/WebViewHost.h:
* DumpRenderTree/mac/FrameLoadDelegate.mm:
(-[FrameLoadDelegate webView:didDetectXSS:]):
* MiniBrowser/mac/BrowserWindowController.m:
(didDetectXSSForFrame):
(-[BrowserWindowController awakeFromNib]):
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
(WTR::InjectedBundlePage::InjectedBundlePage):
(WTR::InjectedBundlePage::didDetectXSSForFrame):
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:
LayoutTests:
* http/tests/security/xssAuditor/script-tag-with-callbacks-expected.txt: Added.
* http/tests/security/xssAuditor/script-tag-with-callbacks.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@99096
268f45cc-cd09-0410-ab3c-
d52691b4dbfc