Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

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

DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×
User Journal

Submission + - Crashing IE7?

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!"

Slashdot Top Deals

Memory fault -- core...uh...um...core... Oh dammit, I forget!

Working...