RESOLVED WONTFIX 25045
[GTK] Plugins with missing NPAPI callbacks crash WebKit
https://bugs.webkit.org/show_bug.cgi?id=25045
Summary [GTK] Plugins with missing NPAPI callbacks crash WebKit
James Su
Reported 2009-04-03 19:47:14 PDT
webkit gtk crashed when destroying a webview wich is loading a flash. The backtrace is: (gdb) bt #0 0x0000000000000000 in ?? () #1 0x00007fffedab2ed1 in WebCore::NetscapePlugInStreamLoader::didFinishLoading (this=0x7fffe82ffa00) at WebCore/loader/NetscapePlugInStreamLoader.cpp:103 #2 0x00007fffedab5361 in WebCore::ResourceLoader::didCancel (this=0x7fffe82ffa00, error=@0x7fffffffc7c0) at WebCore/loader/ResourceLoader.cpp:338 #3 0x00007fffedab2dc3 in WebCore::NetscapePlugInStreamLoader::didCancel (this=0x7fffe82ffa00, error=@0x7fffffffc7c0) at WebCore/loader/NetscapePlugInStreamLoader.cpp:127 #4 0x00007fffedab6416 in WebCore::ResourceLoader::cancel (this=0x7fffe82ffa00, error=<value optimized out>) at WebCore/loader/ResourceLoader.cpp:359 #5 0x00007fffedab61e4 in WebCore::ResourceLoader::cancel (this=0x7fffe82ff500) at WebCore/loader/ResourceLoader.cpp:349 #6 0x00007fffeda83b35 in WebCore::cancelAll (loaders=<value optimized out>) at WebCore/loader/DocumentLoader.cpp:127 #7 0x00007fffeda83c3f in WebCore::DocumentLoader::stopLoadingPlugIns (this=<value optimized out>, this=<value optimized out>) at WebCore/loader/DocumentLoader.cpp:744 #8 WebCore::DocumentLoader::stopLoading (this=<value optimized out>, this=<value optimized out>) at WebCore/loader/DocumentLoader.cpp:324 #9 0x00007fffeda98a30 in WebCore::FrameLoader::stopAllLoaders (this=0x7fffe81a9050) at WebCore/loader/FrameLoader.cpp:2673 #10 0x00007fffed800f1c in webkit_web_view_dispose (object=0x78dc10) at WebKit/gtk/webkit/webkitwebview.cpp:830 #11 0x000000388ba0ddd0 in IA__g_object_run_dispose (object=0x78dc10) at gobject.c:789 #12 0x00000038932eafa8 in gtk_fixed_forall (container=<value optimized out>, include_internals=<value optimized out>, callback=0x389343efd0 <IA__gtk_widget_destroy>, callback_data=0x0) at gtkfixed.c:449 #13 0x00000038932acdb9 in gtk_container_destroy (object=0x8140c0) at gtkcontainer.c:1066 Test environment: Fedora rawhide 64bit, webkit gtk 1.1.1
Attachments
fixes this and analog crashes (640 bytes, patch)
2009-10-29 02:56 PDT, Jean Brefort
no flags
Jan Alonzo
Comment 1 2009-06-07 19:44:34 PDT
Hi James, Can you please try with 1.1.8 and a recent flash plugin 64-bit from Adobe? I'm currently using ToT + the 64-bit plugin and it works fine here.
Jean Brefort
Comment 2 2009-10-29 02:56:53 PDT
Created attachment 42085 [details] fixes this and analog crashes Some plugins seem to not implement all functions. This might be considered as a bug in the plugin, but anyway webkit should not crash. This might occur for plugins which load data only from temporary files (such plugins might not work anyway with webkit because of #19012).
Nicolas Dufresne
Comment 3 2010-11-01 09:58:28 PDT
(In reply to comment #2) > Created an attachment (id=42085) [details] > fixes this and analog crashes > > Some plugins seem to not implement all functions. This might be considered as a bug in the plugin, but anyway webkit should not crash. > This might occur for plugins which load data only from temporary files (such plugins might not work anyway with webkit because of #19012). I think adding stub functions would be better instead, would keep the code more readable.
Martin Robinson
Comment 4 2010-12-01 17:33:06 PST
Nicolas, are you going to tackle this one?
Nicolas Dufresne
Comment 5 2010-12-01 17:45:55 PST
(In reply to comment #4) > Nicolas, are you going to tackle this one? This is not my first priority at the moment, but I planned to do so eventually. This also need unit testing I think.
Martin Robinson
Comment 6 2014-04-08 18:05:09 PDT
Probably should be re-approached from the WebKit2 perspective.
Note You need to log in before you can comment on or make changes to this bug.