title: Centering jQuery UI Dialog containing a file input field does not work in FF
body: <p>I have used extensively jQueryUi dialogs without a problem, until now.</p>
  
  <p>My problem is: if I have a div with a file input field, and I want to show it with a 'slide' transition, I get following error in Firebug:</p>
  
  <p><code>NS_ERROR_XPC_SECURITY_MANAGER_VETO: Security Manager vetoed action arg 0 [nsIDOMHTMLDivElement.compareDocumentPosition]
  file:///H:/Trabajo/Layout/2012jQueryMulti/js/jquery-1.8.0.js
  Line 4436</code></p>
  
  <p>The dialog shows up, but it is positioned to the left instead of the center.  IE works fine.</p>
  
  <p>Here is an example that fails (tested with FF 14.0.1):</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Test&lt;/title&gt;
    &lt;style type="text/css"&gt; 
      div#infoFrame { border: 2px solid black; height: 300px; }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;form name="Form" method="post" action="list.do"&gt;
      &lt;div id="infoFrame" style="display:none;"&gt;
        &lt;input type="file" name="myFile"&gt;
      &lt;/div&gt;  
    &lt;/form&gt;
    &lt;script src="js/jquery-1.8.0.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/jquery-ui-1.8.22.custom.min.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
      $('#infoFrame').dialog({modal: true, width: 500, show: 'slide'});
    &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>If I remove the transition from the dialog, it works just fine:</p>
  
  <pre><code>$('#infoFrame').dialog({modal: true, width: 500});
  </code></pre>
  
  <p>It is driving me crazy.  Any ideas?</p>