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

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/download/guest.html

Issue 13037003: permissionrequest API for guest Download. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync @tott Created 7 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: chrome/test/data/extensions/platform_apps/web_view/download/guest.html
diff --git a/chrome/test/data/extensions/platform_apps/web_view/download/guest.html b/chrome/test/data/extensions/platform_apps/web_view/download/guest.html
new file mode 100644
index 0000000000000000000000000000000000000000..87565a1cdd0472e40eaa547ecd1316951f8c707f
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/web_view/download/guest.html
@@ -0,0 +1,26 @@
+<!--
+ * Copyright 2013 The Chromium Authors. All rights reserved. Use of this
+ * source code is governed by a BSD-style license that can be found in the
+ * LICENSE file.
+-->
+<html>
+ <head>
+ <script type="text/javascript">
+ function startDownload(elementId) {
+ document.getElementById(elementId).click();
+ }
+ </script>
+ </head>
+ <body>
+ <div>This is guest that initiates download.</div>
+ <a href="expect-deny.zip"
+ download="download"
+ id="download-link-1">Embedder is expected to deny this download link.</a>
+ <a href="expect-allow.zip"
+ download="download"
+ id="download-link-2">Embedder is expected to allow this download link.</a>
+ <a href="expect-ignore.zip"
+ download="download"
+ id="download-link-3">Embedder is expected to ignore this download link (which is equivalent of denying).</a>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698