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

Issue 2715793003: Allow an element in shadow tree in <dialog> to be initially focused. (Closed)

Created:
3 years, 10 months ago by kochi
Modified:
3 years, 9 months ago
Reviewers:
hayato, Dan Beam
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, Dan Beam, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow an element in shadow tree in <dialog> to be initially focused. This work arounds an issue when initally focused element on <dialog> is in a shadow tree, by using FlatTreeTraversal rather than NodeTraversal. Note that this behavior may change in the future once the detailed behavior is specified. This change is originally from dbeam@ http://crrev.com/2695013010#ps1 BUG=383230 Review-Url: https://codereview.chromium.org/2715793003 Cr-Commit-Position: refs/heads/master@{#453541} Committed: https://chromium.googlesource.com/chromium/src/+/1eaf120fcf6eff6426a8522de27eb3b204b1b5f9

Patch Set 1 #

Patch Set 2 : Add another test case. #

Total comments: 3

Patch Set 3 : Update the comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -8 lines) Patch
A third_party/WebKit/LayoutTests/html/dialog/shadowdom-in-dialog.html View 1 1 chunk +59 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLDialogElement.cpp View 1 2 2 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 32 (23 generated)
kochi
PTAL
3 years, 10 months ago (2017-02-24 08:10:56 UTC) #11
hayato
dbeam@, are you happy with this change as a workaround? Does this break anything?
3 years, 9 months ago (2017-02-27 03:29:42 UTC) #13
Dan Beam
I would change the specific implementation of focus in <dialog is="cr-dialog"> in MD settings, but ...
3 years, 9 months ago (2017-02-27 04:16:25 UTC) #14
Dan Beam
I would -> meaning I'll update it
3 years, 9 months ago (2017-02-28 05:00:18 UTC) #20
kochi
https://codereview.chromium.org/2715793003/diff/20001/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp File third_party/WebKit/Source/core/html/HTMLDialogElement.cpp (right): https://codereview.chromium.org/2715793003/diff/20001/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp#newcode48 third_party/WebKit/Source/core/html/HTMLDialogElement.cpp:48: // TODO(kochi): Use FlatTreeTraversal for finding focusable element in ...
3 years, 9 months ago (2017-02-28 06:10:28 UTC) #23
hayato
LGTM. I forgot to send a review comment. Could you confirm that? https://codereview.chromium.org/2715793003/diff/20001/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp File third_party/WebKit/Source/core/html/HTMLDialogElement.cpp ...
3 years, 9 months ago (2017-02-28 06:12:36 UTC) #24
kochi
On 2017/02/28 06:12:36, hayato wrote: > LGTM. > > I forgot to send a review ...
3 years, 9 months ago (2017-02-28 06:32:27 UTC) #25
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/2715793003/60001
3 years, 9 months ago (2017-02-28 06:32:55 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 07:48:45 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/1eaf120fcf6eff6426a8522de27e...

Powered by Google App Engine
This is Rietveld 408576698