| Summary: | Crashes on document.formname.fieldname.focus() in Javascript | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Hogne Titlestad <m0ns00n> |
| Component: | khtml | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 3.2 | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
login_screen.html
backtrace.txt |
||
I cannot reproduce this with the following example form (and current 3.2.x branch): <form name="loginform" onsubmit="verifyFields()"> <input type="text" name="username"> <input type="text" name="password"> <input type="submit" name="Submit"> </form> Could you provide a complete example, please? Hey! That was fast! I can! I am attaching the HTML. Just click "Logg deg inn", the button, meaning "Log in", and it should crash. It does here in all variants every time. I am including the backtrace as well. My best regards, Hogne Titlestad On Monday 23 February 2004 11:12, Harri Porten wrote: > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > You are a voter for the bug, or are watching someone who is. > > http://bugs.kde.org/show_bug.cgi?id=75903 > > > > > ------- Additional Comments From porten kde org 2004-02-23 11:12 ------- > I cannot reproduce this with the following example form (and current 3.2.x > branch): > > <form name="loginform" onsubmit="verifyFields()"> > <input type="text" name="username"> > <input type="text" name="password"> > <input type="submit" name="Submit"> > </form> > > Could you provide a complete example, please? Created an attachment (id=4851) login_screen.html Created an attachment (id=4852) backtrace.txt David was able to reproduce this crash. Still works for me. KHTMLPartBrowserExtension::updateEditActions calls inherits() on a NULL pointer. *** This bug has been marked as a duplicate of 75353 *** I reproduced this bug with Konqueror 3.2.2 on KDE 3.2.3.
I found that Konqueror crashes on the line
document.forms[n].fieldname.focus();
when it follows an alert().
This example will segfault:
alert("You didn't entered a name");
document.forms[0].name.focus();
But this one won't:
document.forms[0].name.focus();
alert("You didn't entered a name");
(and the effect is the same)
|
Version: 3.2 (using KDE KDE 3.2.0) Installed from: Compiled From Sources Compiler: Gcc 3.2.3 athlonxp OS: Linux Konqueror 3.2 crashes every time I run this javascript code from a form: function verifyFields() { if ( document.loginform.username.value.length < 1 ) { alert ( "Please enter a username" ); document.loginform.username.focus(); return -1; } if ( document.loginform.password.value.length < 1 ) { alert ( "Please enter a password" ); document.loginform.password.focus(); return -1; } } This is a serious bug which prevents me from using Konqueror in development. All prior version of Konqueror 3.1.x ran this code without problems. Let's hope Konqueror 3.2.1 is a better one :)