title: Facebook gives "Unsafe JavaScript attempt to access frame with URL" error in Chrome
body: <p>My sample Facebook app was working great yesterday in Chrome. The page integrates Silverlight ad Facebook via the JavaScript SDK. I can check basic login status, login to Facebook, get your name and log out.</p>
  
  <p>Today, with no changes on my part, it's broken in Chrome with a JavaScript error that's very common on Google search results, but no real answers. It still works great in IE and Firefox.</p>
  
  <p>Here's the public URL:</p>
  
  <p><a href="http://www.andrewdothay.net/prj/facebook/" rel="noreferrer">http://www.andrewdothay.net/prj/facebook/</a></p>
  
  <p>When you open the JavaScript console in Chrome, it throws tons of these errors:</p>
  
  <hr>
  
  <p>Unsafe JavaScript attempt to access frame with URL </p>
  
  <p><a href="http://www.facebook.com/login.php?api_key=151352704876752&amp;cancel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23cb%3Df1175dd3f%26origin%3Dhttp%253A%252F%252Fwww.andrewdothay.net%252Ff304d89d8%26relation%3Dopener%26transport%3Dpostmessage%26frame%3Df3760623c%26result%3DxxRESULTTOKENxx&amp;channel_url=http%3A%2F%2Fwww.andrewdothay.net%2Fprj%2Ffacebook%2F&amp;display=popup&amp;fbconnect=1&amp;locale=en_US&amp;method=auth.login&amp;next=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23cb%3Df3c546942%26origin%3Dhttp%253A%252F%252Fwww.andrewdothay.net%252Ff304d89d8%26relation%3Dopener%26transport%3Dpostmessage%26frame%3Df3760623c%26result%3DxxRESULTTOKENxx&amp;return_session=1&amp;sdk=joey&amp;session_version=3&amp;v=1.0" rel="noreferrer">http://www.facebook.com/login.php?api_key=151352704876752&amp;cancel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23cb%3Df1175dd3f%26origin%3Dhttp%253A%252F%252Fwww.andrewdothay.net%252Ff304d89d8%26relation%3Dopener%26transport%3Dpostmessage%26frame%3Df3760623c%26result%3DxxRESULTTOKENxx&amp;channel_url=http%3A%2F%2Fwww.andrewdothay.net%2Fprj%2Ffacebook%2F&amp;display=popup&amp;fbconnect=1&amp;locale=en_US&amp;method=auth.login&amp;next=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23cb%3Df3c546942%26origin%3Dhttp%253A%252F%252Fwww.andrewdothay.net%252Ff304d89d8%26relation%3Dopener%26transport%3Dpostmessage%26frame%3Df3760623c%26result%3DxxRESULTTOKENxx&amp;return_session=1&amp;sdk=joey&amp;session_version=3&amp;v=1.0</a> from frame with URL <a href="http://www.andrewdothay.net/prj/facebook/" rel="noreferrer">http://www.andrewdothay.net/prj/facebook/</a>. </p>
  
  <p>Domains, protocols and ports must match.</p>
  
  <hr>
  
  <p>Any ideas on what's going on with Chrome here? </p>
  
  <hr>
  
  <p><strong>Update</strong></p>
  
  <p>I discovered that Chrome on today's machine was blocking the login pop-up when I was calling FB.login(), but I know I wasn't getting those 190 error messages in the JavaScript console yesterday.</p>
  
  <p>So, when I allow pop-ups in Chrome, it does work for an end user, but all those new error messages are killing my diagnostic experience as a developer.</p>