WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
127998
Web Inspector: Ability to break on any line that will/did trigger a focus or caret change: focus(), blur(), etc.
https://bugs.webkit.org/show_bug.cgi?id=127998
Summary
Web Inspector: Ability to break on any line that will/did trigger a focus or ...
James Craig
Reported
2014-01-31 10:35:21 PST
Web Inspector: Ability to break on any line that will/did trigger a focus or caret change: focus(), blur(), etc.
Attachments
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2014-01-31 10:37:08 PST
This would be enabling the DOMDebugger to break on events. Should be a dup of something.
Radar WebKit Bug Importer
Comment 2
2014-01-31 10:37:35 PST
<
rdar://problem/15958228
>
James Craig
Comment 3
2014-01-31 10:39:06 PST
I don't think so. Calling focus() and blur() does not trigger an event, specifically to avoid loops.
Joseph Pecoraro
Comment 4
2014-01-31 10:42:44 PST
Ahh, okay. That sounds reasonable.
bradley.meck
Comment 5
2014-01-31 11:21:33 PST
The key feature here is tracking the cause of a blur, focus, or caret change. The cause of the change and its location are not able to be determined at the time of an event (relatedTarget may give hints but not an actual location). For example, when you call element.focus() it queues a focus but the event that event lifecycle has no way to get back to the line that originally started the lifecycle. Even more useful than the actual location is the ability to add a breakpoint to debug around lines that are queueing changes in focus and/or caret. This becomes increasingly useful for tracking focus changes across multiple ticks that are the result of one another.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug