Fix internal error of csp-script-src-self.html?target_hint=_self
This CL fixes the error when running csp-script-src-self.html
. The WPT
checks if CSP mechanism blocks the inline script of speculationrules.
However, the WPT uses an inline script to check whether the test fails.
And the blocked event makes a duplicate entry in key-value-store.py
server that doesn't allow duplicated entries. In this CL, allow the
inline script to check the test results and avoid firing unintended
securitypolicyviolation.
Bug: 349187226, 373673980
Change-Id: I9278edd3f3c77551677f54e4f062f6d45f1ad54b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5936976
Reviewed-by: Hiroki Nakagawa nhiroki@chromium.org
Commit-Queue: Ryo Ogawa negibokken@gmail.com
Reviewed-by: Takashi Toyoshima toyoshim@chromium.org
Cr-Commit-Position: refs/heads/main@{#1369795}