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

Side by Side Diff: chrome/test/data/banners/prompt_in_handler_test_page.html

Issue 2553013004: Remove the app banner navigation heuristic. (Closed)
Patch Set: Add comments Created 4 years 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Web app banner test page</title> 3 <title>Web app banner test page</title>
4 <link rel="manifest" href="manifest.json" /> 4 <link rel="manifest" href="manifest.json" />
5 <script src="main.js"></script> 5 <script src="main.js"></script>
6 <script> 6 <script>
7 window.addEventListener('beforeinstallprompt', function(e) { 7 window.addEventListener('beforeinstallprompt', function(e) {
8 console.log('Preventing banner from appearing');
9 e.preventDefault(); 8 e.preventDefault();
10
11 console.log('Re-prompt banner');
12 e.prompt(); 9 e.prompt();
13 }); 10 });
14 </script> 11 </script>
15 </head> 12 </head>
16 <body onload="initialize()">Cancels the banner, then prompts for it to be show n in the handler.</body> 13 <body onload="initialize()">Cancels the banner, then prompts for it to be show n in the handler.</body>
17 </html> 14 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698