| Index: chrome/browser/resources/tracing/overlay.js
|
| diff --git a/chrome/browser/resources/tracing/overlay.js b/chrome/browser/resources/tracing/overlay.js
|
| index bcf377111e951e0a68f4d30815fd2009f44dd804..1a911a83911cbeb931fd43bd0756553c6acbc7da 100644
|
| --- a/chrome/browser/resources/tracing/overlay.js
|
| +++ b/chrome/browser/resources/tracing/overlay.js
|
| @@ -56,7 +56,12 @@ cr.define('tracing', function() {
|
|
|
| // Bring overlay into focus.
|
| overlay.tabIndex = 0;
|
| - overlay.focus();
|
| + var focusElement =
|
| + overlay.querySelector('button, input, list, select, a');
|
| + if (!focusElement) {
|
| + focusElement = overlay;
|
| + }
|
| + focusElement.focus();
|
|
|
| // Listen to key and focus events to prevent focus from
|
| // leaving the overlay.
|
|
|