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

Unified Diff: content/test/data/android/permission_navigation.html

Issue 2899973002: Hide modal permission prompts on Android upon tab navigation/destruction (Closed)
Patch Set: fix test (permission request from js goes through mojo so need to poll) Created 3 years, 7 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 | « chrome/browser/permissions/permission_dialog_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/android/permission_navigation.html
diff --git a/content/test/data/android/permission_navigation.html b/content/test/data/android/permission_navigation.html
new file mode 100644
index 0000000000000000000000000000000000000000..6a73e3aaa57449ad73bc63a94deda1b6f6b7fc84
--- /dev/null
+++ b/content/test/data/android/permission_navigation.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+
+<script>
+function navigate() {
+ window.location = "about:blank";
+}
+
+function requestGeolocationPermission() {
+ navigator.geolocation.getCurrentPosition(function() { });
+}
+
+function requestNotificationPermission() {
+ Notification.requestPermission();
+}
+</script>
« no previous file with comments | « chrome/browser/permissions/permission_dialog_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698