diff --git a/third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-load-regular-script-after-failed-integrity.html b/third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-load-regular-script-after-failed-integrity.html new file mode 100644 index 0000000000000..1e3584b8f6872 --- /dev/null +++ b/third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-load-regular-script-after-failed-integrity.html @@ -0,0 +1,32 @@ + + + + + Script loaded after failed integrity check should still load + + + + + + + + + diff --git a/third_party/WebKit/Source/core/dom/PendingScript.cpp b/third_party/WebKit/Source/core/dom/PendingScript.cpp index 2a688e29d5377..ba3e8a5bbcfd2 100644 --- a/third_party/WebKit/Source/core/dom/PendingScript.cpp +++ b/third_party/WebKit/Source/core/dom/PendingScript.cpp @@ -117,6 +117,7 @@ PassRefPtrWillBeRawPtr PendingScript::releaseElementAndClear() setScriptResource(0); m_watchingForLoad = false; m_startingPosition = TextPosition::belowRangePosition(); + m_integrityFailure = false; if (m_streamer) m_streamer->cancel(); m_streamer.release();