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

Description Nikita Vasilyev 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.
Comment 1 Radar WebKit Bug Importer 2015-08-22 19:33:04 PDT
<rdar://problem/22393156>
Comment 2 Nikita Vasilyev 2015-08-22 19:33:27 PDT
Created attachment 259729 [details]
Animated GIF of the problem
Comment 3 BJ Burg 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 ?