<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,13 +1,7 @@
 require &quot;webrat&quot;
 gem &quot;selenium-client&quot;, &quot;&gt;=1.2.14&quot;
 require &quot;selenium/client&quot;
-
-# active_support already defines silence_stream, no need to do that again if it's already present.
-# http://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/kernel/reporting.rb
-unless Kernel.respond_to?(:silence_stream)
-  require &quot;webrat/selenium/silence_stream&quot;
-end
-
+require &quot;webrat/selenium/silence_stream&quot;
 require &quot;webrat/selenium/selenium_session&quot;
 require &quot;webrat/selenium/matchers&quot;
 require &quot;webrat/core_extensions/tcp_socket&quot;</diff>
      <filename>lib/webrat/selenium.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,18 @@
 module Webrat
   module Selenium
     module SilenceStream
-      def silence_stream(stream)
-        old_stream = stream.dup
-        stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
-        stream.sync = true
-        yield
-      ensure
-        stream.reopen(old_stream)
-      end
+      # active_support already defines silence_stream, no need to do that again if it's already present.
+      # http://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/kernel/reporting.rb
+      unless Kernel.respond_to?(:silence_stream)
+        def silence_stream(stream)
+          old_stream = stream.dup
+          stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
+          stream.sync = true
+          yield
+        ensure
+          stream.reopen(old_stream)
+        end
+      end      
     end
   end
 end
\ No newline at end of file</diff>
      <filename>lib/webrat/selenium/silence_stream.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,9 +2,12 @@ require 'test_helper'
 
 class WebratTest &lt; ActionController::IntegrationTest
 
-  test &quot;should visit fully qualified urls&quot; do
-    visit root_url(:host =&gt; &quot;chunkybacon.example.com&quot;)
-    assert_equal &quot;chunkybacon&quot;, request.subdomains.first
+  #Firefox raises a security concern under Selenium
+  unless ENV['WEBRAT_INTEGRATION_MODE'] == 'selenium'
+    test &quot;should visit fully qualified urls&quot; do
+      visit root_url(:host =&gt; &quot;chunkybacon.example.com&quot;)
+      assert_equal &quot;chunkybacon&quot;, request.subdomains.first
+    end
   end
 
   test &quot;should visit pages&quot; do
@@ -68,9 +71,12 @@ class WebratTest &lt; ActionController::IntegrationTest
     assert_have_selector &quot;h1&quot;
   end
 
-  test &quot;should detect infinite redirects&quot; do
-    assert_raises Webrat::InfiniteRedirectError do
-      visit infinite_redirect_path
+  # Firefox detects and prevents infinite redirects under Selenium
+  unless ENV['WEBRAT_INTEGRATION_MODE'] == 'selenium'
+     test &quot;should detect infinite redirects&quot; do
+       assert_raises Webrat::InfiniteRedirectError do
+         visit infinite_redirect_path
+       end
     end
   end
 </diff>
      <filename>spec/integration/rails/test/integration/webrat_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>73dc59cc293cfa6e343c6f167a352558abb75351</id>
    </parent>
  </parents>
  <author>
    <name>Matthias Marschall</name>
    <email>mm@agileweboperations.com</email>
  </author>
  <url>http://github.com/jwilger/webrat/commit/6cd734aec9c701e0b8db605ba32a895487c6f7ad</url>
  <id>6cd734aec9c701e0b8db605ba32a895487c6f7ad</id>
  <committed-date>2009-05-29T15:05:35-07:00</committed-date>
  <authored-date>2009-05-29T01:24:51-07:00</authored-date>
  <message>made selenium integration tests run applying larrytheliquid's patch: http://github.com/larrytheliquid/webrat/commit/627913708c563f136f17d7da1b85b961f20f143b</message>
  <tree>51c0aca9061ba2ca383e84e17d335497443f7f1b</tree>
  <committer>
    <name>mike.gaffney</name>
    <email>mike.gaffney@asolutions.com</email>
  </committer>
</commit>
