haikuwebkit/LayoutTests/plugins/get-url-notify-with-url-tha...

5 lines
109 B
Plaintext
Raw Permalink Normal View History

2011-05-14 Anders Carlsson <andersca@apple.com> Reviewed by Kevin Decker. NPP_URLNotify is not called if a URL passed to NPN_GetURLNotify fails to load https://bugs.webkit.org/show_bug.cgi?id=60823 <rdar://problem/9430386> Add test that calls NPN_GetURLNotify on a URL that can't be loaded, and checks if NPP_URLNotify is called. * DumpRenderTree/DumpRenderTree.gypi: * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: * DumpRenderTree/TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp: Added. (GetURLNotifyWithURLThatFailsToLoad::GetURLNotifyWithURLThatFailsToLoad): (GetURLNotifyWithURLThatFailsToLoad::NPP_New): (GetURLNotifyWithURLThatFailsToLoad::NPP_URLNotify): * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: * GNUmakefile.am: 2011-05-14 Anders Carlsson <andersca@apple.com> Reviewed by Kevin Decker. NPP_URLNotify is not called if a URL passed to NPN_GetURLNotify fails to load https://bugs.webkit.org/show_bug.cgi?id=60823 <rdar://problem/9430386> Add test. * platform/gtk/Skipped: Add test to Skipped list since it apparently crashes. * plugins/get-url-notify-with-url-that-fails-to-load-expected.txt: Added. * plugins/get-url-notify-with-url-that-fails-to-load.html: Added. 2011-05-14 Anders Carlsson <andersca@apple.com> Reviewed by Kevin Decker. NPP_URLNotify is not called if a URL passed to NPN_GetURLNotify fails to load https://bugs.webkit.org/show_bug.cgi?id=60823 <rdar://problem/9430386> If a plug-in stream fails to load before it's been started, we won't destroy the stream. * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp: (WebKit::NetscapePluginStream::stop): Call notifyAndDestroyStream which will call NPP_URLNotify if necessary, and also destroy the stream. (WebKit::NetscapePluginStream::notifyAndDestroyStream): Pass the request URL to NPP_URLNotify, matching other browsers. Canonical link: https://commits.webkit.org/76140@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@86487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-05-14 16:31:11 +00:00
This tests that calling NPN_GetURLNotify on a URL that never even loads still calls NPP_URLNotify.
SUCCESS