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

Unified Diff: chrome/installer/setup/eula/oem.js

Issue 50039: Modifes the in-application EULA outer frame to take a parameter ('innerframe'... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « no previous file | chrome/installer/setup/eula/oem_ar.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/eula/oem.js
===================================================================
--- chrome/installer/setup/eula/oem.js (revision 12332)
+++ chrome/installer/setup/eula/oem.js (working copy)
@@ -1,3 +1,10 @@
+function setInnerFrame() {
+ var regex = new RegExp("\\?innerframe=\"?([^&#\"]*)\"?");
+ var results = regex.exec(window.location.href);
+ if(results && results[1])
+ document.getElementById('ifr').src = results[1];
+}
+
function checkAccept(f) {
if (f.accept.checked) {
window.returnValue = 6;
@@ -12,6 +19,7 @@
var footer = document.getElementById('footer');
ifr.height = footer.offsetTop - ifr.offsetTop;
+ setInnerFrame();
}
window.onresize = resize;
« no previous file with comments | « no previous file | chrome/installer/setup/eula/oem_ar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698