title: Firefox: AngularJS app in iframe throws nsresult: "0x80004005 (NS_ERROR_FAILURE)" error on
body: <p>When I open a angularjs app in iframe on a page everything works fine on all browsers. But then in firefox if I <strong>refresh using ctrl+f5</strong> I get this very nasty error starting with nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame" ...</p>
  
  <p>Please see image: (not sure if you can acutally read it)
  <img src="https://i.stack.imgur.com/7SYQ8.jpg" alt="error"></p>
  
  <p>You can test it your self, open link <a href="https://www.ipushpull.com/embed/SCAR/Alpine" rel="nofollow noreferrer">https://www.ipushpull.com/embed/SCAR/Alpine</a> in firefox, you should see login form, press ctrl+f5 and you should see the error.</p>
  
  <p>Other browsers are fine. </p>
  
  <p>I seen few other discussions, some mention this could be because of CORS requests (I am using) which I dont see probable because other requests are working fine in firefox on the same page (when you open taht page it makes request to the api that returns what it should)</p>
  
  <p>Other mention it has something to do with window history, which might be because once you arrive to that link and API returns 403, it redirects you to angular uri #/user/login , but I didnt find any solution I could try out with the history.</p>
  
  <p>Any ideas? thanks a lot</p>
  
  <p><strong>Update</strong></p>
  
  <p>I see you cannot open up the image, here is "full-res": <a href="https://i.stack.imgur.com/7SYQ8.jpg" rel="nofollow noreferrer">http://i.stack.imgur.com/7SYQ8.jpg</a></p>
  
  <p><strong>Update 2</strong></p>
  
  <ol>
  <li><p>This is not due to CORS issue. I am using CORS throughout the site without an issue, even there are other CORS requests on that very same page and they work. </p></li>
  <li><p>It is not caused by any adblock/popupblock addin, I tried in completely wiped out browser.</p></li>
  <li><p><strong>Using non-minified angular for debugging</strong> - Actually I didn't think this would matter for debugging (as I have confidence in angular), but quess what. If I change to un-minified angular <strong>the error does not happen</strong>.. Any ideas?</p></li>
  </ol>