[Webkit-unassigned] [Bug 20081] [Qt] Add support for windowless NPAPI plugins

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 25 03:02:39 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=20081





--- Comment #18 from Girish Ramakrishnan <girish at forwardbias.in>  2009-09-25 03:02:38 PDT ---
Created an attachment (id=40102)
 --> (https://bugs.webkit.org/attachment.cgi?id=40102)
Windowless patch - makes painting work

Painting works with windowless plugins with no flicker. Does not work when the
view is scrolled, I need to get the scroll offsets right.

My initial version drew directly to the backing store. But it has a couple of
problems - the backing store offset changes when new widgets appear _over_ the
QWebView. This means that we need to detect this (which is very hard) and also
do a setwindow call. The code says that calling setwindow multiple times
crashes plugin (doesn't say which plugin). In general, I thought it was safer
to just use a offscreen drawable.

Builds over yael's patch, the main fixes are how the drawable is grabbed,
painted by plugin.

I need comment on the below and on the patch in general:
1. The gdkDisplay is a part of the PluginPackage, I am not sure if this is the
right place. I was hoping that after a plugin is loaded (but no new plugin
instance created), we use RTLD_NOLOAD using dlopen to detect if gdk-x11 is
already open. There seems to be no mechanism to achieve this using QLibrary
(besides QLibrary will load gdk-x11 even if the plugin does not need it).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list