title: window.frames["frame_name"] doesn't work in Firefox when frame has been removed and readded
body: <ol>
  <li>Add a frame to the page</li>
  <li>Remove it</li>
  <li>Add another frame with the same name</li>
  <li><code>window.frames[&quot;frame_name&quot;]</code> doesn't work</li>
  </ol>
  <h3>HTML</h3>
  <pre class="lang-html prettyprint-override"><code>&lt;iframe id=&quot;replaceme&quot; name=&quot;frame_1&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
  </code></pre>
  <h3>JS</h3>
  <pre class="lang-js prettyprint-override"><code>$(&quot;body&quot;).append(window.frames[0].name + &quot;&lt;br /&gt;&quot;);
  $(&quot;body&quot;).append(window.frames[&quot;frame_1&quot;].name + &quot;&lt;br /&gt;&quot;);
  $(&quot;body&quot;).append( (window.frames[0] == window.frames[&quot;frame_1&quot;]) + &quot;&lt;br /&gt;&quot;);
  
  $(&quot;#replaceme&quot;).remove();
  
  $(&quot;body&quot;).append('&lt;iframe name=&quot;frame_1&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;');
  
  $(&quot;body&quot;).append(window.frames[0].name + &quot;&lt;br /&gt;&quot;);
  $(&quot;body&quot;).append(window.frames[&quot;frame_1&quot;].name + &quot;&lt;br /&gt;&quot;);
  $(&quot;body&quot;).append( (window.frames[0] == window.frames[&quot;frame_1&quot;]) + &quot;&lt;br /&gt;&quot;);
  
  </code></pre>
  <p><a href="http://jsfiddle.net/xbmSs/" rel="nofollow noreferrer">http://jsfiddle.net/xbmSs/</a></p>
  <p>Is this a bug or expected behavior? It works fine in Opera, Safari, Chrome. Any suggestions of how to work around it in Firefox?</p>