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 ---
Created attachment 7099 [details] I put the testcase into a HTML attachment.
On KDE 3.3 RC2, the testcase does nothing at all, except printing 'Hi'.
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'. >
Sorry, you're right. My Konqueror was on 'intelligent'. I'll confirm this bug.
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).
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.