Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

Commit

Permalink
Pull 'worker-src' back behind the experimental flag.
Browse files Browse the repository at this point in the history
Good discussion at w3c/webappsec-csp#146
suggests that we might want to modify `worker-src` before shipping it.
So let's work that out first.

BUG=666664

Review-Url: https://codereview.chromium.org/2503213005
Cr-Commit-Position: refs/heads/master@{#433152}
(cherry picked from commit 8071e0f)

Review URL: https://codereview.chromium.org/2541443003 .

Cr-Commit-Position: refs/branch-heads/2924@{#151}
Cr-Branched-From: 3a87aec-refs/heads/master@{#433059}
  • Loading branch information
mikewest committed Nov 29, 2016
1 parent 85e1545 commit a8df270
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,8 @@ void CSPDirectiveList::addDirective(const String& name, const String& value) {
setCSPDirective<SourceListDirective>(name, value, m_baseURI);
} else if (equalIgnoringCase(name, ContentSecurityPolicy::ChildSrc)) {
setCSPDirective<SourceListDirective>(name, value, m_childSrc);
} else if (equalIgnoringCase(name, ContentSecurityPolicy::WorkerSrc)) {
} else if (equalIgnoringCase(name, ContentSecurityPolicy::WorkerSrc) &&
m_policy->experimentalFeaturesEnabled()) {
setCSPDirective<SourceListDirective>(name, value, m_workerSrc);
} else if (equalIgnoringCase(name, ContentSecurityPolicy::FormAction)) {
setCSPDirective<SourceListDirective>(name, value, m_formAction);
Expand Down

0 comments on commit a8df270

Please sign in to comment.