summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup/eula
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-05 14:17:17 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-05 14:17:17 +0000
commitca8384f71e1afbe25e5bca6793aebc3ea1218e23 (patch)
treee036d63ee25f3c31c8633b5a3c071d9bcd3dbaf3 /chrome/installer/setup/eula
parentd1d0eb2f35be2b1c664099d8239eb7087d54b86d (diff)
downloadchromium_src-ca8384f71e1afbe25e5bca6793aebc3ea1218e23.zip
chromium_src-ca8384f71e1afbe25e5bca6793aebc3ea1218e23.tar.gz
chromium_src-ca8384f71e1afbe25e5bca6793aebc3ea1218e23.tar.bz2
Change the system-level EULA dialog to not use GET parameters with res:// urls. Instead use the dialogArgument property on the window object. res:// urls with GET parameters don't appear to work with the IE6 version of MSHTML.
BUG=88192 TEST=Install system-level Chrome on a new machine with a master_preferences file that includes "require_eula":true. Observe that a non-blank EULA dialog shows up and that the user can run Chrome. Review URL: http://codereview.chromium.org/7309008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91507 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup/eula')
-rw-r--r--chrome/installer/setup/eula/oem.js50
1 files changed, 25 insertions, 25 deletions
diff --git a/chrome/installer/setup/eula/oem.js b/chrome/installer/setup/eula/oem.js
index 5831b34..e142911 100644
--- a/chrome/installer/setup/eula/oem.js
+++ b/chrome/installer/setup/eula/oem.js
@@ -1,26 +1,26 @@
-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;
- } else {
- window.returnValue = 1;
- }
- window.close();
-}
-
-function resize() {
- var ifr = document.getElementById('ifr');
- var footer = document.getElementById('footer');
-
- ifr.height = footer.offsetTop - ifr.offsetTop;
- setInnerFrame();
-}
-
-window.onresize = resize;
+function setInnerFrame() {
+ var inner_frame = window.dialogArguments;
+ if (inner_frame) {
+ document.getElementById('ifr').src = inner_frame;
+ }
+}
+
+function checkAccept(f) {
+ if (f.accept.checked) {
+ window.returnValue = 6;
+ } else {
+ window.returnValue = 1;
+ }
+ window.close();
+}
+
+function resize() {
+ var ifr = document.getElementById('ifr');
+ var footer = document.getElementById('footer');
+
+ ifr.height = footer.offsetTop - ifr.offsetTop;
+ setInnerFrame();
+}
+
+window.onresize = resize;
window.onload = resize; \ No newline at end of file