[EFL][DRT] fast/loader/stop-provisional-loads.html fails
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Aug 2012 12:16:30 +0000 (12:16 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Aug 2012 12:16:30 +0000 (12:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=92219

Patch by Joone Hur <joone.hur@intel.com> on 2012-08-03
Reviewed by Kenneth Rohde Christiansen.

This patch adds the ability to tell DRT to call ewk_frame_stop
inside of a didStartProvisionalLoadForFrame signal handler.
It allows to pass fast/loader/stop-provisional-loads.html.

* DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
(DumpRenderTreeChrome::onFrameProvisionalLoad):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@124599 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/platform/efl/TestExpectations
Tools/ChangeLog
Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp

index 19d906c..4659fe1 100644 (file)
@@ -372,7 +372,6 @@ BUGWKEFL SKIP : http/tests/security/isolatedWorld/didClearWindowObject.html = PA
 BUGWK87974 : http/tests/download = TEXT IMAGE IMAGE+TEXT
 
 // Needs custom policy delegate enhancement to log DOM node info - EFL port is missing DOM node abstraction
-BUGWK87972 : fast/loader/stop-provisional-loads.html = TEXT
 BUGWK87972 : fast/loader/policy-delegate-action-hit-test-zoomed.html = TEXT
 BUGWK87972 : fast/encoding/mailto-always-utf-8.html = TEXT
 BUGWK87972 : fast/forms/mailto/formenctype-attribute-button-html.html = TEXT
index 6d019a0..551c457 100644 (file)
@@ -1,3 +1,17 @@
+2012-08-03  Joone Hur  <joone.hur@intel.com>
+
+        [EFL][DRT] fast/loader/stop-provisional-loads.html fails
+        https://bugs.webkit.org/show_bug.cgi?id=92219
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        This patch adds the ability to tell DRT to call ewk_frame_stop 
+        inside of a didStartProvisionalLoadForFrame signal handler.
+        It allows to pass fast/loader/stop-provisional-loads.html.
+
+        * DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
+        (DumpRenderTreeChrome::onFrameProvisionalLoad):
+
 2012-08-03  Balazs Kelemen  <kbalazs@webkit.org>
 
         [WTR] process unresponsiveness is reported to the wrong test
index 03e8148..0d1fa4b 100644 (file)
@@ -682,6 +682,15 @@ void DumpRenderTreeChrome::onFrameProvisionalLoad(void*, Evas_Object* frame, voi
         const String frameName(DumpRenderTreeSupportEfl::suitableDRTFrameName(frame));
         printf("%s - didStartProvisionalLoadForFrame\n", frameName.utf8().data());
     }
+
+    if (!topLoadingFrame && !done)
+        topLoadingFrame = frame;
+  
+    if (!done && gLayoutTestController->stopProvisionalFrameLoads()) { 
+        const String frameName(DumpRenderTreeSupportEfl::suitableDRTFrameName(frame));
+        printf("%s - stopping load in didStartProvisionalLoadForFrame callback\n", frameName.utf8().data());
+        ewk_frame_stop(frame);
+    }   
 }
 
 void DumpRenderTreeChrome::onFrameProvisionalLoadFailed(void*, Evas_Object* frame, void*)