Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(923)

Unified Diff: Source/core/frame/SubresourceIntegrityTest.cpp

Issue 803773002: SRI: Remove the restriction to HTTPS documents and resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/SubresourceIntegrity.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/SubresourceIntegrityTest.cpp
diff --git a/Source/core/frame/SubresourceIntegrityTest.cpp b/Source/core/frame/SubresourceIntegrityTest.cpp
index 3cfe8015b450698001d3b3c27be86a814825783e..560a37f5b76b8031a96c674f59c0863af545b0f0 100644
--- a/Source/core/frame/SubresourceIntegrityTest.cpp
+++ b/Source/core/frame/SubresourceIntegrityTest.cpp
@@ -286,12 +286,12 @@ TEST_F(SubresourceIntegrityTest, CheckSubresourceIntegrityInSecureOrigin)
TEST_F(SubresourceIntegrityTest, CheckSubresourceIntegrityInInsecureOrigin)
{
- // The same checks as CheckSubresourceIntegrityInSecureOrigin should fail here.
+ // The same checks as CheckSubresourceIntegrityInSecureOrigin should pass here.
document->updateSecurityOrigin(insecureOrigin->isolatedCopy());
- expectIntegrityFailure(kSha256Integrity, kBasicScript, secureURL);
- expectIntegrityFailure(kSha384Integrity, kBasicScript, secureURL);
- expectIntegrityFailure(kSha512Integrity, kBasicScript, secureURL);
+ expectIntegrity(kSha256Integrity, kBasicScript, secureURL);
+ expectIntegrity(kSha384Integrity, kBasicScript, secureURL);
+ expectIntegrity(kSha512Integrity, kBasicScript, secureURL);
expectIntegrityFailure(kSha384IntegrityLabeledAs256, kBasicScript, secureURL);
expectIntegrityFailure(kUnsupportedHashFunctionIntegrity, kBasicScript, secureURL);
}
« no previous file with comments | « Source/core/frame/SubresourceIntegrity.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698