Bug 41366 - [QT][S60] QGraphicsWebView based plugin crashes while destroying
Summary: [QT][S60] QGraphicsWebView based plugin crashes while destroying
Status: RESOLVED DUPLICATE of bug 37303
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: S60 Hardware S60 3rd edition
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2010-06-29 11:57 PDT by Mahesh Kulkarni
Modified: 2010-07-01 05:53 PDT (History)
5 users (show)

See Also:


Attachments
proposed fix (1.55 KB, patch)
2010-06-29 12:14 PDT, Mahesh Kulkarni
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mahesh Kulkarni 2010-06-29 11:57:06 PDT
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

"QGraphicsProxyWidget shares ownership with QWidget, so if either of the two widgets are destroyed, the other widget will be automatically destroyed as well."
Comment 1 Mahesh Kulkarni 2010-06-29 12:14:41 PDT
Created attachment 60042 [details]
proposed fix

No need to delete proxy separately as deleting any widget deletes both proxy and qwidget.
Comment 2 Yael 2010-06-29 12:53:34 PDT
This patch will cause all proxy widgets to be deleted only when the browser is exiting and I don't think it is desired behavior.
Abhinav & 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.
Comment 3 Mahesh Kulkarni 2010-06-30 21:34:21 PDT
Comment on attachment 60042 [details]
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
Comment 4 Mahesh Kulkarni 2010-06-30 21:35:21 PDT

*** This bug has been marked as a duplicate of bug 37303 ***
Comment 5 Yael 2010-07-01 05:46:56 PDT
(In reply to comment #2)
> This patch will cause all proxy widgets to be deleted only when the browser is exiting and I don't think it is desired behavior.
> Abhinav & 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.

Actually, the above comment is not true. Abhinav & 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 :-)
Comment 6 Mahesh Kulkarni 2010-07-01 05:53:33 PDT
(In reply to comment #5)
> (In reply to comment #2)
> > This patch will cause all proxy widgets to be deleted only when the browser is exiting and I don't think it is desired behavior.
> > Abhinav & 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.
> 
> Actually, the above comment is not true. Abhinav & 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.