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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/geolocation/iframes_different_origin.html
diff --git a/chrome/test/data/geolocation/iframes_different_origin.html b/chrome/test/data/geolocation/iframes_different_origin.html
index 076aa6439abf4dfa9ad4f2bcc973f5ea3b545da8..0443a03d380c23fe03f3c38b46d7663563d5d5ef 100755
--- a/chrome/test/data/geolocation/iframes_different_origin.html
+++ b/chrome/test/data/geolocation/iframes_different_origin.html
@@ -1,13 +1,16 @@
<html>
<script>
var iframe_hosts = ['http://127.0.0.1', 'http://localhost'];
-function addIFrame(iframe_id) {
+function getIFrameSrc(iframe_id) {
var port = location.port;
var path = location.pathname.substring(0, location.pathname.lastIndexOf('/'));
- var url = iframe_hosts[iframe_id] + ':' + port + path + '/simple.html';
+ var url = iframe_hosts[iframe_id] + ':' + port + path + '/simple.html';
+ return url;
+}
+function addIFrame(iframe_id) {
var id = 'iframe_' + iframe_id;
var iframe = document.getElementById(id);
- iframe.src = url;
+ iframe.src = getIFrameSrc(iframe_id);
return "" + iframe_id;
}
</script>
« 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