[EFL] Use ewk_view to navigate in history instead of ewk_history.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Sep 2011 00:43:07 +0000 (00:43 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Sep 2011 00:43:07 +0000 (00:43 +0000)
https://bugs.webkit.org/show_bug.cgi?id=68455

Patch by Raphael Kubo da Costa <kubo@profusion.mobi> on 2011-09-22
Reviewed by Antonio Gomes.

BackForwardItem::invoke() was using ewk_history functions to navigate
in history; however, this will only call WebCore::BackForwardListImpl
and not move between pages at all. We now call ewk_view_navigate and
its siblings to make sure the navigation actually happens.

This should make tests like fast/dom/navigation-type-back-forward.html
stop timing out.

* DumpRenderTree/efl/WorkQueueItemEfl.cpp:
(BackForwardItem::invoke):

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

Tools/ChangeLog
Tools/DumpRenderTree/efl/WorkQueueItemEfl.cpp

index 94e7299..dafdd46 100644 (file)
@@ -1,3 +1,21 @@
+2011-09-22  Raphael Kubo da Costa  <kubo@profusion.mobi>
+
+        [EFL] Use ewk_view to navigate in history instead of ewk_history.
+        https://bugs.webkit.org/show_bug.cgi?id=68455
+
+        Reviewed by Antonio Gomes.
+
+        BackForwardItem::invoke() was using ewk_history functions to navigate
+        in history; however, this will only call WebCore::BackForwardListImpl
+        and not move between pages at all. We now call ewk_view_navigate and
+        its siblings to make sure the navigation actually happens.
+
+        This should make tests like fast/dom/navigation-type-back-forward.html
+        stop timing out.
+
+        * DumpRenderTree/efl/WorkQueueItemEfl.cpp:
+        (BackForwardItem::invoke):
+
 2011-09-22  Dean Jackson  <dino@apple.com>
 
         Add ENABLE_CSS_FILTERS
index 8eb6577..e7a096d 100644 (file)
@@ -23,6 +23,7 @@
 #include "WorkQueueItem.h"
 
 #include "DumpRenderTree.h"
+#include "DumpRenderTreeChrome.h"
 
 #include <EWebKit.h>
 #include <JavaScriptCore/JSStringRef.h>
@@ -67,16 +68,12 @@ bool ScriptItem::invoke() const
 
 bool BackForwardItem::invoke() const
 {
-    Ewk_History* history = ewk_view_history_get(browser);
-
     if (m_howFar == 1)
-        ewk_history_forward(history);
+        ewk_view_forward(browser->mainView());
     else if (m_howFar == -1)
-        ewk_history_back(history);
-    else {
-        const Ewk_History_Item* item = ewk_history_history_item_nth_get(history, m_howFar);
-        ewk_history_history_item_set(history, item);
-    }
+        ewk_view_back(browser->mainView());
+    else
+        ewk_view_navigate(browser->mainView(), m_howFar);
 
     return true;
 }