Bug 87094 - [testcase] window.onError not working properly
Summary: [testcase] window.onError not working properly
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: 3.2
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-13 04:55 UTC by Benjamin Reed
Modified: 2012-06-18 14:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
I put the testcase into a HTML attachment. (327 bytes, text/html)
2004-08-13 18:18 UTC, Dik Takken
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Reed 2004-08-13 04:55:10 UTC
Version:            (using KDE KDE 3.2.3)
Installed from:    Debian testing/unstable Packages
OS:                Linux

window.onError not working properly for errors in javascript. The following page should open a new window with slashdot. It works on firefox and it should work according to the javascript documentation, but in konqueror it just brings up a blank window.

--- begin test.html ---
<script language="JavaScript1.2" type="text/javascript">
function doErr(msg, url, linenum)
{
        nw.location = "http://www.slashdot.org";
        return true;
}


window.onerror = doErr;
nw = window.open("","52","status=no,scrollbars=no");
if (!nw.missingFunc("")) nw.location = "http://www.ibm.com";
</script>
Hi
--- end test.html ---
Comment 1 Dik Takken 2004-08-13 18:18:08 UTC
Created attachment 7099 [details]
I put the testcase into a HTML attachment.
Comment 2 Dik Takken 2004-08-13 18:19:55 UTC
On KDE 3.3 RC2, the testcase does nothing at all, except printing 'Hi'.
Comment 3 Benjamin Reed 2004-08-13 20:51:54 UTC
Do you have popups turned off? The line


nw = window.open("","52","status=no,scrollbars=no");

will popup a new window. If you are getting nothing,
then there is a bigger bug present :)

ben

--- Dik Takken <d.h.j.takken@phys.uu.nl> wrote:

> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> You are on the CC list for the bug, or are watching
> someone who is.
>       
> http://bugs.kde.org/show_bug.cgi?id=87094      
> 
> 
> 
> 
> ------- Additional Comments From d.h.j.takken phys
> uu nl  2004-08-13 18:19 -------
> On KDE 3.3 RC2, the testcase does nothing at all,
> except printing 'Hi'.
> 

Comment 4 Dik Takken 2004-08-13 21:42:49 UTC
Sorry, you're right. My Konqueror was on 'intelligent'. I'll confirm this bug.
Comment 5 Michael Leupold 2008-04-06 15:46:38 UTC
Confirmed on trunk r794020. The popup opens but instead of calling the error routine on encountering the unknown function in the testcase nothing happens (I can see the error in the javascript console).
Comment 6 Myriam Schweingruber 2012-06-18 14:13:28 UTC
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.