diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/renderer/render_view.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/content/renderer/render_view.cc b/content/renderer/render_view.cc index c25e2f3..c752985 100644 --- a/content/renderer/render_view.cc +++ b/content/renderer/render_view.cc @@ -4065,14 +4065,17 @@ void RenderView::postAccessibilityNotification( const WebAccessibilityObject& obj, WebAccessibilityNotification notification) { if (!accessibility_.get() && webview()) { - // Load complete should be our first notification sent. - // TODO(ctguil): Investigate if a different notification is a WebCore bug. - if (notification != WebKit::WebAccessibilityNotificationLoadComplete) - return; - // Create and initialize our accessibility cache accessibility_.reset(WebAccessibilityCache::create()); accessibility_->initialize(webview()); + + // Load complete should be our first notification sent. Send it manually + // in cases where we don't get it first to avoid focus problems. + // TODO(ctguil): Investigate if a different notification is a WebCore bug. + if (notification != WebKit::WebAccessibilityNotificationLoadComplete) { + postAccessibilityNotification(accessibility_->getObjectById(1000), + WebKit::WebAccessibilityNotificationLoadComplete); + } } if (!accessibility_->isCached(obj)) { |