Closed Bug 153553 Opened 24 years ago Closed 23 years ago

Use of parent.close causes crash [@ nsGenericHTMLElement::QueryInterface]

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: iannbugzilla, Assigned: jst)

References

()

Details

(Keywords: crash)

Crash Data

Using BuildID 2002061712 on Win2K SP2 The on-line banking part of the above website uses parent.close to close the browser, if you say you want to close the browser then mozilla crashes with a talkback. Talkback IDs TB7599061M and TB7599387K
HTML from particular frame is as follows: <html> <head> <title>Internet Banking Sign Off</title> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <link REL="stylesheet" HREF="/styleSheets/style1.css" type="text/css"> <link REL="stylesheet" HREF="/stylesheets/print.css" MEDIA="print"> <style> /* ============> N E T S C A P E 6 */ </STYLE> <script LANGUAGE="JavaScript" TYPE="text/javascript" src="/CommonFiles/JavaScript/commonScripts.js"></SCRIPT> <!-- Start of JavaScript/other code in Head --> <script> var closeBrowser = ((navigator.appName.indexOf("Netscape") != -1)||(false)); function shutdown(){ //Only run this function if it's Netscape - IE doesn't have a caching problem var msgclose; if (closeBrowser) { msgclose = 'For security reasons we strongly advise closing your browser. You can\ndo this by clicking on the OK button. May we close your browser now?'; if(confirm(msgclose)) {parent.close();} } } </SCRIPT> <!-- End of JavaScript/other code in Head --> </head> <body LEFTMARGIN="0" TOPMARGIN="5" MARGINWIDTH="0" MARGINHEIGHT="15" ONLOAD="shutdown();"> <!--Foundation Table --> <form NAME="NONE" method="post" action="NONE?ID=3b31402e3ad170399e88b59b9009a966cb8"> <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"> <tr> <td WIDTH="5"><img src="/images/pixel.gif" WIDTH="5" HEIGHT="1" ALT=""></td> <td WIDTH="5"><img src="/images/pixel.gif" WIDTH="5" HEIGHT="1" ALT=""></td> <td WIDTH="100%" VALIGN="top"> <!--TITLE> box--> <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2"> <tr> <td CLASS="PageTitleBorder"> <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4"> <tr> <td CLASS="PageTitleFill" HEIGHT="25">&nbsp;Sign Off</td> </tr> </table> </td> </tr> </table> <table BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%"> <tr> <td align="center"> <!-- Page content starts here --> &nbsp;<p /> Thank you for using Nationwide's Internet Banking Service.<p /> <img SRC="/images/info_i.gif" WIDTH=16 HEIGHT=16 BORDER="0" ALIGN="ABSMIDDLE" ALT="Information" title="Information">&nbsp;<span CLASS="infoText">It is now safe to close your browser.</span> <p /> I want to <a HREF="/default.asp" TARGET="_top" onmouseover="window.status='Sign on again';return true;" onmouseout="window.status='';return true;" Title="Sign on again">sign on again</a>. <!-- Page content ends here --> </td> </tr> </table> </td> <!--Final White Spacing column gap--> <td WIDTH="5"><img src="/images/pixel.gif" WIDTH="5" HEIGHT="1" ALT=""></td> </tr> </table> <p />&nbsp; </p> <p />&nbsp;</p> </form> <!--Form tag down here to prevent excess space under forms--> </body> </html>
Keywords: crash
Severity: normal → critical
Both talkback stacks are: nsGenericHTMLElement::QueryInterface [c:/builds/seamonkey/mozilla/content/html/content/src/nsGenericHTMLElement.cpp, line 260] nsHTMLFrameElement::QueryInterface [c:/builds/seamonkey/mozilla/content/html/content/src/nsHTMLFrameElement.cpp, line 139] nsQueryInterface::operator() [c:/builds/seamonkey/mozilla/xpcom/glue/nsCOMPtr.cpp, line 52] nsCOMPtr_base::assign_from_helper [c:/builds/seamonkey/mozilla/xpcom/glue/nsCOMPtr.cpp, line 81] GlobalWindowImpl::HandleDOMEvent [c:/builds/seamonkey/mozilla/dom/src/base/nsGlobalWindow.cpp, line 759] DocumentViewerImpl::LoadComplete [c:/builds/seamonkey/mozilla/content/base/src/nsDocumentViewer.cpp, line 1561] nsDocShell::EndPageLoad [c:/builds/seamonkey/mozilla/docshell/base/nsDocShell.cpp, line 3953] nsWebShell::EndPageLoad [c:/builds/seamonkey/mozilla/docshell/base/nsWebShell.cpp, line 731] nsDocShell::OnStateChange [c:/builds/seamonkey/mozilla/docshell/base/nsDocShell.cpp, line 3867] nsDocLoaderImpl::FireOnStateChange [c:/builds/seamonkey/mozilla/uriloader/base/nsDocLoader.cpp, line 1112] nsDocLoaderImpl::doStopDocumentLoad [c:/builds/seamonkey/mozilla/uriloader/base/nsDocLoader.cpp, line 771] nsDocLoaderImpl::DocLoaderIsEmpty [c:/builds/seamonkey/mozilla/uriloader/base/nsDocLoader.cpp, line 669] nsDocLoaderImpl::OnStopRequest [c:/builds/seamonkey/mozilla/uriloader/base/nsDocLoader.cpp, line 600] nsLoadGroup::RemoveRequest [c:/builds/seamonkey/mozilla/netwerk/base/src/nsLoadGroup.cpp, line 537] PresShell::RemoveDummyLayoutRequest [c:/builds/seamonkey/mozilla/layout/html/base/src/nsPresShell.cpp, line 6672] PresShell::ProcessReflowCommands [c:/builds/seamonkey/mozilla/layout/html/base/src/nsPresShell.cpp, line 6479] ReflowEvent::HandleEvent [c:/builds/seamonkey/mozilla/layout/html/base/src/nsPresShell.cpp, line 6279] PL_HandleEvent [c:/builds/seamonkey/mozilla/xpcom/threads/plevent.c, line 597] PL_ProcessPendingEvents [c:/builds/seamonkey/mozilla/xpcom/threads/plevent.c, line 530] _md_EventReceiverProc [c:/builds/seamonkey/mozilla/xpcom/threads/plevent.c, line 1078] nsAppShellService::Run [c:/builds/seamonkey/mozilla/xpfe/appshell/src/nsAppShellService.cpp, line 458] main1 [c:/builds/seamonkey/mozilla/xpfe/bootstrap/nsAppRunner.cpp, line 1472] main [c:/builds/seamonkey/mozilla/xpfe/bootstrap/nsAppRunner.cpp, line 1808] WinMain [c:/builds/seamonkey/mozilla/xpfe/bootstrap/nsAppRunner.cpp, line 1826] WinMainCRTStartup() KERNEL32.DLL + 0xd326 (0x77e8d326) jst, could this be related to that presshell thing you were working on?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: stackwanted
Summary: Use of parent.close causes crash → Use of parent.close causes crash [@ nsGenericHTMLElement::QueryInterface]
WFM now in BuildID 2002091508, so I presume this got fixed by whatever jst was working on?
WFM as per reporter.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Crash Signature: [@ nsGenericHTMLElement::QueryInterface]
You need to log in before you can comment on or make changes to this bug.