CSP 1.1: Rename SecurityPolicyViolationEvent::sourceURL to ::sourceFile.
https://bugs.webkit.org/show_bug.cgi?id=113033

Reviewed by Jochen Eisinger.

Source/WebCore:

Bringing our experimental implementation into line with the spec, which
has landed on the de facto standard name Gecko has been sending out for
years and years.

Spec: https://dvcs.w3.org/hg/content-security-policy/rev/e44f4003e158
Thread: http://lists.w3.org/Archives/Public/public-webappsec/2013Mar/0087.html

* dom/SecurityPolicyViolationEvent.h:
(SecurityPolicyViolationEventInit):
(WebCore::SecurityPolicyViolationEvent::sourceFile):
(WebCore::SecurityPolicyViolationEvent::SecurityPolicyViolationEvent):
(SecurityPolicyViolationEvent):
* dom/SecurityPolicyViolationEvent.idl:
* page/ContentSecurityPolicy.cpp:
(WebCore::gatherSecurityPolicyViolationEventData):
    s/sourceURL/sourceFile/

LayoutTests:

* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics.html:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-from-script-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-from-script.html:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image.html:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-from-script-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-from-script.html:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Support Quota API in Workers
https://bugs.webkit.org/show_bug.cgi?id=112972

Reviewed by Adam Barth.

Source/WebCore:

Tests: fast/workers/shared-worker-storagequota-query-usage.html
       fast/workers/worker-storagequota-query-usage.html

* Modules/quota/WorkerNavigatorStorageQuota.cpp: Added.
* Modules/quota/WorkerNavigatorStorageQuota.h: Added.
* Modules/quota/WorkerNavigatorStorageQuota.idl: Added.
* WebCore.gypi: Add entries for WorkerNavigatorStorageQuota.
* page/WorkerNavigator.h: Add a Navigator supplement that extends the worker navigator.

LayoutTests:

* fast/workers/resources/shared-worker-common.js:
(handleMessage): Allow port to be dynamically discovered from self.
* fast/workers/resources/storagequota-query-usage.js: Added.
(worker.onmessage):
* fast/workers/resources/worker-storagequota-query-usage.js: Added.
(requestUsage.errorCallback):
(requestUsage.usageCallback):
(requestUsage):
* fast/workers/shared-worker-storagequota-query-usage-expected.txt: Added.
* fast/workers/shared-worker-storagequota-query-usage.html: Added.
* fast/workers/worker-storagequota-query-usage-expected.txt: Added.
* fast/workers/worker-storagequota-query-usage.html: Added.


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