Disable web security in chromium so iframes on different domains can be accessed by behavior javascript.

This commit is contained in:
Hunter Stern 2014-07-24 16:46:06 -07:00
parent 80f3a4a067
commit 6a5d1e2266

View File

@ -241,6 +241,7 @@ class Chrome:
"--window-size=1100,900", "--no-default-browser-check", "--window-size=1100,900", "--no-default-browser-check",
"--disable-first-run-ui", "--no-first-run", "--disable-first-run-ui", "--no-first-run",
"--homepage=about:blank", "--disable-direct-npapi-requests", "--homepage=about:blank", "--disable-direct-npapi-requests",
"--disable-web-security",
"about:blank"] "about:blank"]
self.logger.info("running {}".format(chrome_args)) self.logger.info("running {}".format(chrome_args))
self.chrome_process = subprocess.Popen(chrome_args, env=new_env, start_new_session=True) self.chrome_process = subprocess.Popen(chrome_args, env=new_env, start_new_session=True)