Bug 70011

Summary: script-src * should allow all URLs
Product: WebKit Reporter: Adam Barth <abarth>
Component: New BugsAssignee: Adam Barth <abarth>
Severity: Normal CC: eric, sam, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 70245    
Bug Blocks: 53572    
Description Flags
Patch none

Description Adam Barth 2011-10-13 02:40:47 PDT
script-src * should allow all URLs
Comment 1 Adam Barth 2011-10-13 02:50:44 PDT
Created attachment 110816 [details]
Comment 2 Eric Seidel (no email) 2011-10-13 02:53:17 PDT
Comment on attachment 110816 [details]

View in context: https://bugs.webkit.org/attachment.cgi?id=110816&action=review


> Source/WebCore/page/ContentSecurityPolicy.cpp:273
> +    if (end - begin == 1 && *begin == '*') {

It seems like you should have a local length = end - begin?  Or do you move begin?
Comment 3 Adam Barth 2011-10-13 02:54:24 PDT
Comment on attachment 110816 [details]

Yeah, begin and end get moved around a lot in this function.  I'd prefer not to have a length variable because I'd worry it would get out of sync.
Comment 4 WebKit Review Bot 2011-10-13 03:15:48 PDT
Comment on attachment 110816 [details]

Clearing flags on attachment: 110816

Committed r97360: <http://trac.webkit.org/changeset/97360>
Comment 5 WebKit Review Bot 2011-10-13 03:15:52 PDT
All reviewed patches have been landed.  Closing bug.