Bug 39569 - [Qt] QtWebKit overwrites transparent wmode with opaque
Summary: [Qt] QtWebKit overwrites transparent wmode with opaque
Status: RESOLVED DUPLICATE of bug 50495
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Normal
Assignee: Nobody
URL: http://vimeo.com
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-05-23 11:56 PDT by arvid2.nilsson
Modified: 2011-03-01 20:04 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arvid2.nilsson 2010-05-23 11:56:37 PDT
In FrameLoaderClientQt.cpp, FrameLoaderClientQt::createPlugin.

The code for NPAPI plugins always overwrites wmode transparent with opaque. According to http://blog.forwardbias.in/2009/12, this may be helpful on X11. However on Mac and Windows it results in transparent plugins that would have rendered just fine, appearing opaque and resulting in visual errors or inaccessible video (vimeo.com).

I suggest adding an X11 condition like:

                if (wmodeIndex == -1) {
                    params.append("wmode");
                    values.append("opaque");
-                } else
+                } else {
+#ifdef Q_WS_X11
+                    // wmode=opaque only required on X11, http://blog.forwardbias.in/2009/12
                    values[wmodeIndex] = "opaque";
+#endif
+                }
            }
        }
Comment 1 Benjamin Poulain 2011-01-28 18:21:19 PST
Reviewers do not see patches if you do not submit them as patches. Here is how to submit a patch to WebKit: https://trac.webkit.org/wiki/QtWebKitContrib
Comment 2 Viatcheslav Ostapenko 2011-03-01 20:04:19 PST

*** This bug has been marked as a duplicate of bug 50495 ***