title: Permission denied after window.open() in IE7
body: <p>We have a winforms application with an embedded IE control.</p>
  
  <p>In this IE control, we run a web application (I control the web application but not the winforms application).</p>
  
  <p>In the web application, I run some javascript to open a sub-window and populate it with HTML:</p>
  
  <pre><code>    var features = "menubar=no,location=no,resizable,scrollbars,status=no,width=800,height=600,top=10,left=10";
      newTarget = "reportWin" + String ( Math.random () * 1000000000000 ).replace( /\./g ,"" );
      reportWindow = window.open('', newTarget, features); 
      var d = reportWindow.document; // &lt;-- Exception is thrown here
      d.open();
      d.write('&lt;head&gt;\r\n&lt;title&gt;\r\n...\r\n&lt;/title&gt;\r\n&lt;/head&gt;');
      d.write('&lt;body style="height: 90%;"&gt;\r\n&lt;table style="height: 100%; width: 100%;" border="0"&gt;\r\n&lt;tr&gt;\r\n&lt;td align="center" valign="middle" style="text-align:center;"&gt;\r\n');
      d.write(...);
      d.close();
  </code></pre>
  
  <p>When we run the web application within this WinForms app (but not by itself nor in another WinForms app) we get a Javascript error at the indicated line:</p>
  
  <pre><code>Line 0: Access denied
  </code></pre>
  
  <p>Any ideas on why this could be happening or on how I could avoid it?  Note that the window is not opening a URL; it's just an empty window.</p>
  
  <p>From the same application, opening a window with a specified URL in the same domain does work.</p>