GeoLocation changes are fired twice if Enter key is used
Reported by
subsoni...@gmail.com,
Jun 21 2016
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2752.0 Safari/537.36 Steps to reproduce the problem: 1. Set up an event listener via `navigator.geolocation.watchPosition` that logs its arguments 2. In DevTool's GeoLocation emulation tab, type new coordinates into the inputs 3. Press enter while still being focused the input to apply the coordinates What is the expected behavior? Once the enter key is pressed or an input blurs, the event listener logs an event What went wrong? The event listener logs two events Did this work before? N/A Chrome version: 53.0.2752.0 Channel: canary OS Version: 53.0.2752.0 Flash Version: Shockwave Flash 21.0 r0
,
Jun 22 2016
Yes, certainly. Here's a test URL with detailed instructions on how to reproduce the bug. https://jsfiddle.net/dgrsk23r/
,
Jun 23 2016
Thanks for the update, could you please help with a screen cast to further investigate it with a proper repro steps. PFA the screen cast tried and let us know if any thing is missed here. Note : You can use screen-O-Matic to record the steps.
,
Jun 23 2016
@durga.behera It seems that your screencast is completely missing geolocation emulation. Please find attached a screencast that shows how the bug can be reproduced. Just in case you're infamiliar with the device emulation functionality in DevTools, you can open the lower menu by pressing the `Esc` key.
,
Jun 23 2016
Thank you for providing more feedback. Adding requester "kavvaru@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 1 2016
Sounds like we have multiple event handlers bound that are overlapping.
,
Mar 13 2017
Cleaning up "Needs-Review" label as we are not using this label for triage anymore. Ref bug for this cleanup 684919
,
May 1 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b0fb333255e386d83f6d1b69d7239011e780ae4b commit b0fb333255e386d83f6d1b69d7239011e780ae4b Author: luoe <luoe@chromium.org> Date: Mon May 01 21:50:02 2017 DevTools: pressing enter in bound input fields should not fire change handler When a user modifies a bound input's text and presses Enter, the bound callback would fire once on keydown and once on the following 'change' event. This CL prevents the default 'change' event from following up to avoid two calls. BUG= 621922 Review-Url: https://codereview.chromium.org/2843203003 Cr-Commit-Position: refs/heads/master@{#468433} [modify] https://crrev.com/b0fb333255e386d83f6d1b69d7239011e780ae4b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
,
May 8 2017
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by kavvaru@chromium.org
, Jun 22 2016Labels: Needs-Feedback