| Index: chrome/browser/resources/options/options_page.js
|
| diff --git a/chrome/browser/resources/options/options_page.js b/chrome/browser/resources/options/options_page.js
|
| index 968bb4794a062c89924676d1436879bf1991f33d..51dd79ff05624c0a2fa6906d650040f841972210 100644
|
| --- a/chrome/browser/resources/options/options_page.js
|
| +++ b/chrome/browser/resources/options/options_page.js
|
| @@ -355,6 +355,8 @@ cr.define('options', function() {
|
| // Blur the active element to ensure any changed pref value is saved.
|
| document.activeElement.blur();
|
| var overlay = this.getVisibleOverlay_();
|
| + if (!overlay)
|
| + return;
|
| // Let the overlay handle the <Esc> if it wants to.
|
| if (overlay.handleCancel) {
|
| overlay.handleCancel();
|
|
|