summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/options2/options_page.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/options2/options_page.js')
-rw-r--r--chrome/browser/resources/options2/options_page.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/resources/options2/options_page.js b/chrome/browser/resources/options2/options_page.js
index c42cac4..eead8a7 100644
--- a/chrome/browser/resources/options2/options_page.js
+++ b/chrome/browser/resources/options2/options_page.js
@@ -779,9 +779,11 @@ cr.define('options', function() {
if (visible) {
uber.invokeMethodOnParent('beginInterceptingEvents');
this.pageDiv.removeAttribute('aria-hidden');
- this.parentPage.pageDiv.setAttribute('aria-hidden', true);
+ if (this.parentPage)
+ this.parentPage.pageDiv.setAttribute('aria-hidden', true);
} else {
- this.parentPage.pageDiv.removeAttribute('aria-hidden');
+ if (this.parentPage)
+ this.parentPage.pageDiv.removeAttribute('aria-hidden');
}
if (container.hidden != visible) {