Index: chrome/browser/resources/options2/options_page.js |
diff --git a/chrome/browser/resources/options2/options_page.js b/chrome/browser/resources/options2/options_page.js |
index c42cac4583d6d3f2a976b55355954c01ff56e86b..eead8a75c5f9a1f95762c3251ecf5c80cfdc4309 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) { |