Description was changed from ========== MD Settings: Restore focus after closing dialogs, part 1. BUG= ...
3 years, 8 months ago
(2017-03-31 00:19:09 UTC)
#1
Description was changed from
==========
MD Settings: Restore focus after closing dialogs, part 1.
BUG=
==========
to
==========
MD Settings: Restore focus after closing dialogs, part 1.
BUG=
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
dpapad
Description was changed from ========== MD Settings: Restore focus after closing dialogs, part 1. BUG= ...
3 years, 8 months ago
(2017-03-31 00:20:43 UTC)
#2
Description was changed from
==========
MD Settings: Restore focus after closing dialogs, part 1.
BUG=
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
MD Settings: Restore focus after closing dialogs, part 1.
This CL addresses dialogs in
- people-page
- privacy-page (but not site settings)
- reset-page
- search-engines-page
BUG=668313
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
dpapad
The CQ bit was checked by dpapad@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-03-31 00:21:47 UTC)
#3
Description was changed from ========== MD Settings: Restore focus after closing dialogs, part 1. This ...
3 years, 8 months ago
(2017-03-31 00:45:27 UTC)
#5
Description was changed from
==========
MD Settings: Restore focus after closing dialogs, part 1.
This CL addresses dialogs in
- people-page
- privacy-page (but not site settings)
- reset-page
- search-engines-page
BUG=668313
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
MD Settings: Restore focus after closing various dialogs.
This CL addresses dialogs in
- people-page
- privacy-page (but not site settings)
- reset-page
- search-engines-page
BUG=668313
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
dpapad
Description was changed from ========== MD Settings: Restore focus after closing various dialogs. This CL ...
3 years, 8 months ago
(2017-03-31 01:23:56 UTC)
#6
Description was changed from
==========
MD Settings: Restore focus after closing various dialogs.
This CL addresses dialogs in
- people-page
- privacy-page (but not site settings)
- reset-page
- search-engines-page
BUG=668313
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
MD Settings: Restore focus after closing various dialogs.
This CL addresses dialogs in
- people-page
- privacy-page (but not site settings)
- reset-page
- search-engines-page
- languages-page
BUG=668313
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
dpapad
The CQ bit was checked by dpapad@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-03-31 01:24:48 UTC)
#7
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resources/settings/people_page/people_page.js File chrome/browser/resources/settings/people_page/people_page.js (right): https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resources/settings/people_page/people_page.js#newcode311 chrome/browser/resources/settings/people_page/people_page.js:311: this.$$('#disconnectButton').focus(); On 2017/04/03 at 15:39:50, tommycli wrote: > Hmm... ...
3 years, 8 months ago
(2017-04-03 19:23:06 UTC)
#14
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resource...
File chrome/browser/resources/settings/people_page/people_page.js (right):
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resource...
chrome/browser/resources/settings/people_page/people_page.js:311:
this.$$('#disconnectButton').focus();
On 2017/04/03 at 15:39:50, tommycli wrote:
> Hmm... this is interesting to me. Usually after a successful signout, the
disconnect dialog is no longer shown. Perhaps we should focus the sign-in dialog
instead.
I thought about this and settled to the current approach with the following
rationale:
The main goal of this patch is to ensure that focus is not completely lost when
the dialog is closed (without this CL it goes to the browser's home button next
to the omnibox). Focusing the "sign out" button even though it is being dom-ifed
out shortly after, achieves the goal of rescuing the focus. Even though the
"sign in" button is not focused, when the user presses Tab the focus goes to the
next element, which is the "learn more" link. Given that the "sign in" button is
added to the DOM after a series of async operations, so it is not trivial to get
a reference to it, I would prefer to addressing this case separately (but I
don't think it should be a blocker). WDYT?
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resource...
File chrome/browser/resources/settings/reset_page/reset_page.js (right):
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resource...
chrome/browser/resources/settings/reset_page/reset_page.js:62:
this.$$('#resetProfile button[is=paper-icon-button-light').focus();
On 2017/04/03 at 15:39:50, tommycli wrote:
> Are we very confident this won't be null? Also I think the selector is missing
a close bracket ]
Fixed closing bracket. Regarding whether it can be null, the button is not
within a dom-if, so it is always present on the page.
tommycli
lgtm. Below comment is optional. https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resources/settings/people_page/people_page.js File chrome/browser/resources/settings/people_page/people_page.js (right): https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resources/settings/people_page/people_page.js#newcode311 chrome/browser/resources/settings/people_page/people_page.js:311: this.$$('#disconnectButton').focus(); On 2017/04/03 19:23:05, ...
3 years, 8 months ago
(2017-04-03 19:30:52 UTC)
#15
lgtm. Below comment is optional.
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resource...
File chrome/browser/resources/settings/people_page/people_page.js (right):
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resource...
chrome/browser/resources/settings/people_page/people_page.js:311:
this.$$('#disconnectButton').focus();
On 2017/04/03 19:23:05, dpapad wrote:
> On 2017/04/03 at 15:39:50, tommycli wrote:
> > Hmm... this is interesting to me. Usually after a successful signout, the
> disconnect dialog is no longer shown. Perhaps we should focus the sign-in
dialog
> instead.
>
> I thought about this and settled to the current approach with the following
> rationale:
>
> The main goal of this patch is to ensure that focus is not completely lost
when
> the dialog is closed (without this CL it goes to the browser's home button
next
> to the omnibox). Focusing the "sign out" button even though it is being
dom-ifed
> out shortly after, achieves the goal of rescuing the focus. Even though the
> "sign in" button is not focused, when the user presses Tab the focus goes to
the
> next element, which is the "learn more" link. Given that the "sign in" button
is
> added to the DOM after a series of async operations, so it is not trivial to
get
> a reference to it, I would prefer to addressing this case separately (but I
> don't think it should be a blocker). WDYT?
I'm fine with addressing it separately. And yeah, it shouldn't block this.
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resource...
File chrome/browser/resources/settings/reset_page/reset_page.js (right):
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resource...
chrome/browser/resources/settings/reset_page/reset_page.js:62:
this.$$('#resetProfile button[is=paper-icon-button-light').focus();
On 2017/04/03 19:23:05, dpapad wrote:
> On 2017/04/03 at 15:39:50, tommycli wrote:
> > Are we very confident this won't be null? Also I think the selector is
missing
> a close bracket ]
>
>
> Fixed closing bracket. Regarding whether it can be null, the button is not
> within a dom-if, so it is always present on the page.
Acknowledged. I would probably still recommend giving it an ID to have it be
explicitly addressed (and so we can use the this.$.foo syntax, so future readers
will know it can never be null...)
dpapad
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resources/settings/reset_page/reset_page.js File chrome/browser/resources/settings/reset_page/reset_page.js (right): https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resources/settings/reset_page/reset_page.js#newcode62 chrome/browser/resources/settings/reset_page/reset_page.js:62: this.$$('#resetProfile button[is=paper-icon-button-light').focus(); On 2017/04/03 at 19:30:51, tommycli wrote: > ...
3 years, 8 months ago
(2017-04-04 00:03:16 UTC)
#16
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resource...
File chrome/browser/resources/settings/reset_page/reset_page.js (right):
https://codereview.chromium.org/2793463002/diff/20001/chrome/browser/resource...
chrome/browser/resources/settings/reset_page/reset_page.js:62:
this.$$('#resetProfile button[is=paper-icon-button-light').focus();
On 2017/04/03 at 19:30:51, tommycli wrote:
> On 2017/04/03 19:23:05, dpapad wrote:
> > On 2017/04/03 at 15:39:50, tommycli wrote:
> > > Are we very confident this won't be null? Also I think the selector is
missing
> > a close bracket ]
> >
> >
> > Fixed closing bracket. Regarding whether it can be null, the button is not
> > within a dom-if, so it is always present on the page.
>
> Acknowledged. I would probably still recommend giving it an ID to have it be
explicitly addressed (and so we can use the this.$.foo syntax, so future readers
will know it can never be null...)
Done.
dpapad
The CQ bit was checked by dpapad@chromium.org
3 years, 8 months ago
(2017-04-04 00:03:32 UTC)
#17
CQ is committing da patch. Bot data: {"patchset_id": 60001, "attempt_start_ts": 1491264212219800, "parent_rev": "c641a534451545e3124eacbd7f711dec84f3daed", "commit_rev": "79d1fe73c50b7a5f0ef25daed2a637710cb7e440"}
3 years, 8 months ago
(2017-04-04 02:46:14 UTC)
#20
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1491264212219800,
"parent_rev": "c641a534451545e3124eacbd7f711dec84f3daed", "commit_rev":
"79d1fe73c50b7a5f0ef25daed2a637710cb7e440"}
commit-bot: I haz the power
Description was changed from ========== MD Settings: Restore focus after closing various dialogs. This CL ...
3 years, 8 months ago
(2017-04-04 02:47:19 UTC)
#21
Message was sent while issue was closed.
Description was changed from
==========
MD Settings: Restore focus after closing various dialogs.
This CL addresses dialogs in
- people-page
- privacy-page (but not site settings)
- reset-page
- search-engines-page
- languages-page
BUG=668313
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
MD Settings: Restore focus after closing various dialogs.
This CL addresses dialogs in
- people-page
- privacy-page (but not site settings)
- reset-page
- search-engines-page
- languages-page
BUG=668313
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2793463002
Cr-Commit-Position: refs/heads/master@{#461616}
Committed:
https://chromium.googlesource.com/chromium/src/+/79d1fe73c50b7a5f0ef25daed2a6...
==========
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/79d1fe73c50b7a5f0ef25daed2a637710cb7e440
3 years, 8 months ago
(2017-04-04 02:47:20 UTC)
#22
Issue 2793463002: MD Settings: Restore focus after closing various dialogs.
(Closed)
Created 3 years, 8 months ago by dpapad
Modified 3 years, 8 months ago
Reviewers: tommycli
Base URL:
Comments: 7