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

Issue 2094873002: DevTools: fix deepActiveElement and focus on Dialog when document blurs (Closed)

Created:
4 years, 6 months ago by luoe
Modified:
4 years, 5 months ago
Reviewers:
dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, pfeldman, kozyatinskiy+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: fix deepActiveElement and focus on Dialog when document blurs - Before, deepActiveElement() returned the deepest shadow root's activeElement. Now, it returns the deepest activeElement (which may not be in the deepest shadow root) - Buttons 'Add pattern', 'Add custom device', 'Add custom profile' in the Blackboxing, Devices, and Throttling settings tabs now have default focus - Now that Dialog's keydown handler is on the body, pressing Esc now closes the settings dialog, even after the document blurs BUG=614902 Committed: https://crrev.com/6ad9d6295756dbc10cbfa1c4563f1dd477343b15 Cr-Commit-Position: refs/heads/master@{#403337}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Patch Set 3 : Re-added buttons as default elements and fix deepActiveElement and dialog focus #

Total comments: 2

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Address comments #

Patch Set 6 : Undo accidental rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js View 1 2 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/settings/FrameworkBlackboxSettingsTab.js View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/Dialog.js View 1 2 3 4 4 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (14 generated)
luoe
4 years, 6 months ago (2016-06-23 23:01:54 UTC) #3
dgozman
https://codereview.chromium.org/2094873002/diff/1/third_party/WebKit/Source/devtools/front_end/components/NetworkConditionsSelector.js File third_party/WebKit/Source/devtools/front_end/components/NetworkConditionsSelector.js (right): https://codereview.chromium.org/2094873002/diff/1/third_party/WebKit/Source/devtools/front_end/components/NetworkConditionsSelector.js#newcode287 third_party/WebKit/Source/devtools/front_end/components/NetworkConditionsSelector.js:287: this.setDefaultFocusedElement(addButton); How does this call interact with new override? ...
4 years, 6 months ago (2016-06-24 17:53:51 UTC) #4
luoe
https://codereview.chromium.org/2094873002/diff/1/third_party/WebKit/Source/devtools/front_end/components/NetworkConditionsSelector.js File third_party/WebKit/Source/devtools/front_end/components/NetworkConditionsSelector.js (right): https://codereview.chromium.org/2094873002/diff/1/third_party/WebKit/Source/devtools/front_end/components/NetworkConditionsSelector.js#newcode287 third_party/WebKit/Source/devtools/front_end/components/NetworkConditionsSelector.js:287: this.setDefaultFocusedElement(addButton); On 2016/06/24 17:53:51, dgozman wrote: > How does ...
4 years, 6 months ago (2016-06-24 20:41:53 UTC) #5
luoe
This CL has been changed so that the default buttons on Devices, Throttling, Blackboxing settings ...
4 years, 5 months ago (2016-06-29 21:37:56 UTC) #8
dgozman
https://codereview.chromium.org/2094873002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js File third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js (right): https://codereview.chromium.org/2094873002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js#newcode881 third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js:881: WebInspector.Dialog.focus(); I wonder how the dialog is different from ...
4 years, 5 months ago (2016-06-29 22:19:15 UTC) #9
luoe
I've updated the last patch to have Dialogs put their keydown handler on the document ...
4 years, 5 months ago (2016-06-30 00:03:16 UTC) #10
dgozman
This looks pretty good. A couple of questions: - do "add custom XXX" buttons get ...
4 years, 5 months ago (2016-06-30 17:06:55 UTC) #11
luoe
Yes to all. - 'Add custom...' buttons have default focus - pressing Esc once after ...
4 years, 5 months ago (2016-06-30 17:48:05 UTC) #13
dgozman
Thanks! lgtm
4 years, 5 months ago (2016-06-30 17:53:23 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2094873002/100001
4 years, 5 months ago (2016-06-30 17:54:33 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/253343)
4 years, 5 months ago (2016-06-30 18:39:17 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2094873002/100001
4 years, 5 months ago (2016-06-30 19:06:36 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/253432)
4 years, 5 months ago (2016-06-30 21:10:04 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2094873002/100001
4 years, 5 months ago (2016-06-30 21:20:17 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 22:09:12 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2094873002/100001
4 years, 5 months ago (2016-06-30 23:23:50 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-06-30 23:33:42 UTC) #30
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 23:33:44 UTC) #31
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 23:34:51 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6ad9d6295756dbc10cbfa1c4563f1dd477343b15
Cr-Commit-Position: refs/heads/master@{#403337}

Powered by Google App Engine
This is Rietveld 408576698