Skip to content

Instantly share code, notes, and snippets.

@raldred
Created April 8, 2009 11:51
Show Gist options
  • Save raldred/91738 to your computer and use it in GitHub Desktop.
Save raldred/91738 to your computer and use it in GitHub Desktop.
diff --git a/firewatir/lib/firewatir/firefox.rb b/firewatir/lib/firewatir/firefox.rb
index 68e240c..89d1ccf 100644
--- a/firewatir/lib/firewatir/firefox.rb
+++ b/firewatir/lib/firewatir/firefox.rb
@@ -129,10 +129,10 @@ module FireWatir
if current_os == :macosx && !%x{ps x | grep firefox-bin | grep -v grep}.empty?
raise "Firefox is running without -jssh" if jssh_down
- options[:launch_new_window] = true
+ launch_override = true
end
- if options[:launch_new_window] and not options[:suppress_launch_process]
+ if launch_override and not options[:suppress_launch_process]
open_window
elsif not options[:suppress_launch_process]
bin = path_to_bin()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment