[Webkit-unassigned] [Bug 64786] The value of a number input form continues to increase/decrease even if we disable the input form.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 20 00:15:26 PDT 2011


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





--- Comment #18 from Kent Tamura <tkent at chromium.org>  2011-07-20 00:15:27 PST ---
(In reply to comment #17)
> Sorry but I am confused... Why can we shorten the time by using setTimeout() in the 'input' event?

I was confused with your test scenario and the original scenario in crbug.com/74960. In the original scenario, the input was disabled in 'input' handler.  I'm sorry for the confusion.

I thought we could use a shorter timeout by disabling the input in the second 'input' event like:

1. mousedown
   1.1. 'input' is dispatched
   1.2. start the repeating timer
2. wait for the next 'input' event (actually 250msec)
3. repeatingTimerFired()
   3.1 the second 'input' is fired
   3.2 Disable the input in the 'input' handler
4. mouseup
5. re-enable the input
6. wait for 50msec
7. repeatingTimerFired() should not be called.  The value should not be changed since the last 'input' event.

These steps look complicated, and not so faster.

Ok, let's keep your test code as is.  The test might have flaky timeouts in buildbots because of the slowness.  If it happened, I would remove the test.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list