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

Unified Diff: third_party/WebKit/LayoutTests/presentation/iframe-sandbox-default.html

Issue 2782663002: [Presentation API] Move sandbox check to PresentationRequest constructor. (Closed)
Patch Set: Respond to imcheng@ comments Created 3 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/presentation/iframe-sandbox-default.html
diff --git a/third_party/WebKit/LayoutTests/presentation/iframe-sandbox-default.html b/third_party/WebKit/LayoutTests/presentation/iframe-sandbox-default.html
deleted file mode 100644
index 4857da9044ba452b3c62a5b00e335059754d5a69..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/presentation/iframe-sandbox-default.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-
-<iframe sandbox='allow-scripts allow-same-origin'></iframe>
-
-<script>
-
-async_test(function(t) {
- window.onmessage = t.step_func_done(function(e) {
- e.data.forEach(function(result) {
- assert_equals(result.status, 'failure', result.test);
- assert_equals(result.name, 'SecurityError', result.test);
- });
- });
-
- document.querySelector('iframe').src = 'resources/embedded-smoke-tests.html';
-}, 'Test that Presentation API is blocked inside a sandboxed iframe without "allow-presentation".');
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698