--disable-web-security in Chrome launcher

895 views
Skip to first unread message

dwagner

unread,
Feb 9, 2012, 5:00:25 AM2/9/12
to Selenium Developers
Hi!

As of r14461, the Chrome launcher activates the --disable-web-security
command-line switch (issue #1317). This caused some problems with one
of my test suites, which runs a suite of JavaScript unit tests[1] in
Chrome using SRC. Some of these tests expect the browser to enforce
Same Origin Policy restrictions and will fail if that's not the case.

Is there are way to prevent the launcher from setting this option
(other than modifying GoogleChromeLauncher.java)?

[1] http://bit.ly/AwPEAp

Regards,
Daniel

Simon Stewart

unread,
Feb 9, 2012, 7:23:45 AM2/9/12
to selenium-...@googlegroups.com
Take a look at using the BrowserConfigurationOptions class, which can
be passed to the Selenium.start() method.

Simon

> --
> You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
> To post to this group, send email to selenium-...@googlegroups.com.
> To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.
>

dwagner

unread,
Feb 9, 2012, 11:04:32 AM2/9/12
to Selenium Developers
Ah, hadn't thought of that. Thanks, and sorry for the noise.

Regards,
Daniel
Reply all
Reply to author
Forward
0 new messages