Quantcast
Viewing all articles
Browse latest Browse all 3527

IE10: With EPM disabled on a site, window.open returns null for that site

Is this a bug or am I missing some intended behavior?

If I disable EPM for a particular site, window.open returns null for that site. The window still opens. In addition, window.opener in the opened window is undefined. Clearing the browser history (which clears the per site EPM setting) resets the behavior to normal.

I've repeated this on two separate machines with simple test code.

My setup:
- IE10 on Windows 7 64-bit and also Windows 8 64-bit
- Test page loads a simple Java applet (so I can disable EPM for that site)
- JRE Version 7 Update 21 (32-bit)
- Popup blocker turned off
- Enhanced Protected Mode turned on
- Protected Mode is also turned on
- Tested in both Internet zone and Local intranet zone

Sample code:

opener.html

<!DOCTYPE html><html><head><title>Test</title></head><body><script type="text/javascript">
	var oWindow = window.open("opened.html");
	if (oWindow == null) {
		alert("value is null");
	} else {
		alert("value is NOT null");
	}	</script><OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"><PARAM NAME = "CODE" VALUE = "test.class"></OBJECT></body></html>

opened.html

<!DOCTYPE html><html><head><title>Opened</title></head><body><script>
	alert("window.opener = " + window.opener);</script></body></html>

Steps:
1) Clear the browser history (with History checkbox checked) to start clean
2) Open opener.html
3) At this point the behavior of window.open and window.opener are normal
4) When IE prompts to disable EPM for this site, click the disable button
5) Close the browser and re-open it
6) Open opener.html
7) window.open now returns null and window.opener is undefined
8) Clear the browser history (with History checkbox checked)
9) Open opener.html
10) window.open no longer returns null and window.opener is an object


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>