Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Crash under ContentSecurityPolicy::reportViolation()
https://bugs.webkit.org/show_bug.cgi?id=264372 rdar://117727308 Reviewed by David Kilzer. The code was doing an early return in this case: ``` if (!usesReportTo && !is<Document>(m_scriptExecutionContext)) return; ``` Then proceeding to downcast m_scriptExecutionContext to a Document. This meant we would do a bad cast in the case where usesReportTo is true. * Source/WebCore/page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::reportViolation const): Canonical link: https://commits.webkit.org/270393@main
- Loading branch information