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

Issue 584693003: Fix MenuButton for the case where multiple listeners are defined. (Closed)

Created:
6 years, 3 months ago by Jamie
Modified:
6 years, 3 months ago
Reviewers:
kelvinp
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix MenuButton for the case where multiple listeners are defined. This is a minimal fix suitable for merging to M38. The underlying problem is that we create a new MenuButton instance (with its own click handler) for every connection. I recently changed the behaviour of MenuButton so that it toggles the 'active' class instead of adding it so that clicking on the button while a menu is open will dismiss it. However, this breaks if there an even number of MenuButton instances for a single DOM element. The correct fix is to make the tool-bar buttons owned by the tool-bar, which is a singleton. However, this minimal fix, which restores the M37 behaviour, is a better option for merging to M38. BUG=415410 Committed: https://crrev.com/2405b3063aa466a5133cac621962068088381087 Cr-Commit-Position: refs/heads/master@{#295759}

Patch Set 1 #

Patch Set 2 : Temporarily disable unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M remoting/webapp/menu_button.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/unittests/menu_button_unittest.js View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Jamie
ptal
6 years, 3 months ago (2014-09-18 22:31:03 UTC) #2
kelvinp
I think the root cause is that we don't clean up the state of element ...
6 years, 3 months ago (2014-09-18 23:28:56 UTC) #3
Jamie
On 2014/09/18 23:28:56, kelvinp wrote: > I think the root cause is that we don't ...
6 years, 3 months ago (2014-09-18 23:50:33 UTC) #4
kelvinp
lgtm
6 years, 3 months ago (2014-09-19 00:33:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/584693003/1
6 years, 3 months ago (2014-09-19 00:48:44 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/17839)
6 years, 3 months ago (2014-09-19 01:47:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/584693003/1
6 years, 3 months ago (2014-09-19 16:09:03 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/16082)
6 years, 3 months ago (2014-09-19 18:03:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/584693003/20001
6 years, 3 months ago (2014-09-19 18:40:54 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as deeef224cc0522b9178e75ab5199685d2ed14994
6 years, 3 months ago (2014-09-19 19:22:11 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 19:22:57 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2405b3063aa466a5133cac621962068088381087
Cr-Commit-Position: refs/heads/master@{#295759}

Powered by Google App Engine
This is Rietveld 408576698