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

Unified Diff: chrome/test/data/durable/durability-window2.html

Issue 1164073005: Allow script to request durable storage permission (chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix conflicts after midi constant permission landed Created 5 years, 4 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/durable/durability-window2.html
diff --git a/chrome/test/data/durable/durability-window2.html b/chrome/test/data/durable/durability-window2.html
new file mode 100644
index 0000000000000000000000000000000000000000..a7558b13abe3745d8a2ea8b5e19e9ef76ffba67d
--- /dev/null
+++ b/chrome/test/data/durable/durability-window2.html
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML>
+<script>
+
+function requestPermission() {
+ navigator.storage.requestPersistent().then(function(permission) {
+ window.domAutomationController.send(permission);
+ });
+}
+
+</script>
« no previous file with comments | « chrome/test/data/durable/durability-window1.html ('k') | content/browser/permissions/permission_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698