Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Issue 2818883002: [DevTools] Swallow mouse up in inspect mode (Closed)

Created:
3 years, 8 months ago by dgozman
Modified:
3 years, 8 months ago
Reviewers:
pfeldman
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Swallow mouse up in inspect mode Currently, we dispatch mouseup to the page after selecting an element in inspect mode. This could trigger any incovenient side-effects including removal of inspected element. Swallowing mouseup fixes that problem. This is not a 100% solution: overlay disappears if user holds mouse for 2 seconds, and mouseup still gets to the page. That's a minor problem, so this solution is good enough. BUG=711320 Review-Url: https://codereview.chromium.org/2818883002 Cr-Commit-Position: refs/heads/master@{#464986} Committed: https://chromium.googlesource.com/chromium/src/+/88ebc67e440fa500369a453b32ac5f32a7dcbc64

Patch Set 1 #

Total comments: 1

Patch Set 2 : better #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -3 lines) Patch
M third_party/WebKit/Source/web/InspectorOverlay.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.cpp View 1 4 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
dgozman
Take a look please.
3 years, 8 months ago (2017-04-13 23:49:01 UTC) #2
pfeldman
https://codereview.chromium.org/2818883002/diff/1/third_party/WebKit/Source/web/InspectorOverlay.cpp File third_party/WebKit/Source/web/InspectorOverlay.cpp (right): https://codereview.chromium.org/2818883002/diff/1/third_party/WebKit/Source/web/InspectorOverlay.cpp#newcode772 third_party/WebKit/Source/web/InspectorOverlay.cpp:772: return ShouldSearchForNode(); As of this moment, don't update hovered_node_for_inspect_mode_.
3 years, 8 months ago (2017-04-14 00:37:39 UTC) #3
dgozman
What do you think about this approach?
3 years, 8 months ago (2017-04-14 16:29:11 UTC) #5
pfeldman
lgtm
3 years, 8 months ago (2017-04-17 17:45:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2818883002/20001
3 years, 8 months ago (2017-04-17 17:49:46 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-04-17 19:43:21 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/88ebc67e440fa500369a453b32ac...

Powered by Google App Engine
This is Rietveld 408576698