workaround: site is www.site.com code incl. document.domain='site.com' <p>A customer site that I cannot change has the line 'document.domain = "site.com"; while the site is at www.site.com.</p> <p>The effect is that FB 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.site.com&gt; to get propertyl Window.FB from &lt;http://site.com&gt; </code></pre> <p>Any idea how to work around this? I prefer not to ask the customer to remove the document.domain='site.com'</p>