Bug 155133

Summary: CSP: Remove hardcoded directive names from ContentSecurityPolicySourceList::isProtocolAllowedByStar()
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebCore Misc.Assignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham
Priority: P2    
Version: WebKit Local Build   
Hardware: All   
OS: All   
Bug Depends on: 154122    
Bug Blocks:    

Daniel Bates
Reported 2016-03-07 14:12:32 PST
The patch for bug #154122 hardcoded the directive names "img-src" and "media-src" in the implementation of ContentSecurityPolicySourceList::isProtocolAllowedByStar(). Instead we should make use of the constants in ContentSecurityPolicyDirectiveList.cpp.
Attachments
Daniel Bates
Comment 1 2016-03-24 11:06:43 PDT
I will fix this bug as part of the refactoring in the patch for bug #155842.
Daniel Bates
Comment 2 2016-03-24 19:15:02 PDT
Note You need to log in before you can comment on or make changes to this bug.