Bug 99250

Summary: CSP source expressions should support paths at file-level granularity.
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 Keywords: WebExposed
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 85558    
Attachments:
Description Flags
Patch none

Description Mike West 2012-10-13 08:40:02 PDT
As per https://dvcs.w3.org/hg/content-security-policy/rev/c29f8817f682, and discussion at http://lists.w3.org/Archives/Public/public-webappsec/2012Sep/0099.html:

* 'example.com/js' matches a file named 'js'
* 'example.com/js/' matches all files under a directory named 'js' (note the trailing slash)
* 'example.com/js/file.js' matches only a file named 'file.js' inside a directory named 'js'
Comment 1 Mike West 2012-10-13 08:49:18 PDT
Created attachment 168555 [details]
Patch
Comment 2 Adam Barth 2012-10-14 22:58:30 PDT
This seems like a good resolution.
Comment 3 Mike West 2012-10-14 23:59:12 PDT
Comment on attachment 168555 [details]
Patch

Thanks, throwing this in the queue.
Comment 4 WebKit Review Bot 2012-10-15 10:33:14 PDT
Comment on attachment 168555 [details]
Patch

Clearing flags on attachment: 168555

Committed r131317: <http://trac.webkit.org/changeset/131317>
Comment 5 WebKit Review Bot 2012-10-15 10:33:17 PDT
All reviewed patches have been landed.  Closing bug.