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

Side by Side Diff: chrome/test/data/geolocation/iframes_different_origin.html

Issue 1143002: Adds GeolocationContentSettings on TabContents. (Closed)
Patch Set: Tests for tabcontents for extensions. Created 10 years, 9 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <script> 2 <script>
3 var iframe_hosts = ['http://127.0.0.1', 'http://localhost']; 3 var iframe_hosts = ['http://127.0.0.1', 'http://localhost'];
4 function addIFrame(iframe_id) { 4 function getIFrameSrc(iframe_id) {
5 var port = location.port; 5 var port = location.port;
6 var path = location.pathname.substring(0, location.pathname.lastIndexOf('/')); 6 var path = location.pathname.substring(0, location.pathname.lastIndexOf('/'));
7 var url = iframe_hosts[iframe_id] + ':' + port + path + '/simple.html'; 7 var url = iframe_hosts[iframe_id] + ':' + port + path + '/simple.html';
8 return url;
9 }
10 function addIFrame(iframe_id) {
8 var id = 'iframe_' + iframe_id; 11 var id = 'iframe_' + iframe_id;
9 var iframe = document.getElementById(id); 12 var iframe = document.getElementById(id);
10 iframe.src = url; 13 iframe.src = getIFrameSrc(iframe_id);
11 return "" + iframe_id; 14 return "" + iframe_id;
12 } 15 }
13 </script> 16 </script>
14 <body> 17 <body>
15 <iframe id="iframe_0"></iframe> 18 <iframe id="iframe_0"></iframe>
16 <iframe id="iframe_1"></iframe> 19 <iframe id="iframe_1"></iframe>
17 Testing Geolocation with iframes. 20 Testing Geolocation with iframes.
18 </body> 21 </body>
19 </html> 22 </html>
20 23
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698