Title: [162834] trunk/Source/WebCore
Revision
162834
Author
[email protected]
Date
2014-01-27 04:40:18 -0800 (Mon, 27 Jan 2014)

Log Message

AX: Disable accessibility after every test run
https://bugs.webkit.org/show_bug.cgi?id=127439

Patch by Chris Fleizach <[email protected]> on 2014-01-27
Reviewed by Csaba Osztrogonác.

Speculative fix for EFL build. Don't process these notifications unless accessibility is enabled.

* loader/FrameLoader.cpp:
(WebCore::FrameLoader::prepareForLoadStart):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (162833 => 162834)


--- trunk/Source/WebCore/ChangeLog	2014-01-27 11:13:19 UTC (rev 162833)
+++ trunk/Source/WebCore/ChangeLog	2014-01-27 12:40:18 UTC (rev 162834)
@@ -1,3 +1,15 @@
+2014-01-27  Chris Fleizach  <[email protected]>
+
+        AX: Disable accessibility after every test run
+        https://bugs.webkit.org/show_bug.cgi?id=127439
+
+        Reviewed by Csaba Osztrogonác.
+
+        Speculative fix for EFL build. Don't process these notifications unless accessibility is enabled.
+
+        * loader/FrameLoader.cpp:
+        (WebCore::FrameLoader::prepareForLoadStart):
+
 2014-01-27  Csaba Osztrogonác  <[email protected]>
 
         Buildfix for !ENABLE(COMPARE_AND_SWAP) platforms after r162774

Modified: trunk/Source/WebCore/loader/FrameLoader.cpp (162833 => 162834)


--- trunk/Source/WebCore/loader/FrameLoader.cpp	2014-01-27 11:13:19 UTC (rev 162833)
+++ trunk/Source/WebCore/loader/FrameLoader.cpp	2014-01-27 12:40:18 UTC (rev 162834)
@@ -1184,10 +1184,11 @@
     m_progressTracker->progressStarted();
     m_client.dispatchDidStartProvisionalLoad();
 
-    // Notify accessibility.
-    if (AXObjectCache* cache = m_frame.document()->existingAXObjectCache()) {
-        AXObjectCache::AXLoadingEvent loadingEvent = loadType() == FrameLoadTypeReload ? AXObjectCache::AXLoadingReloaded : AXObjectCache::AXLoadingStarted;
-        cache->frameLoadingEventNotification(&m_frame, loadingEvent);
+    if (AXObjectCache::accessibilityEnabled()) {
+        if (AXObjectCache* cache = m_frame.document()->existingAXObjectCache()) {
+            AXObjectCache::AXLoadingEvent loadingEvent = loadType() == FrameLoadTypeReload ? AXObjectCache::AXLoadingReloaded : AXObjectCache::AXLoadingStarted;
+            cache->frameLoadingEventNotification(&m_frame, loadingEvent);
+        }
     }
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to