IE7 RC1: open XML doc with window.open

I quite often open XML documents via script using window.open(). These XML documents are then displayed as HTML using a reference an external XSL Transform using the xml-stylesheet processing instruction as so:

<?xmlversion="1.0"encoding="utf-8"?>

<?xml-stylesheettype="text/xsl" href="transform.xsl"?>

<object>

<somexml>stuff</somexml>

</object>

Normally, I like to include an HTML button (generated by the XSLT) that calls window.close() onclick. This works fine in IE6 but in IE7, users are presented with "The webpage you are viewing is trying to close the tab. Do you want to close this tab?".

Does anybody know why this might be happening? Does IE7 consider the XSLT reference insecure or something? Does IE7 some how forget that the window was opened via script in this case?

Thanks, David

[1899 byte] By [dgracey] at [2007-12-25]
# 1

By they way, this made it into IE7 final release. Has anybody come across a fix for this?

Thanks, David

dgracey at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...