Changeset 55316 in webkit
- Timestamp:
- Feb 26, 2010 2:39:51 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r55315 r55316 49 49 * platform/mac/mathml/presentation/underover-expected.png: Added. 50 50 * platform/mac/mathml/presentation/underover-expected.txt: Added. 51 52 2010-02-26 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 53 54 Reviewed by Xan Lopez. 55 56 [GTK] Needs proper reporting of frame loader callbacks, in DRT 57 https://bugs.webkit.org/show_bug.cgi?id=32170 58 59 Unskip tests that now pass. 60 61 * LayoutTests/platform/gtk/http/tests/loading/redirect-with-no-location-crash-expected.txt: rebaselined. 62 * platform/gtk/Skipped: 51 63 52 64 2010-02-26 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> -
trunk/LayoutTests/platform/gtk/Skipped
r55309 r55316 1400 1400 fast/html/tab-order.html 1401 1401 fast/html/text-field-input-types.html 1402 fast/loader/frames-with-unload-handlers-in-page-cache.html1403 1402 fast/loader/main-document-url-for-non-http-loads.html 1404 fast/loader/onunload-form-submit-crash-2.html1405 fast/loader/onunload-form-submit-crash.html1406 1403 fast/loader/onload-policy-ignore-for-frame.html 1407 1404 fast/loader/policy-delegate-action-hit-test-zoomed.html … … 5643 5640 # Need proper frame loader callbacks reporting 5644 5641 # See https://bugs.webkit.org/show_bug.cgi?id=32170 5645 fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html5646 fast/loader/stateobjects/document-destroyed-navigate-back.html5647 5642 http/tests/loading/state-object-security-exception.html 5648 5643 http/tests/security/mixedContent/empty-url-plugin-in-frame.html -
trunk/LayoutTests/platform/gtk/http/tests/loading/redirect-with-no-location-crash-expected.txt
r48417 r55316 1 1 main frame - didFinishDocumentLoadForFrameframe "<!--framePath //<!--frame0-->-->" - didFinishDocumentLoadForFrame -
trunk/WebKit/gtk/ChangeLog
r55305 r55316 1 2009-12-04 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] Needs proper reporting of frame loader callbacks, in DRT 6 https://bugs.webkit.org/show_bug.cgi?id=32170 7 8 Add new signal to report when the document load is finished for a 9 frame. 10 11 * WebCoreSupport/FrameLoaderClientGtk.cpp: 12 (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad): 13 * webkit/webkitwebview.cpp: 14 (webkit_web_view_class_init): 15 1 16 2010-02-26 Antonio Gomes <tonikitoo@webkit.org> 2 17 -
trunk/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
r55086 r55316 789 789 void FrameLoaderClient::dispatchDidFinishDocumentLoad() 790 790 { 791 notImplemented(); 791 WebKitWebView* webView = getViewFromFrame(m_frame); 792 g_signal_emit_by_name(webView, "document-load-finished", m_frame); 792 793 } 793 794 -
trunk/WebKit/gtk/webkit/webkitwebview.cpp
r55300 r55316 159 159 DATABASE_QUOTA_EXCEEDED, 160 160 RESOURCE_REQUEST_STARTING, 161 DOCUMENT_LOAD_FINISHED, 161 162 LAST_SIGNAL 162 163 }; … … 2164 2165 WEBKIT_TYPE_NETWORK_REQUEST, 2165 2166 WEBKIT_TYPE_NETWORK_RESPONSE); 2167 2168 /* 2169 * DOM-related signals. These signals are experimental, for now, 2170 * and may change API and ABI. Their comments lack one * on 2171 * purpose, to make them not be catched by gtk-doc. 2172 */ 2173 2174 /* 2175 * WebKitWebView::document-load-finished 2176 * @web_view: the object which received the signal 2177 * @web_frame: the #WebKitWebFrame whose load dispatched this request 2178 * 2179 * Emitted when the DOM document object load is finished for the 2180 * given frame. 2181 */ 2182 webkit_web_view_signals[DOCUMENT_LOAD_FINISHED] = g_signal_new("document-load-finished", 2183 G_TYPE_FROM_CLASS(webViewClass), 2184 (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION), 2185 0, 2186 NULL, NULL, 2187 g_cclosure_marshal_VOID__OBJECT, 2188 G_TYPE_NONE, 1, 2189 WEBKIT_TYPE_WEB_FRAME); 2190 2166 2191 2167 2192 /* -
trunk/WebKitTools/ChangeLog
r55309 r55316 1 2010-02-26 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] Needs proper reporting of frame loader callbacks, in DRT 6 https://bugs.webkit.org/show_bug.cgi?id=32170 7 8 Fix reporting of unload handlers, so that it is emitted where 9 needed, not after it. 10 11 * DumpRenderTree/gtk/DumpRenderTree.cpp: 12 (webViewLoadFinished): 13 (webViewDocumentLoadFinished): 14 (createWebView): 15 1 16 2010-02-26 Antonio Gomes <tonikitoo@webkit.org> 2 17 -
trunk/WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp
r54942 r55316 551 551 if (frameName && (frameName[0] != '\0')) { 552 552 char* tmp = g_strdup_printf("main frame \"%s\"", frameName); 553 g_free 553 g_free(frameName); 554 554 frameName = tmp; 555 555 } else { … … 560 560 g_free(frameName); 561 561 frameName = g_strdup("frame (anonymous)"); 562 } else { 563 char* tmp = g_strdup_printf("frame \"%s\"", frameName); 564 g_free(frameName); 565 frameName = tmp; 562 566 } 563 567 … … 567 571 static void webViewLoadFinished(WebKitWebView* view, WebKitWebFrame* frame, void*) 568 572 { 569 if (!done && !gLayoutTestController->dumpFrameLoadCallbacks()) { 573 if (frame != topLoadingFrame) 574 return; 575 576 topLoadingFrame = 0; 577 WorkQueue::shared()->setFrozen(true); // first complete load freezes the queue for the rest of this test 578 if (gLayoutTestController->waitToDump()) 579 return; 580 581 if (WorkQueue::shared()->count()) 582 g_timeout_add(0, processWork, 0); 583 else 584 dump(); 585 } 586 587 static void webViewDocumentLoadFinished(WebKitWebView* view, WebKitWebFrame* frame, void*) 588 { 589 if (!done && gLayoutTestController->dumpFrameLoadCallbacks()) { 590 char* frameName = getFrameNameSuitableForTestResult(view, frame); 591 printf("%s - didFinishDocumentLoadForFrame", frameName); 592 g_free(frameName); 593 } else if (!done) { 570 594 guint pendingFrameUnloadEvents = webkit_web_frame_get_pending_unload_event_count(frame); 571 595 if (pendingFrameUnloadEvents) { … … 575 599 } 576 600 } 577 578 if (frame != topLoadingFrame)579 return;580 581 topLoadingFrame = 0;582 WorkQueue::shared()->setFrozen(true); // first complete load freezes the queue for the rest of this test583 if (gLayoutTestController->waitToDump())584 return;585 586 if (WorkQueue::shared()->count())587 g_timeout_add(0, processWork, 0);588 else589 dump();590 601 } 591 602 … … 776 787 "signal::close-web-view", webViewClose, 0, 777 788 "signal::database-quota-exceeded", databaseQuotaExceeded, 0, 789 "signal::document-load-finished", webViewDocumentLoadFinished, 0, 778 790 NULL); 779 791
Note: See TracChangeset
for help on using the changeset viewer.