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

Side by Side Diff: chrome/test/data/extensions/api_test/webstore_inline_install/install_non_verified_domain.html

Issue 9269020: Handle paths and ports in verified domains in inline install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright header.x Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="chrome-webstore-item"> 4 <link rel="chrome-webstore-item">
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 console.log('Page loaded'); 8 console.log('Page loaded');
9 9
10 function tryInlineInstall() { 10 function tryInlineInstall() {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 function runTest2(galleryUrl) { 48 function runTest2(galleryUrl) {
49 console.log('In runTest2'); 49 console.log('In runTest2');
50 50
51 // Now try a different extension, which doesn't have a verified domain at 51 // Now try a different extension, which doesn't have a verified domain at
52 // all (it should not be allowed) 52 // all (it should not be allowed)
53 document.getElementsByTagName('link')[0].href = 53 document.getElementsByTagName('link')[0].href =
54 galleryUrl + '/detail/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'; 54 galleryUrl + '/detail/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
55 55
56 tryInlineInstall(); 56 tryInlineInstall();
57 } 57 }
58
59 function runTest3(galleryUrl) {
60 console.log('In runTest3');
61
62 // Now try an extension that has a port in the verified domain (we're on
63 // the same domain, but on a different port, so installation shoudl fail)
64 document.getElementsByTagName('link')[0].href =
65 galleryUrl + '/detail/dddddddddddddddddddddddddddddddd';
66
67 tryInlineInstall();
68 }
58 </script> 69 </script>
59 70
60 </body> 71 </body>
61 </html> 72 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698