[webkit-reviews] review requested: [Bug 83030] [EFL] DRT should support LayoutTestController's dumpFrameLoadCallbacks() : [Attachment 136939] Proposed patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 12 11:31:14 PDT 2012


Christophe Dumez <christophe.dumez at intel.com> has asked  for review:
Bug 83030: [EFL] DRT should support LayoutTestController's
dumpFrameLoadCallbacks()
https://bugs.webkit.org/show_bug.cgi?id=83030

Attachment 136939: Proposed patch
https://bugs.webkit.org/attachment.cgi?id=136939&action=review

------- Additional Comments from Christophe Dumez <christophe.dumez at intel.com>
The previous tests was causing timeouts in the following tests:
* http/tests/eventsource/existent-eventsource-status-error-iframe-crash.html
* http/tests/eventsource/existent-eventsource-status-error-iframe-crash.html
*
http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash.html
* http/tests/misc/location-replace-crossdomain.html
* http/tests/misc/cached-scripts.html
* http/tests/misc/onload-remove-iframe-crash-2.html
* fast/dom/HTMLDocument/frameless-location-bugzilla10837.html
* fast/dom/gc-6.html
* fast/dom/attr_dead_doc.html
* fast/dom/frame-loading-via-document-write.html
*
fast/dom/Window/Location/window-shadow-location-using-js-object-with-toString.h
tml
* fast/dom/Window/closure-access-after-navigation-iframe.html
* fast/dom/constructors-cached-navigate.html
* fast/dom/HTMLObjectElement/object-as-frame.html
* fast/dom/HTMLHeadElement/head-check.html
* fast/dom/NodeList/adoptNode-node-list-cache.html
* fast/dom/DOMImplementation/createDocument-with-used-doctype.html
* fast/dom/gc-7.html
*
fast/css-generated-content/positioned-div-with-floating-after-content-crash.htm
l
* fast/css/user-stylesheet-crash.html
* fast/css/stylesheet-candidate-nodes-crash.xhtml

I updated the "load,started" signal that is emitted on the ewk_view so that the
ewk_frame which started loading is passed to the listeners.
This way I can get rid of the following hack in EFL's DRT:

-void DumpRenderTreeChrome::onLoadStarted(void*, Evas_Object* view, void*)
+void DumpRenderTreeChrome::onLoadStarted(void*, Evas_Object* view, void*
eventInfo)
 {
-    // FIXME: we actually need the frame related to this event
-    Evas_Object* frame = ewk_view_frame_main_get(view);
+    Evas_Object* frame = static_cast<Evas_Object*>(eventInfo);

After this fix, I can no longer experience any timeouts in the tests.


More information about the webkit-reviews mailing list