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

Issue 1162293008: Fix some lingering WebUI focus issues. (Closed)

Created:
5 years, 6 months ago by Dan Beam
Modified:
5 years, 4 months ago
Reviewers:
dmazzoni
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix some lingering WebUI focus issues. 1) make (x) dialog buttons update whether focus outline is visible 2) don't restore focus when keyboard triggered dialogs are closed by mouse 3) make chrome://extensions overlays act more sanely 4) remove odd code that required activeElement != body to set initial focus R=dmazzoni@chromium.org BUG=472031, 481502 Committed: https://crrev.com/9a5d453e3874add8cf533d20100767369b76d2f8 Cr-Commit-Position: refs/heads/master@{#332887}

Patch Set 1 : +1 fix #

Total comments: 10

Patch Set 2 : not more or less hacky, just hacky in a different way... #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -23 lines) Patch
M chrome/browser/resources/extensions/extension_commands_overlay.js View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/extensions/extension_error_overlay.js View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/extensions/extensions.js View 1 1 chunk +12 lines, -2 lines 1 comment Download
M chrome/browser/resources/extensions/pack_extension_overlay.js View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/webui/resources/js/cr/ui/compiled_resources.gyp View 1 1 chunk +13 lines, -0 lines 0 comments Download
M ui/webui/resources/js/cr/ui/focus_outline_manager.js View 1 2 chunks +4 lines, -5 lines 0 comments Download
M ui/webui/resources/js/cr/ui/overlay.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/webui/resources/js/cr/ui/page_manager/page_manager.js View 3 chunks +15 lines, -10 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Dan Beam
https://codereview.chromium.org/1162293008/diff/20001/chrome/browser/resources/extensions/extension_commands_overlay.js File chrome/browser/resources/extensions/extension_commands_overlay.js (left): https://codereview.chromium.org/1162293008/diff/20001/chrome/browser/resources/extensions/extension_commands_overlay.js#oldcode38 chrome/browser/resources/extensions/extension_commands_overlay.js:38: this.handleDismiss_.bind(this)); this was short-circuiting the focus restoration code. https://codereview.chromium.org/1162293008/diff/20001/ui/webui/resources/js/cr/ui/overlay.js ...
5 years, 6 months ago (2015-06-04 03:30:29 UTC) #2
dmazzoni
https://codereview.chromium.org/1162293008/diff/20001/chrome/browser/resources/extensions/extension_commands_overlay.js File chrome/browser/resources/extensions/extension_commands_overlay.js (right): https://codereview.chromium.org/1162293008/diff/20001/chrome/browser/resources/extensions/extension_commands_overlay.js#newcode38 chrome/browser/resources/extensions/extension_commands_overlay.js:38: cr.dispatchEvent(overlay, 'cancelOverlay'); Just curious, is there a reason this ...
5 years, 6 months ago (2015-06-04 03:34:56 UTC) #3
Dan Beam
https://codereview.chromium.org/1162293008/diff/20001/chrome/browser/resources/extensions/extension_commands_overlay.js File chrome/browser/resources/extensions/extension_commands_overlay.js (right): https://codereview.chromium.org/1162293008/diff/20001/chrome/browser/resources/extensions/extension_commands_overlay.js#newcode38 chrome/browser/resources/extensions/extension_commands_overlay.js:38: cr.dispatchEvent(overlay, 'cancelOverlay'); On 2015/06/04 03:34:56, dmazzoni wrote: > Just ...
5 years, 6 months ago (2015-06-04 18:50:35 UTC) #4
dmazzoni
lgtm
5 years, 6 months ago (2015-06-04 19:17:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1162293008/40001
5 years, 6 months ago (2015-06-04 19:18:38 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 6 months ago (2015-06-04 19:49:21 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9a5d453e3874add8cf533d20100767369b76d2f8 Cr-Commit-Position: refs/heads/master@{#332887}
5 years, 6 months ago (2015-06-04 19:50:02 UTC) #9
Dan Beam
5 years, 4 months ago (2015-08-11 02:31:41 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/1162293008/diff/40001/chrome/browser/resource...
File chrome/browser/resources/extensions/extensions.js (right):

https://codereview.chromium.org/1162293008/diff/40001/chrome/browser/resource...
chrome/browser/resources/extensions/extensions.js:398:
console.log('focusOutlineManager.visible', focusOutlineManager.visible);
^ oops

Powered by Google App Engine
This is Rietveld 408576698