-
andersca authored
Reviewed by Oliver. <rdar://problem/4954319> Acrobat 7 / Safari crash: CrashTracer: 99 crashes in Safari at com.apple.WebCore: WebCore::NetscapePlugInStreamLoader::isDone const + 0 Add tests. * plugins/return-error-from-new-stream-callback-in-full-frame-plugin-expected.txt: Added. * plugins/return-error-from-new-stream-callback-in-full-frame-plugin.html: Added. WebCore: Reviewed by Oliver. Add DocumentLoader::isLoadingMainResource. * WebCore.exp: WebKit: Reviewed by Oliver. <rdar://problem/4954319> Acrobat 7 / Safari crash: CrashTracer: 99 crashes in Safari at com.apple.WebCore: WebCore::NetscapePlugInStreamLoader::isDone const + 0 Add a new initWithFrameLoader: method to WebNetscapePluginStream which is to be used when the stream is a "fake" stream for full frame plug-ins. * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView pluginView:receivedResponse:]): * Plugins/WebNetscapePluginStream.h: * Plugins/WebNetscapePluginStream.mm: (-[WebNetscapePluginStream initWithFrameLoader:]): (-[WebNetscapePluginStream initWithRequest:plugin:notifyData:sendNotification:]): (-[WebNetscapePluginStream start]): (-[WebNetscapePluginStream cancelLoadWithError:]): (-[WebNetscapePluginStream stop]): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::createFrame): WebKitTools: Reviewed by Oliver. <rdar://problem/4954319> Acrobat 7 / Safari crash: CrashTracer: 99 crashes in Safari at com.apple.WebCore: WebCore::NetscapePlugInStreamLoader::isDone const + 0 If the src url is "data:application/x-webkit-test-netscape,returnerrorfromnewstream", return an error from NPP_NewStream. * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.c: (pluginAllocate): * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h: * DumpRenderTree/TestNetscapePlugIn.subproj/main.c: (NPP_New): (NPP_NewStream): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24118 268f45cc-cd09-0410-ab3c-d52691b4dbfc
c2afade6