Title: [287011] trunk/Source/WebCore
- Revision
- 287011
- Author
- katherine_che...@apple.com
- Date
- 2021-12-13 20:55:38 -0800 (Mon, 13 Dec 2021)
Log Message
WebContent process crashes at ContentSecurityPolicySourceList::matchesAll
https://bugs.webkit.org/show_bug.cgi?id=234288
rdar://problem/86438924
Reviewed by Simon Fraser.
* page/csp/ContentSecurityPolicyDirectiveList.cpp:
(WebCore::ContentSecurityPolicyDirectiveList::violatedDirectiveForScript const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (287010 => 287011)
--- trunk/Source/WebCore/ChangeLog 2021-12-14 04:26:34 UTC (rev 287010)
+++ trunk/Source/WebCore/ChangeLog 2021-12-14 04:55:38 UTC (rev 287011)
@@ -1,3 +1,14 @@
+2021-12-13 Kate Cheney <katherine_che...@apple.com>
+
+ WebContent process crashes at ContentSecurityPolicySourceList::matchesAll
+ https://bugs.webkit.org/show_bug.cgi?id=234288
+ rdar://problem/86438924
+
+ Reviewed by Simon Fraser.
+
+ * page/csp/ContentSecurityPolicyDirectiveList.cpp:
+ (WebCore::ContentSecurityPolicyDirectiveList::violatedDirectiveForScript const):
+
2021-12-13 Alex Christensen <achristen...@webkit.org>
Allow WKContentRuleList to run regexes on current frame's URL, not just top frame's URL
Modified: trunk/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp (287010 => 287011)
--- trunk/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp 2021-12-14 04:26:34 UTC (rev 287010)
+++ trunk/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp 2021-12-14 04:55:38 UTC (rev 287011)
@@ -391,7 +391,7 @@
{
auto* operativeDirective = this->operativeDirective(m_scriptSrc.get(), ContentSecurityPolicyDirectiveNames::scriptSrcElem);
- if (operativeDirective->containsAllHashes(subResourceIntegrityDigests))
+ if (!operativeDirective || operativeDirective->containsAllHashes(subResourceIntegrityDigests))
return nullptr;
if (checkSource(operativeDirective, url, didReceiveRedirectResponse))
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes