Commit cb55d8b2 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: do not discard soft context menu on glass pane mouseup unconditionally.

BUG=521457
TBR=dgozman
NOTRY=true

Review URL: https://codereview.chromium.org/1301603003

git-svn-id: svn://svn.chromium.org/blink/trunk@200745 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent e476df3b
......@@ -329,6 +329,8 @@ WebInspector.SoftContextMenu.prototype = {
// Return if this is simple 'click', since dispatched on glass pane, can't use 'click' event.
if (new Date().getTime() - this._time < 300)
return;
if (event.target === this.element)
return;
this._discardMenu(true, event);
event.consume();
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment