<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -542,6 +542,8 @@ module FireWatir
     # Output:
     #   Nil if unable to locate frame, else return the Frame element.
     #
+    # TODO/FIX: If multiple tabs are open on the current window, will count frames from every tab, not just the current tab. 
+    #
     def locate_frame(how, what)
       # Get all the frames the are there on the page.
       #puts &quot;how is #{how} and what is #{what}&quot;</diff>
      <filename>firewatir/lib/firewatir/element.rb</filename>
    </modified>
    <modified>
      <diff>@@ -681,7 +681,7 @@ module FireWatir
 
     # Returns the document element of the page currently loaded in the browser.
     def document
-      Document.new(&quot;#{document_var}&quot;)
+      Document.new(self)
     end
 
     # Returns the first element that matches the given xpath expression or query.</diff>
      <filename>firewatir/lib/firewatir/firefox.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,8 +5,11 @@ module JsshSocket
     jssh_socket.send(&quot;#{str};\n&quot;, 0)
     value = read_socket()
     if md = /^(\w+)Error:(.*)$/.match(value)
-      eval &quot;class JS#{md[1]}Error &lt; StandardError\nend&quot;
-      raise (eval &quot;JS#{md[1]}Error&quot;), md[2]
+      errclassname=&quot;JS#{md[1]}Error&quot;
+      unless JsshSocket.const_defined?(errclassname)
+        JsshSocket.const_set(errclassname, Class.new(StandardError))
+      end
+      raise JsshSocket.const_get(errclassname), md[2]
     end
     value
   end</diff>
      <filename>firewatir/lib/firewatir/jssh_socket.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7adbfe8da41a2d5f99ffc08647dc4969c80cc051</id>
    </parent>
  </parents>
  <author>
    <name>Ethan</name>
    <email>ethan@medidata</email>
  </author>
  <url>http://github.com/bret/watir/commit/deb186ea540b28a43b70760c4e23e3d815997bb2</url>
  <id>deb186ea540b28a43b70760c4e23e3d815997bb2</id>
  <committed-date>2009-10-20T13:12:46-07:00</committed-date>
  <authored-date>2009-10-05T20:17:44-07:00</authored-date>
  <message>fix bug in Firefox#document. change creating error class by eval in jssh socket to creating class with ruby.</message>
  <tree>7fa3144432a76fb1bc2af8b181806f0aa938feba</tree>
  <committer>
    <name>Bret Pettichord</name>
    <email>bret@pettichord.com</email>
  </committer>
</commit>
