title: Can it be determined if window.resizeTo will work?
body: <p>Inside the Javascript console, if I execute:</p>
  
  <pre><code>m = window.open(location.origin);
  m.resizeTo(400, 400);
  </code></pre>
  
  <p>The window will resize, but if I just execute:</p>
  
  <pre><code>window.resizeTo(400, 400);
  </code></pre>
  
  <p>then nothing happens. I understand the reason for this behavior. How can I detect situations where window.resizeTo will do nothing?</p>