Browser Settings

ethan-medidata edited this page Mar 14, 2012 · 2 revisions

Firefox

Install either MozRepl (preferred) or JSSH.

  • Turn off the popup blocker. Settings → Content → [ ] Block pop-up windows (or set dom.disable_open_during_load to false)
  • Turn off opening new windows in tabs. Settings → Tabs → Open new windows in a tab instead (or set the config browser.link.open_newwindow to 2)
  • (FF 4 and greater) Turn off tab-modal prompts. Go to about:config, find prompts.tab_modal.enabled and set it to false.

If you want to automate setting these, the following code should work, assuming you've got MozRepl or JSSH installed.

require 'vapir'
firefox = Vapir::Firefox.new
Components = firefox.firefox_socket.Components
prefs=Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch)
prefs.setBoolPref('dom.disable_open_during_load', false)
prefs.setIntPref('browser.link.open_newwindow', 2)
prefs.setBoolPref('prompts.tab_modal.enabled', false)
firefox.close

IE

In Tools → Internet Options:

  • Advanced → Security → turn on: [x] Allow active content to run in files on My Computer
  • On Windows versions with UAC, turn off Protected Mode (Security tab, I think?). Or you can run your ruby process as Administrator.
  • Add sites you will be testing to Trusted Sites - Security → Trusted Sites → Sites
  • To allow ability to set window status in IE7+: Security → Internet → Custom Level → Scroll down to "Allow status bar updates via script" (under "Scripting" almost all the way down to the bottom of the list) → Enable.
  • To allow javascript prompt()s: Security → Internet → Custom Level → "Allow websites to prompt for information using scripted windows" (under "Scripting" almost all the way down to the bottom of the list) → Enable.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.