title: Workaround: site is www.example.com code incl. document.domain='example.com'
body: <p>A customer site that I cannot change has the line <code>document.domain = "example.com"</code> while the site is at <code>www.example.com</code>.</p>
  
  <p>The effect is that FaceBook Connect window login gets stuck after submitting username+password.</p>
  
  <p>Firebug shows its in infinite loop inside dispatchmessage function, which gives perpetual exception:</p>
  
  <pre><code>Error: Permission denied for &lt;http://www.example.com&gt; to get property Window.FB from &lt;http://example.com&gt;
  </code></pre>
  
  <p>Any idea how to work around this? I prefer not to ask the customer to remove the <code>document.domain='example.com'</code></p>