Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

Submission Summary: 0 pending, 2 declined, 0 accepted (2 total, 0.00% accepted)

User Journal

+ - Crashing IE7?

Submitted by
insanecarbonbasedlif
insanecarbonbasedlif writes "I started having this problem when testing against RC1, and I hoped that it would be fixed in the final release, but it still happens. If a modal dialog calls 'location.reload()' on the window that opened it, and is then closed, the browser crashes when the page tries to reload.

I created a stripped down test case that illustrates the problem (just a test case, don't complain that it should be done differently). Create 2 web pages, test1.html and test2.html, and give them the following code.
-----------------------------------------------
test1.html
-----------------------
<HTML>
    <HEAD>
        <script language="javascript">
        function setReload()
        {
            setTimeout('location.reload()', 2000);
        }

        function openModalWindow()
        {
                var paramObj=new Object();
                paramObj.openerWindow=window;
                window.showModalDialog('test2.html', paramObj);
        }
        </script>
      </head>
      <body onload="setReload();">
        <a href="javascript:openModalWindow()">link</a>
    </body>
</HTML>

-----------------------------------------------
test2.html
-----------------------
<HTML>
    <HEAD>
        <script language="javascript">
        function reloadOpener()
        {
            window.dialogArguments.openerWindow.location.reloa d();
        }
        </script>
    </head>
    <body onload="reloadOpener();">
        Test2
    </body>
</HTML>

-----------------------------------------------

  Open test1.html in ie7, then click the link to open the modal dialog. Then close the modal dialog and wait for test1.html to refresh. The browser should crash.

So, does a modal window call to reload.location in its opener always crash IE7? Let me know if you can or can't replicate this. Thanks!"

Interchangeable parts won't.

Working...