Bug 148366 - Web Inspector: Don't execute hovered functions while paused in Debugger
Summary: Web Inspector: Don't execute hovered functions while paused in Debugger
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Local Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-08-22 19:32 PDT by Nikita Vasilyev
Modified: 2016-12-13 15:36 PST (History)
3 users (show)

See Also:


Attachments
Animated GIF of the problem (332.92 KB, image/gif)
2015-08-22 19:33 PDT, Nikita Vasilyev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ?