Hey, I've just landed support for windowless mode to swfdec-mozilla git. This means that pages such as http://www.communitymx.com/content/source/E5141/wmodeopaque.htm stack properly with Swfdec now. Menus overlayed with Flash ads should be a thing of the past, too. It also means Swfdec is the first plugin to support windowless on Mozilla/Unix. While this means we now have another feature that Adobe's player doesn't have, it also means we get to find the bugs in it. Here's the ones I know: - On redraw events the leftmost column of pixels isn't repainted. This causes weird stripes on some pages, a good example being http://www.youtube.com I think this is Mozilla's fault, but I'm not sure. - There is no way to set the mouse cursor. Swfdec uses the default mouse cursor all the time for windowless plugins. - Swfdec receives only left mouse button clicks. So no chance to stop a playing Flash file anymore or get at its properties. These deficiencies are pretty major, so I'll likely disable this feature when doing 0.7 releases, but I'll leave it enabled for now, so it gets testing. If you don't want the feature, at the top of src/plugin.c, there's a #define ENABLE_WINDOWLESS. If you comment that line or remove it, you'll not be getting this feature. Or you can just continue using Firefox 2. ;) And a question to the Mozilla guys: I've been wondering how to best proceed with these issues. Should I just file bugs about it on bugzilla.mozilla.org containing "if you run Swfdec git, you'll see that..." or do you guys need better test before you consider looking at these bugs? Cheers, Benjamin
Thanks for the update, Benjamin, and for your comments, Rob (which may have been rejected by swfdec-owner at lists.freedesktop.org). Robert O'Callahan writes:> Any bug report is better than no bug report, so please do file it in > bugzilla.mozilla.org. But if you can demonstrate the problem in a simple > testcase, e.g. by modifying one of the test plugins, so much the better.The simplest test plugin that I'm aware of is a modification of the DiamondX plugin: https://bugzilla.mozilla.org/show_bug.cgi?id=386144> On Wed, Apr 23, 2008 at 10:19 AM, Benjamin Otte <otte at gnome.org> wrote: > >> - On redraw events the leftmost column of pixels isn't repainted. This >> causes weird stripes on some pages, a good example being >> http://www.youtube.com I think this is Mozilla's fault, but I'm not >> sure.I couldn't reproduce this with the modified DiamondX but then it only draws about one pixel on the left edge so maybe it's just hard to see the problem.> >> - There is no way to set the mouse cursor. Swfdec uses the default >> mouse cursor all the time for windowless plugins. > > Hard to fix right now. But we've got a high-priority plan to > reduce/eliminate the use of child X windows in the near future. Once that's > implemented, I think you can use existing API to get the top-level browser > window and set your cursor on that.NPNVnetscapeWindow for the top-level window may work some of the time right now but I haven't tested and I don't know how often a cursor is defined on the child windows. http://developer.mozilla.org/en/docs/NPN_GetValue>> - Swfdec receives only left mouse button clicks. So no chance to stop >> a playing Flash file anymore or get at its properties.That's strange. DiamondX seems to be getting right button clicks.