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

Issue 1809543002: [DevTools] Add 200ms timeout to menu on mousedown behavior. (Closed)

Created:
4 years, 9 months ago by dgozman
Modified:
4 years, 9 months ago
Reviewers:
caseq, PhistucK, pfeldman
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman, sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Add 200ms timeout to menu on mousedown behavior. BUG=594524 Committed: https://crrev.com/b18dcbd20c61ba22fd430bbbf0066f738d480a66 Cr-Commit-Position: refs/heads/master@{#381466}

Patch Set 1 #

Total comments: 4

Patch Set 2 : improved #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js View 1 2 chunks +14 lines, -0 lines 2 comments Download

Messages

Total messages: 19 (8 generated)
dgozman
Take a look please.
4 years, 9 months ago (2016-03-15 23:52:41 UTC) #2
caseq
lgtm https://codereview.chromium.org/1809543002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js File third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js (right): https://codereview.chromium.org/1809543002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js#newcode671 third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js:671: if (this._triggerTimeout) { nit: if (!this._triggerTimeout) return; https://codereview.chromium.org/1809543002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js#newcode673 ...
4 years, 9 months ago (2016-03-16 00:12:00 UTC) #3
dgozman
https://codereview.chromium.org/1809543002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js File third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js (right): https://codereview.chromium.org/1809543002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js#newcode671 third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js:671: if (this._triggerTimeout) { On 2016/03/16 00:12:00, caseq wrote: > ...
4 years, 9 months ago (2016-03-16 01:54:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809543002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809543002/20001
4 years, 9 months ago (2016-03-16 01:54:50 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/157438)
4 years, 9 months ago (2016-03-16 02:03:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809543002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809543002/20001
4 years, 9 months ago (2016-03-16 16:02:31 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-16 16:17:33 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/b18dcbd20c61ba22fd430bbbf0066f738d480a66 Cr-Commit-Position: refs/heads/master@{#381466}
4 years, 9 months ago (2016-03-16 16:19:04 UTC) #14
PhistucK
https://codereview.chromium.org/1809543002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js File third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js (right): https://codereview.chromium.org/1809543002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js#newcode656 third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js:656: delete this._triggerTimeout; As far as I know, delete foo; ...
4 years, 9 months ago (2016-03-16 18:04:48 UTC) #16
PhistucK
See http://jsperf.com/delete-vs-undefined-vs-null/67 - it is an order of magnitude faster (and that does not even ...
4 years, 9 months ago (2016-03-16 18:12:18 UTC) #17
pfeldman
4 years, 9 months ago (2016-03-16 19:33:31 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/1809543002/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js (right):

https://codereview.chromium.org/1809543002/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js:656: delete
this._triggerTimeout;
On 2016/03/16 18:04:48, PhistucK wrote:
> As far as I know, delete foo; is discouraged because it "rebuilds the world"
(so
> optimizations may have to be re-compiled?) and hurts performance.
> 
> Perhaps just this._triggerTimeout = 0;?

This code path will never be optimized in the first place and delete property is
something we carry from the WebKit times.

Powered by Google App Engine
This is Rietveld 408576698