xml-stylesheet XSL is not requested with JavaScript disabled
https://bugs.webkit.org/show_bug.cgi?id=103902

Reviewed by Adam Barth.

Source/WebCore:

Currently CachedResourceLoader::canRequest() calls allowScriptFromSource() on
ContentSecurityPolicy and FrameLoaderClient for the given XSLStyleSheet. This
should be restricted to only calling allowScriptFromSource() for the
ContentSecurityPolicy.

Test: http/tests/xsl/xslt-transform-with-javascript-disabled.html

* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::canRequest):

LayoutTests:

Add a test to perform XSL transformation when the Javascript is disabled.

* http/tests/xsl/resources/xslt-transform-with-javascript-disabled.xml:
* http/tests/xsl/resources/xslt-transform-with-javascript-disabled.xsl:
* http/tests/xsl/xslt-transform-with-javascript-disabled-expected.txt:
* http/tests/xsl/xslt-transform-with-javascript-disabled.html:


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