Summary: | [test case] Cannot do window.open in onunload attribute. | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Craig Altenburg <craiga> |
Component: | khtml ecma | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | jsp, luke-jr+kdebugs, pierre.linux59 |
Priority: | NOR | ||
Version: | 3.2.1 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Mondo test case |
Description
Craig Altenburg
2004-03-23 23:00:52 UTC
Do you have pop-up blocking enabled? If it's anything other than off, both Safari and KHTML will probably block what you're doing thinking it is an ad... No, popups are enabled. In fact, the window with the offending "onUnload" is itself a popup window. If there was something preventing popup in general I would not think that window would have been opened. Can you attach a small testcase? Test Case: Open http://homepage.mac.com/qeygh/onunload.html When you close the window you should get another window that tells you the first one closed. (At least that's how IE and Firefox work.) Yes, indeed buggy *** Bug 79441 has been marked as a duplicate of this bug. *** Created attachment 11623 [details]
Mondo test case
Konqueror is not alone in handling unload events unevenly. This test case uses
multiple approaches to setting an unload event handler on window and body
objects. I tested with IE 6, Firefox 1.0.4, Opera 8.0, Konqueror 3.4, and
Safari 2.0. Only Opera supported all the tested methods, but it invokes body
unload handlers multiple times. Unfortunately, there is no single method that
works for all browsers. I think that the ideal would be for all browsers to
support all the tested methods so script authors don't have to work out which
method works where, so I'll send this test case to the developers of all the
browsers I tested.
So is there any way to inform my webapp that the user has closed the page? Right now I'm forced to timeout, but if I set the timeout too low it will kill off connections that are just slow. > I am developing a web application that uses a popup window for navigation functions. With a majority of browsers handling tab nowadays, chances are such popup window is diverted into another tab. http://homepage.mac.com/qeygh/onunload.html > When you close the window you should get another window > that tells you the first one closed. > (At least that's how IE and Firefox work.) By default, Firefox (version 3.5.3 rv:1.9.1.3 build 20090824) has the property dom.popup_allowed_events set to change click dblclick mouseup reset submit Unload is not listed. And people are not enclined to explicitly allow unrequested and unexpected popups (secondary windows). > So is there any way to inform my webapp that the user has closed the page? Yes. The problem to begin with was multiplication of secondary windows, sub-windows. You do not need (it's not necessary) to create and open a secondary window just to output "The other window went away." regards, Gérard Message from the Bugsquad and Konqueror teams: This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore. If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report. Thank you for your understanding. |