Bug 93599 - Invalid Content Security Policy sources should generate console warnings.
Summary: Invalid Content Security Policy sources should generate console warnings.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mike West
URL:
Keywords: WebExposed
Depends on:
Blocks: 93197
  Show dependency treegraph
 
Reported: 2012-08-09 01:58 PDT by Mike West
Modified: 2012-08-09 15:37 PDT (History)
2 users (show)

See Also:


Attachments
Patch (14.38 KB, patch)
2012-08-09 05:06 PDT, Mike West
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike West 2012-08-09 01:58:35 PDT
`script-src 'slef'`, `script-src http:/`, and so on should not only be ignored when parsing a page's Content Security Policy, but should also generate a warning so that the developer's expectations are correctly set.
Comment 1 Mike West 2012-08-09 05:06:57 PDT
Created attachment 157437 [details]
Patch
Comment 2 Mike West 2012-08-09 05:10:53 PDT
This patch updates CSP to throw moar warnings.

WDYT, Adam?
Comment 3 Mike West 2012-08-09 11:31:14 PDT
Comment on attachment 157437 [details]
Patch

Thanks. CQ? (soon...)
Comment 4 WebKit Review Bot 2012-08-09 12:54:03 PDT
Comment on attachment 157437 [details]
Patch

Rejecting attachment 157437 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
CT (content): Merge conflict in LayoutTests/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 (r125185) http/tests/images/jpg-img-partial-load.html timeout on Lion

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 164.

Full output: http://queues.webkit.org/results/13473067
Comment 5 WebKit Review Bot 2012-08-09 15:37:14 PDT
Comment on attachment 157437 [details]
Patch

Clearing flags on attachment: 157437

Committed r125213: <http://trac.webkit.org/changeset/125213>
Comment 6 WebKit Review Bot 2012-08-09 15:37:18 PDT
All reviewed patches have been landed.  Closing bug.