<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>53016</bug_id>
          
          <creation_ts>2011-01-24 08:52:02 -0800</creation_ts>
          <short_desc>[GTK] Crash in some pages containing flash</short_desc>
          <delta_ts>2011-01-25 01:38:57 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>eric</cc>
    
    <cc>evan</cc>
    
    <cc>mrobinson</cc>
    
    <cc>tony</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>339045</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-01-24 08:52:02 -0800</bug_when>
    <thetext>The problem is that the flash plugin can produce X errors that the GDK default X error handler handles by aborting the process. It&apos;s reproducible with the formula1 website: http://www.f1.com</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>339051</commentid>
    <comment_count>1</comment_count>
      <attachid>79930</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-01-24 09:00:41 -0800</bug_when>
    <thetext>Created attachment 79930
Patch to fix the crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>339221</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-01-24 13:15:13 -0800</bug_when>
    <thetext>Adding gtk reviewers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>339222</commentid>
    <comment_count>3</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2011-01-24 13:19:18 -0800</bug_when>
    <thetext>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&apos;ll let Martin give another r+, since this change is a bit hairy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>339226</commentid>
    <comment_count>4</comment_count>
      <attachid>79930</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-01-24 13:24:16 -0800</bug_when>
    <thetext>Comment on attachment 79930
Patch to fix the crash

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

Seems very reasonable to me!

&gt; Source/WebCore/plugins/gtk/PluginPackageGtk.cpp:113
&gt; +              &quot;This probably reflects a bug in the flash plugin.\n&quot;

Here it should probably either say &quot;in a plugin&quot; or &quot;in the Adobe Flash plugin&quot;

&gt; Source/WebCore/plugins/gtk/PluginPackageGtk.cpp:157
&gt; +    if (!g_strcmp0(baseName.get(), &quot;libflashplayer.so&quot;)) {

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

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

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

We only do it for flash, so I&apos;ll use &quot;in the Adobe Flash plugin&quot; :-)

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

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>339532</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2011-01-25 00:44:14 -0800</bug_when>
    <thetext>Committed r76578: &lt;http://trac.webkit.org/changeset/76578&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>339549</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-01-25 01:38:57 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/76578 might have broken Leopard Intel Release (Tests)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>79930</attachid>
            <date>2011-01-24 09:00:41 -0800</date>
            <delta_ts>2011-01-25 00:44:40 -0800</delta_ts>
            <desc>Patch to fix the crash</desc>
            <filename>flash-crash.diff</filename>
            <type>text/plain</type>
            <size>2449</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">ZG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SW5pdGlhbGl6ZSA9IDA7CiAgICAgbV9OUFBfU2h1dGRvd24gPSAwOwogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>