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

Issue 1058533006: Bookmarked URL gets open in New tab, on pressing enter key for 'Folders' dropdown. (Closed)

Created:
5 years, 8 months ago by Deepak
Modified:
5 years, 8 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, tfarina, noyau+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bookmarked URL gets open in New tab, on pressing enter key for 'Folders' dropdown. When we select enter key then open item is getting called and it opens last focused item. This is due to 2 reasons: 1) getSelectedBookmarkNodes() returns bmm.list.selectedItems even when document.activeElement is 'Folders' or 'Organize' button. 2) openItem() is for opening the item in the list, for that bmm.list should be currently active Check have been added so that when we have bmm.list is active then only e.canExecute will become true. BUG=452853 Committed: https://crrev.com/4a6bfb77e3e806a58b6bdd89825f1d4a058df4d5 Cr-Commit-Position: refs/heads/master@{#325426}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : Changes as per review comments. #

Total comments: 2

Patch Set 5 : Changes as per review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M chrome/browser/resources/bookmark_manager/js/main.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (2 generated)
Deepak
PTAL.
5 years, 8 months ago (2015-04-16 07:01:54 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/1058533006/diff/40001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/1058533006/diff/40001/chrome/browser/resources/bookmark_manager/js/main.js#newcode511 chrome/browser/resources/bookmark_manager/js/main.js:511: e.canExecute = e.currentTarget.activeElement == bmm.list; There is also a ...
5 years, 8 months ago (2015-04-16 09:01:19 UTC) #3
Deepak
On 2015/04/16 09:01:19, Bernhard Bauer wrote: > https://codereview.chromium.org/1058533006/diff/40001/chrome/browser/resources/bookmark_manager/js/main.js > File chrome/browser/resources/bookmark_manager/js/main.js (right): > > https://codereview.chromium.org/1058533006/diff/40001/chrome/browser/resources/bookmark_manager/js/main.js#newcode511 ...
5 years, 8 months ago (2015-04-16 09:41:47 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/1058533006/diff/60001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/1058533006/diff/60001/chrome/browser/resources/bookmark_manager/js/main.js#newcode638 chrome/browser/resources/bookmark_manager/js/main.js:638: e.canExecute = e.target == bmm.list ? hasSelected() : false; ...
5 years, 8 months ago (2015-04-16 09:45:14 UTC) #5
Deepak
Changes done. PTAL Thanks https://codereview.chromium.org/1058533006/diff/60001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/1058533006/diff/60001/chrome/browser/resources/bookmark_manager/js/main.js#newcode638 chrome/browser/resources/bookmark_manager/js/main.js:638: e.canExecute = e.target == bmm.list ...
5 years, 8 months ago (2015-04-16 10:03:20 UTC) #6
Bernhard Bauer
LGTM
5 years, 8 months ago (2015-04-16 11:05:33 UTC) #7
Deepak
On 2015/04/16 11:05:33, Bernhard Bauer wrote: > LGTM Thanks
5 years, 8 months ago (2015-04-16 11:06:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1058533006/80001
5 years, 8 months ago (2015-04-16 11:06:45 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-16 12:22:51 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 12:23:46 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4a6bfb77e3e806a58b6bdd89825f1d4a058df4d5
Cr-Commit-Position: refs/heads/master@{#325426}

Powered by Google App Engine
This is Rietveld 408576698