[Webkit-unassigned] [Bug 242314] Double clicking submit button causes forms to be submitted twice

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 4 15:51:00 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=242314

--- Comment #2 from Karl Dubost <karlcow at apple.com> ---
First, GET and POST are different. 

An HTTP GET is idempotent (to be used only for safe operations), so you could send as many times as you want, it should not create an issue. It's why it is always recommended to never use GET for something which requires a POST. 
see https://www.w3.org/2001/tag/doc/whenToUseGet.html


Neil, do you have a reduced test case (or a specific website exhibiting the issue you are mentioning) for HTTP POST and double click to be sure we are talking about the same thing.


dblclick and click are also different events. 
* https://w3c.github.io/uievents/#event-type-dblclick
* https://w3c.github.io/uievents/#click

As for the Mozilla issue, the link to click 
https://bugzilla.mozilla.org/show_bug.cgi?id=238159

On the bugzilla issue you used as an example

0. Go to https://scotcrest.com/product/clan-single-malt-scotch-whisky-70cl/
1. Choose a Design
2. Select 18 years old checkbox
2. double-click on "Add to Basket"

Firefox adds 1 item
Safari adds 1 item.


Logging dblclick and click

[Log] "click" (fbevents.js, line 24)
[Log] "click" (jquery.min.js, line 2, x4)
[Log] "click" (modules.eaa59710f7e60ac1d235.js, line 2, x3)
[Log] "click" (jquery-3.6.0.min.js, line 2)
[Log] "click" (fbevents.js, line 24)
[Log] "click" (jquery.min.js, line 2, x4)
[Log] "click" (modules.eaa59710f7e60ac1d235.js, line 2, x3)
[Log] "click" (jquery-3.6.0.min.js, line 2)

So maybe this site doesn't illustrate the issue anymore, maybe because of the dblclick  trap you are mentioning 


This test is currently failing for dblclick.
https://wpt.fyi/results/uievents/click/dblclick_event_mouse.html?label=master&label=experimental&aligned&q=dblclick


I need to dig further today on this.
But any very simple test case you are thinking about Neil would help. 
I will create my own with a local server today. Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220704/0e537d38/attachment-0001.htm>


More information about the webkit-unassigned mailing list