RESOLVED INVALID29549
[Qt] QWebPluginFactory: plugin widgets gets deleted on "display: none"
https://bugs.webkit.org/show_bug.cgi?id=29549
Summary [Qt] QWebPluginFactory: plugin widgets gets deleted on "display: none"
Tor Arne Vestbø
Reported 2009-09-21 07:33:59 PDT
This bug report originated from Nokia internal issue QT-1181 --- Description --- In the Documentation for QWebPluginFactory::create we mention that ownership of the returned object will be transferred to the caller. Maybe we could elaborate more. For example one customer had problems with how to hide a plugin. When using a qt widget plugin or in general any <object>, they get deleted on display 'none'. This means that on showing it again, one have to restore the new plugin/<object> to the _exact_ state as before it was hidden.
Attachments
Kenneth Rohde Christiansen
Comment 1 2009-10-18 08:37:01 PDT
Not platform related. Changing to All.
Jocelyn Turcotte
Comment 2 2010-01-19 09:23:07 PST
The documentation seems ok to me, we could add details about the object livecycle. As I understand hiding/showing the surrounding container will delete/create the plugin. This is more dramatic and might be very annoying depending on the use case. We need a test case.
Simon Hausmann
Comment 3 2010-03-17 15:54:58 PDT
IMHO this is INVALID. In Qt 4.4's WebKit there was a bug that the plugins never got deleted at all (leak). In Qt 4.5 we fixed the leak and now behave like the other ports when it comes to plugins: With 'display: none' the render object is destroyed and thus the plugin widget. There's nothing Qt specific here.
Note You need to log in before you can comment on or make changes to this bug.