Closed Bug 6717 Opened 26 years ago Closed 26 years ago

window onload/onunload events not fired when XUL file loaded through location bar

Categories

(Core :: XUL, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: gerardok, Assigned: hyatt)

Details

Project: Seamonkey Program: Apprunner.exe BuildID: 1999-05-18-09 Platform: WinNT, Linux The window onload/onunload events are not being fired when the XUL file is loaded by entering the filename in the location bar. The same failure happens on Linux and possibly on other platforms. It works fine when the XUL file is loaded as the top level window. Steps to reproduce: 1. Create a XUL file with the following content: <xul:window xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns="http://www.w3.org/TR/REC-html40" onload="startup()" onunload="unload()" style="width:100%;height:100%"> <script> function startup() { dump("startup()\n"); } function unload() { dump("unload()\n"); } </script> </xul:window> 2. Load that file by entering the filename in the Location bar. 3. Click on the Back Arrow button to go to the previous page Actual Results: No startup or unload messages displayed in console Expected Results: "startup()" and "unload()" strings displayed in console
Assignee: hyatt → don
Reassigning to don. His group needs to fix up their dialog code, and then I can make the onload handler actually fire on subdocuments inside frames.
Assignee: don → law
Priority: P3 → P1
Target Milestone: M6
Bill, come and talk to me about this ...
Target Milestone: M6 → M7
OK, Matt and everyone else agrees that we should wait until M7 to fix this ...
Status: NEW → ASSIGNED
Assignee: law → hyatt
Status: ASSIGNED → NEW
I have modified all the dialogs so that they will not be affected by this change. Go ahead and do it and let me know if any problems ensue.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Already done. :)
Status: RESOLVED → VERIFIED
appears fixed. verified.
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: gerardok → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.