| Index: third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js b/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
|
| index cf8fa00496ce10a0b13f27bba42c2a221a6e0ff1..cc0645ffa7f83f29ab17de60bc3f31a808dd8218 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
|
| @@ -657,11 +657,17 @@ WebInspector.ToolbarMenuButton = class extends WebInspector.ToolbarButton {
|
| */
|
| _trigger(event) {
|
| delete this._triggerTimeout;
|
| +
|
| + // Throttling avoids entering a bad state on Macs when rapidly triggering context menus just
|
| + // after the window gains focus. See crbug.com/655556
|
| + if (this._lastTriggerTime && Date.now() - this._lastTriggerTime < 300)
|
| + return;
|
| var contextMenu = new WebInspector.ContextMenu(
|
| event, this._useSoftMenu, this.element.totalOffsetLeft(),
|
| this.element.totalOffsetTop() + this.element.offsetHeight);
|
| this._contextMenuHandler(contextMenu);
|
| contextMenu.show();
|
| + this._lastTriggerTime = Date.now();
|
| }
|
|
|
| /**
|
|
|