Bug 53016 - [GTK] Crash in some pages containing flash
Summary: [GTK] Crash in some pages containing flash
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-24 08:52 PST by Carlos Garcia Campos
Modified: 2011-01-25 01:38 PST (History)
7 users (show)

See Also:


Attachments
Patch to fix the crash (2.39 KB, patch)
2011-01-24 09:00 PST, Carlos Garcia Campos
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2011-01-24 08:52:02 PST
The problem is that the flash plugin can produce X errors that the GDK default X error handler handles by aborting the process. It's reproducible with the formula1 website: http://www.f1.com
Comment 1 Carlos Garcia Campos 2011-01-24 09:00:41 PST
Created attachment 79930 [details]
Patch to fix the crash
Comment 2 Eric Seidel (no email) 2011-01-24 13:15:13 PST
Adding gtk reviewers.
Comment 3 Xan Lopez 2011-01-24 13:19:18 PST
I went through this with Carlos before, it makes sense to me and seems everyone is doing something that ends up having the same effect. I'll let Martin give another r+, since this change is a bit hairy.
Comment 4 Martin Robinson 2011-01-24 13:24:16 PST
Comment on attachment 79930 [details]
Patch to fix the crash

View in context: https://bugs.webkit.org/attachment.cgi?id=79930&action=review

Seems very reasonable to me!

> Source/WebCore/plugins/gtk/PluginPackageGtk.cpp:113
> +              "This probably reflects a bug in the flash plugin.\n"

Here it should probably either say "in a plugin" or "in the Adobe Flash plugin"

> Source/WebCore/plugins/gtk/PluginPackageGtk.cpp:157
> +    if (!g_strcmp0(baseName.get(), "libflashplayer.so")) {

g_str_equal here might be clearer, unless there's a possibility that basename may be null.

> Source/WebCore/plugins/gtk/PluginPackageGtk.cpp:160
> +        // custom error handler to show a warning when a X error happenswithout aborting.

"happenswithout" -> happens without
Comment 5 Carlos Garcia Campos 2011-01-25 00:38:15 PST
(In reply to comment #4)
> (From update of attachment 79930 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=79930&action=review
> 
> Seems very reasonable to me!
> 
> > Source/WebCore/plugins/gtk/PluginPackageGtk.cpp:113
> > +              "This probably reflects a bug in the flash plugin.\n"
> 
> Here it should probably either say "in a plugin" or "in the Adobe Flash plugin"

We only do it for flash, so I'll use "in the Adobe Flash plugin" :-)

> > Source/WebCore/plugins/gtk/PluginPackageGtk.cpp:157
> > +    if (!g_strcmp0(baseName.get(), "libflashplayer.so")) {
> 
> g_str_equal here might be clearer, unless there's a possibility that basename may be null.
>
> > Source/WebCore/plugins/gtk/PluginPackageGtk.cpp:160
> > +        // custom error handler to show a warning when a X error happenswithout aborting.
> 
> "happenswithout" -> happens without

Thanks
Comment 6 Carlos Garcia Campos 2011-01-25 00:44:14 PST
Committed r76578: <http://trac.webkit.org/changeset/76578>
Comment 7 WebKit Review Bot 2011-01-25 01:38:57 PST
http://trac.webkit.org/changeset/76578 might have broken Leopard Intel Release (Tests)