summaryrefslogtreecommitdiffstats
path: root/chrome/test/data
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 22:04:58 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 22:04:58 +0000
commit4440a58b8f7658021f9badf5d5e142fc61f288c6 (patch)
tree9ba043ce2dc73dbc36cdfb2e5d8c9e23343bdf0d /chrome/test/data
parent5ccaa41d72d5241e76bad7f16c3e0147d990584b (diff)
downloadchromium_src-4440a58b8f7658021f9badf5d5e142fc61f288c6.zip
chromium_src-4440a58b8f7658021f9badf5d5e142fc61f288c6.tar.gz
chromium_src-4440a58b8f7658021f9badf5d5e142fc61f288c6.tar.bz2
Notifications permission infobar should only be shown in response to a user gesture, not arbitrary script.
Experimental fix for UI test, so checking in flaky at first to see if I have it... BUG=27215 TEST=included Committed as r31839... and reverted. Review URL: http://codereview.chromium.org/387011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31953 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data')
-rw-r--r--chrome/test/data/notifications/notifications_request_function.html13
-rw-r--r--chrome/test/data/notifications/notifications_request_inline.html10
2 files changed, 23 insertions, 0 deletions
diff --git a/chrome/test/data/notifications/notifications_request_function.html b/chrome/test/data/notifications/notifications_request_function.html
new file mode 100644
index 0000000..082a724
--- /dev/null
+++ b/chrome/test/data/notifications/notifications_request_function.html
@@ -0,0 +1,13 @@
+<html>
+<head>
+<script>
+function request() {
+ window.webkitNotifications.requestPermission();
+ return true;
+}
+</script>
+</head>
+<body>
+Standing by to request permission...
+</body>
+</html>
diff --git a/chrome/test/data/notifications/notifications_request_inline.html b/chrome/test/data/notifications/notifications_request_inline.html
new file mode 100644
index 0000000..1e47c61
--- /dev/null
+++ b/chrome/test/data/notifications/notifications_request_inline.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+</head>
+<body>
+Requesting permission...
+</body>
+<script>
+window.webkitNotifications.requestPermission();
+</script>
+</html>