Bug 148366

Summary: Web Inspector: Don't execute hovered functions while paused in Debugger
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: graouts, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Animated GIF of the problem none

Nikita Vasilyev
Reported 2015-08-22 19:32:29 PDT
While paused in Debugger, hovering over selected code executes it in the current context. That would be fine in a functional language with no side-effects. JavaScript isn't such language. Imagine I want to copy "this._dropDatabase()". I select it using my mouse cursor. If I accidentally hover over it for a fraction of a second, it will execute it.
Attachments
Animated GIF of the problem (332.92 KB, image/gif)
2015-08-22 19:33 PDT, Nikita Vasilyev
no flags
Radar WebKit Bug Importer
Comment 1 2015-08-22 19:33:04 PDT
Nikita Vasilyev
Comment 2 2015-08-22 19:33:27 PDT
Created attachment 259729 [details] Animated GIF of the problem
Blaze Burg
Comment 3 2015-08-23 21:50:53 PDT
If the point of hovering is to show return values, could we ask JSC if it's effect-free ?
Note You need to log in before you can comment on or make changes to this bug.