Changeset 293603 in webkit
- Timestamp:
- Apr 28, 2022 6:59:02 PM (3 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/script-src-strict-dynamic-and-unsafe-inline-policies-expected.txt (added)
-
LayoutTests/http/tests/security/contentSecurityPolicy/script-src-strict-dynamic-and-unsafe-inline-policies.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r293602 r293603 1 2022-04-28 Patrick Griffis <pgriffis@igalia.com> 2 3 CSP: Fix mixing strict-dynamic and unsafe-inline policies 4 https://bugs.webkit.org/show_bug.cgi?id=239862 5 6 Reviewed by Kate Cheney. 7 8 If you had multiple policies, one including strict-dynamic and another with unsafe-inline, the unsafe-inline 9 policy was incorrectly handled. 10 11 * http/tests/security/contentSecurityPolicy/script-src-strict-dynamic-and-unsafe-inline-policies-expected.txt: Added. 12 * http/tests/security/contentSecurityPolicy/script-src-strict-dynamic-and-unsafe-inline-policies.html: Added. 13 1 14 2022-04-28 Oriol Brufau <obrufau@igalia.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r293602 r293603 1 2022-04-28 Patrick Griffis <pgriffis@igalia.com> 2 3 CSP: Fix mixing strict-dynamic and unsafe-inline policies 4 https://bugs.webkit.org/show_bug.cgi?id=239862 5 6 Reviewed by Kate Cheney. 7 8 Test: http/tests/security/contentSecurityPolicy/script-src-strict-dynamic-and-unsafe-inline-policies.html 9 10 * page/csp/ContentSecurityPolicyDirectiveList.cpp: 11 (WebCore::ContentSecurityPolicyDirectiveList::violatedDirectiveForNonParserInsertedScripts const): 12 1 13 2022-04-28 Oriol Brufau <obrufau@igalia.com> 2 14 -
trunk/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp
r291992 r293603 247 247 || checkNonParserInsertedScripts(operativeDirective, parserInserted) 248 248 || checkNonce(operativeDirective, nonce) 249 || checkSource(operativeDirective, url)) 249 || checkSource(operativeDirective, url) 250 || (url.isEmpty() && checkInline(operativeDirective))) 250 251 return nullptr; 251 252 return operativeDirective;
Note: See TracChangeset
for help on using the changeset viewer.