Bug 94847

Summary: Trailing spaces in CSP source lists should not generate console warnings.
Product: WebKit Reporter: Mike West <mkwst>
Component: WebCore Misc.Assignee: Mike West <mkwst>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 93197    
Attachments:
Description Flags
Patch none

Description Mike West 2012-08-23 14:10:47 PDT
See http://crbug.com/144252 for the original report.

---

The source list for Content Security Policy directive 'script-src' contains an invalid source: ''. It will be ignored.

For this manifest line that used to work:

"content_security_policy": "script-src 'self' chrome-extension://fkhgelnmojgnpahkeemhnbjndeeocehc chrome-extension-resource: ; object-src 'self' "
Comment 1 Mike West 2012-08-23 14:16:06 PDT
Created attachment 160239 [details]
Patch
Comment 2 Mike West 2012-08-23 14:17:59 PDT
Comment on attachment 160239 [details]
Patch

Hi Adam! I'm pretty sure this fixes the issue raised; if you agree, would you mind CQing it?

Thanks!
Comment 3 WebKit Review Bot 2012-08-23 15:48:03 PDT
Comment on attachment 160239 [details]
Patch

Clearing flags on attachment: 160239

Committed r126488: <http://trac.webkit.org/changeset/126488>
Comment 4 WebKit Review Bot 2012-08-23 15:48:06 PDT
All reviewed patches have been landed.  Closing bug.