[Webkit-unassigned] [Bug 8272] New: Javascript Crash : Use of window.open && window.close can cause crash

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sat Apr 8 18:12:17 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=8272

           Summary: Javascript Crash : Use of window.open && window.close
                    can cause crash
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: JavaScript
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: alakazam at melix.net


The following php code generates html+javascript code which rather reliably
crashes webkit, by opening a window which reloads it's parent and closes
itself.

The crash is very reproductible, but does not seem to happen in a perfectly
reliable way.

The crash does not require that the page reload itself many times, on
http://www.battle-arenas.net/, the bug has been perfectly reproductible when
        window.opener.location = window.opener.location;
        window.close();
is called, after having opened a window used to send messages to other players
via a button with a onClick call to a javascript function.

//////////
<?php
if (isset($_GET['opened'])) {
?><script type="text/javascript">
        window.opener.location = window.opener.location;
        window.close();
</script><?php
} else {
?><script type="text/javascript">
        window.open('test.php?opened=1', '', '');
</script><?php
}
?>
//////////


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list