Bug 150165 - [testcase] Repeated button presses bypass Javascript
Summary: [testcase] Repeated button presses bypass Javascript
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: SVN
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-24 22:00 UTC by Luke-Jr
Modified: 2023-01-05 05:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2007-09-24 22:00:17 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    Gentoo Packages

<form>
<button onclick="return false;">test</button>
</form>

If you click 'test' repeatedly fast enough, the form will submit despite the JS.
Comment 1 Linus Östberg 2008-04-19 17:26:12 UTC
<html>
<body>
<form name="input" action="test2.html" method="get">
<input type="submit" value="Submit" onclick="return false">
<button onclick="return false;">test</button>
</form>
</body>

(test2.html is a page with the text "worked")

Firefox 2.0.0.13 (assumed to be the correct behaviour):
Nothing happens when pressing either button.

Konqueror 3.5.9:
Pressing either button once directs to test2.html.

Konqueror 4 (trunk, r798696):
Pressing either button at low pace has no effect.
Quick pressing leads to opening of an empty tab, and then, if tab is kept open, directs to test2.html, else it opens the tab again.
Comment 2 Jérôme SONRIER 2008-07-08 02:09:29 UTC
I think when we click the button repeatedly fast enough, the onclick event is no more executed but the ondblclick is.

The form don't sumit with the following code :

<html>
<form name="input" action="test2.html" method="get" >
<input type="submit" value="Submit" onclick="return false" ondblclick="return false">
</form>
</html> 
Comment 3 Andrew Crouthamel 2018-11-02 04:24:17 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-11-16 02:36:34 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 5 Justin Zobel 2022-12-06 00:57:02 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 6 Bug Janitor Service 2022-12-21 05:17:55 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2023-01-05 05:27:06 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!