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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/secureContexts/unauthenticated_sandbox.html

Issue 1723753002: Make Document::isSecureContext() work for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more rebase fixups Created 4 years, 9 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
Index: third_party/WebKit/LayoutTests/http/tests/security/secureContexts/unauthenticated_sandbox.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/unauthenticated.html b/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/unauthenticated_sandbox.html
similarity index 62%
copy from third_party/WebKit/LayoutTests/http/tests/security/secureContexts/unauthenticated.html
copy to third_party/WebKit/LayoutTests/http/tests/security/secureContexts/unauthenticated_sandbox.html
index aa9bb0594df69dc5b344bdf3690c9ab52e6ff6fa..ac3aa132628472e8e8d83cb6f7d6c0972dc37c73 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/unauthenticated.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/unauthenticated_sandbox.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>Unauthenticated origin is insecure</title>
+ <title>Unauthenticated origin with sandbox iframe is insecure</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharness-helpers.js"></script>
<script src="/resources/testharnessreport.js"></script>
@@ -23,18 +23,24 @@
window.addEventListener("message", t.step_func(function (e) {
assert_false(e.data.isSecureContext);
messages++;
- if (messages >= 2)
+ if (messages >= 3)
t.done();
}), false);
var i1 = document.createElement("iframe");
- i1.src = get_host_info().UNAUTHENTICATED_ORIGIN + "/security/secureContexts/resources/post-securecontext-status.html";
+ i1.srcdoc = "<iframe src='" + get_host_info().HTTP_REMOTE_ORIGIN + "/security/secureContexts/resources/post-securecontext-status.html" + "'></iframe>";
+ i1.sandbox = "allow-scripts";
document.body.appendChild(i1);
var i2 = document.createElement("iframe");
- i2.src = get_host_info().AUTHENTICATED_ORIGIN + "/security/secureContexts/resources/post-securecontext-status.html";
+ i2.srcdoc = "<iframe src='" + get_host_info().HTTPS_REMOTE_ORIGIN + "/security/secureContexts/resources/post-securecontext-status.html" + "'></iframe>";
+ i2.sandbox = "allow-scripts";
document.body.appendChild(i2);
- }, "Frames are insecure");
+
+ var i3 = document.createElement("iframe");
+ i3.src = "/security/secureContexts/resources/dynamically-sandbox-and-iframe-https.html";
+ document.body.appendChild(i3);
+ }, "Frames inside sandboxed frames are insecure");
}
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698