Changeset 64928 in webkit
- Timestamp:
- Aug 7, 2010 6:59:00 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r64921 r64928 1 2010-08-07 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Anders Carlsson. 4 5 WebKitTestRunner needs to print onunload handler information 6 <rdar://problem/8213831> 7 https://bugs.webkit.org/show_bug.cgi?id=42703 8 9 * platform/mac-wk2/Skipped: 10 1 11 2010-08-07 Sam Weinig <sam@webkit.org> 2 12 -
trunk/LayoutTests/platform/mac-wk2/Skipped
r64921 r64928 1794 1794 http/tests/plugins/third-party-cookie-accept-policy.html 1795 1795 1796 # WebKitTestRunner needs to print onunload handler information1797 # <https://bugs.webkit.org/show_bug.cgi?id=42703>1798 fast/events/onunload-clears-onbeforeunload.html1799 fast/events/onunload-not-on-body.html1800 fast/events/onunload.html1801 fast/events/pageshow-pagehide-on-back-uncached.html1802 fast/events/pageshow-pagehide.html1803 fast/events/stop-load-in-unload-handler-using-document-write.html1804 fast/events/stop-load-in-unload-handler-using-window-stop.html1805 fast/forms/button-state-restore.html1806 fast/frames/frame-unload-crash.html1807 fast/loader/onunload-form-submit-crash-2.html1808 fast/loader/onunload-form-submit-crash.html1809 fast/loader/start-load-in-unload.html1810 fast/loader/stateobjects/pushstate-in-iframe.html1811 fast/loader/stateobjects/replacestate-in-iframe.html1812 fast/loader/unload-form-about-blank.html1813 fast/loader/unload-form-post-about-blank.html1814 fast/loader/unload-form-post.html1815 fast/loader/unload-form.html1816 fast/loader/unload-hyperlink-targeted.html1817 fast/loader/unload-hyperlink.html1818 fast/loader/unload-javascript-url.html1819 fast/loader/unload-reload.html1820 fast/loader/unload-window-location.html1821 http/tests/navigation/history-back-across-form-submission-to-fragment.html1822 http/tests/security/window-events-pass.html1823 http/tests/xmlhttprequest/frame-load-cancelled-abort.html1824 http/tests/xmlhttprequest/frame-unload-abort-crash.html1825 http/tests/xmlhttprequest/send-undefined-and-null.html1826 http/tests/xmlhttprequest/xhr-onunload.html1827 1828 1796 # WebKitTestRunner needs to print history delegate information 1829 1797 # <https://bugs.webkit.org/show_bug.cgi?id=42704> … … 1985 1953 # match Firefox or Chrome. We should either fix the test, or get rid of it. 1986 1954 plugins/get-url-with-blank-target.html 1955 1956 # Unexplained failures that were formerly in the WebKitTestRunner needs to print onunload handler list. 1957 fast/events/onunload-clears-onbeforeunload.html 1987 1958 1988 1959 # Unexplained failures that were formerly in the dumpChildFramesAsText list. -
trunk/WebKit2/ChangeLog
r64927 r64928 1 2010-08-07 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Anders Carlsson. 4 5 WebKitTestRunner needs to print onunload handler information 6 <rdar://problem/8213831> 7 https://bugs.webkit.org/show_bug.cgi?id=42703 8 9 Add SPI to get the number of pending unload events. 10 11 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: 12 (WKBundleFrameGetPendingUnloadCount): 13 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h: 14 * WebProcess/WebPage/WebFrame.cpp: 15 (WebKit::WebFrame::pendingUnloadCount): 16 * WebProcess/WebPage/WebFrame.h: 17 1 18 2010-08-07 Sam Weinig <sam@webkit.org> 2 19 -
trunk/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
r64803 r64928 104 104 return toCopiedRef(toWK(frameRef)->innerText()); 105 105 } 106 107 unsigned WKBundleFrameGetPendingUnloadCount(WKBundleFrameRef frameRef) 108 { 109 return toWK(frameRef)->pendingUnloadCount(); 110 } -
trunk/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h
r64426 r64928 45 45 WK_EXPORT unsigned WKBundleFrameGetNumberOfActiveAnimations(WKBundleFrameRef frame); 46 46 WK_EXPORT bool WKBundleFramePauseAnimationOnElementWithId(WKBundleFrameRef frame, WKStringRef name, WKStringRef elementID, double time); 47 WK_EXPORT unsigned WKBundleFrameGetPendingUnloadCount(WKBundleFrameRef frame); 47 48 48 49 #ifdef __cplusplus -
trunk/WebKit2/WebProcess/WebPage/WebFrame.cpp
r64803 r64928 250 250 } 251 251 252 unsigned WebFrame::pendingUnloadCount() 253 { 254 if (!m_coreFrame) 255 return 0; 256 257 return m_coreFrame->domWindow()->pendingUnloadEventListeners(); 258 } 259 252 260 JSGlobalContextRef WebFrame::jsContext() 253 261 { -
trunk/WebKit2/WebProcess/WebPage/WebFrame.h
r64861 r64928 87 87 bool pauseAnimationOnElementWithId(const WebCore::String& animationName, const WebCore::String& elementID, double time); 88 88 89 unsigned pendingUnloadCount(); 90 89 91 // Simple listener class used by plug-ins to know when frames finish or fail loading. 90 92 class LoadListener { -
trunk/WebKitTools/ChangeLog
r64927 r64928 1 2010-08-07 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Anders Carlsson. 4 5 WebKitTestRunner needs to print onunload handler information 6 <rdar://problem/8213831> 7 https://bugs.webkit.org/show_bug.cgi?id=42703 8 9 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: 10 (WTR::operator<<): 11 (WTR::InjectedBundlePage::didFinishDocumentLoadForFrame): 12 1 13 2010-08-07 Sam Weinig <sam@webkit.org> 2 14 -
trunk/WebKitTools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp
r64927 r64928 41 41 namespace WTR { 42 42 43 static ostream& operator<<(ostream& out, WKBundleFrameRef frame) 44 { 45 WKRetainPtr<WKStringRef> name(AdoptWK, WKBundleFrameCopyName(frame)); 46 if (WKBundleFrameIsMainFrame(frame)) { 47 if (!WKStringIsEmpty(name.get())) 48 out << "main frame \"" << name << "\""; 49 else 50 out << "main frame"; 51 } else { 52 if (!WKStringIsEmpty(name.get())) 53 out << "frame \"" << name << "\""; 54 else 55 out << "frame (anonymous)"; 56 } 57 58 return out; 59 } 60 43 61 static string dumpPath(WKBundleNodeRef node) 44 62 { … … 389 407 void InjectedBundlePage::didFinishDocumentLoadForFrame(WKBundleFrameRef frame) 390 408 { 409 410 unsigned pendingFrameUnloadEvents = WKBundleFrameGetPendingUnloadCount(frame); 411 if (pendingFrameUnloadEvents) 412 InjectedBundle::shared().os() << frame << " - has " << pendingFrameUnloadEvents << " onunload handler(s)\n"; 391 413 } 392 414
Note: See TracChangeset
for help on using the changeset viewer.