<?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>41366</bug_id>
          
          <creation_ts>2010-06-29 11:57:06 -0700</creation_ts>
          <short_desc>[QT][S60] QGraphicsWebView based plugin crashes while destroying</short_desc>
          <delta_ts>2010-07-01 05:53:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>S60 Hardware</rep_platform>
          <op_sys>S60 3rd edition</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>37303</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Mahesh Kulkarni">maheshk</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abhinav.mithal</cc>
    
    <cc>cshu</cc>
    
    <cc>kenneth</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>yael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>244412</commentid>
    <comment_count>0</comment_count>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-06-29 11:57:06 -0700</bug_when>
    <thetext>Double deletion of PluginContainerSymbian causes crash while destroying the plugin on symbian phone. This is noticed only on QGraphicsWebView. 

Documentation from http://doc.trolltech.com/4.6.2/qgraphicsproxywidget.html

&quot;QGraphicsProxyWidget shares ownership with QWidget, so if either of the two widgets are destroyed, the other widget will be automatically destroyed as well.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>244422</commentid>
    <comment_count>1</comment_count>
      <attachid>60042</attachid>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-06-29 12:14:41 -0700</bug_when>
    <thetext>Created attachment 60042
proposed fix

No need to delete proxy separately as deleting any widget deletes both proxy and qwidget.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>244439</commentid>
    <comment_count>2</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-06-29 12:53:34 -0700</bug_when>
    <thetext>This patch will cause all proxy widgets to be deleted only when the browser is exiting and I don&apos;t think it is desired behavior.
Abhinav &amp; I looked at this yesterday, and we thought that since the desctuctor of the QGraphicsProxyWidget deletes the container, we should not delete the container if there is a proxy widget.
Abhinav is preparing a patch for that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>245083</commentid>
    <comment_count>3</comment_count>
      <attachid>60042</attachid>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-06-30 21:34:21 -0700</bug_when>
    <thetext>Comment on attachment 60042
proposed fix

fix for this bug is checked in as part of https://bugs.webkit.org/show_bug.cgi?id=37303

Obsoleting the bug and closing the bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>245084</commentid>
    <comment_count>4</comment_count>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-06-30 21:35:21 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 37303 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>245281</commentid>
    <comment_count>5</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-07-01 05:46:56 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; This patch will cause all proxy widgets to be deleted only when the browser is exiting and I don&apos;t think it is desired behavior.
&gt; Abhinav &amp; I looked at this yesterday, and we thought that since the desctuctor of the QGraphicsProxyWidget deletes the container, we should not delete the container if there is a proxy widget.
&gt; Abhinav is preparing a patch for that.

Actually, the above comment is not true. Abhinav &amp; I checked the code of QGraphicsProxyWidget and found that the proxy widget would have been deleted togather with the container. Sorry for the wrong comment :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>245286</commentid>
    <comment_count>6</comment_count>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-07-01 05:53:33 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #2)
&gt; &gt; This patch will cause all proxy widgets to be deleted only when the browser is exiting and I don&apos;t think it is desired behavior.
&gt; &gt; Abhinav &amp; I looked at this yesterday, and we thought that since the desctuctor of the QGraphicsProxyWidget deletes the container, we should not delete the container if there is a proxy widget.
&gt; &gt; Abhinav is preparing a patch for that.
&gt; 
&gt; Actually, the above comment is not true. Abhinav &amp; I checked the code of QGraphicsProxyWidget and found that the proxy widget would have been deleted togather with the container. Sorry for the wrong comment :-)

NP :) 
IMO either container or proxy deletion results in deletion of both by which we could avoid an extra check.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>60042</attachid>
            <date>2010-06-29 12:14:41 -0700</date>
            <delta_ts>2010-06-30 21:34:21 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>symbian_Crash.patch</filename>
            <type>text/plain</type>
            <size>1586</size>
            <attacher name="Mahesh Kulkarni">maheshk</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvcGx1Z2lucy9zeW1iaWFuL1BsdWdpblZpZXdTeW1iaWFuLmNwcAo9PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09Ci0tLSBXZWJDb3JlL3BsdWdpbnMvc3ltYmlhbi9QbHVnaW5WaWV3U3ltYmlhbi5jcHAJ
KHJldmlzaW9uIDYxMzkwKQorKysgV2ViQ29yZS9wbHVnaW5zL3N5bWJpYW4vUGx1Z2luVmlld1N5
bWJpYW4uY3BwCSh3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