Closed
Bug 6717
Opened 25 years ago
Closed 25 years ago
window onload/onunload events not fired when XUL file loaded through location bar
Categories
(Core :: XUL, defect, P1)
Core
XUL
Tracking
()
VERIFIED
FIXED
M7
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 | ||
Updated•25 years ago
|
Assignee: hyatt → don
Assignee | ||
Comment 1•25 years ago
|
||
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.
OK, Matt and everyone else agrees that we should wait until M7 to fix this ...
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.
Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•25 years ago
|
||
Already done. :)
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.
Description
•