[WebKit-devel] [Bug 232736] Flash mimetype association is ignored
Dawit Alemayehu
adawit at kde.org
Wed Mar 31 09:06:59 CEST 2010
https://bugs.kde.org/show_bug.cgi?id=232736
Dawit Alemayehu <adawit at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adawit at kde.org
Component|general |kdewebkit
Product|kwebkitpart |kdelibs
--- Comment #1 from Dawit Alemayehu <adawit kde org> 2010-03-31 09:06:57 ---
(In reply to comment #0)
> The embedding options set for application/x-shockwave-flash, as set in System
> Settings->Advanced->File Associations, are ignored when using the WebKit kpart
> with Konqueror. When a page is rendered using WebKit, flash applets are run
> directly in the page, instead of being embedded using kmplayer/knpplayer or
> nspluginviewer. When the view mode is switched to KHTML, the flash applet
> properly loads with the selected kmplayer kpart.
That happens not because kwebkitpart, actually kdewebkit, is incapable of
embedding nspluginviewer, but rather because there were multitude of problems
in doing so. Originally, handling of flash content was deffered to QtWebKit
because using nspluginviewer under kdewebkit/qtwebkit resulted many random
crashes and other nasty side effects. Nowadays though those issues mostly do
not exist and have been replaced by other equally annoying issues. For example,
clicking on links inside of a flash content does not currently work. Also there
seems to be trouble with resizing active or paused content on demand which
seems to cause crashes.
That is why we purposefully blocking the use of nspluginviewer or whatever else
is configured to handle flash in KDE right now.
> This makes it very problematic to use WebKit on sites that have flash content,
> as the flash plugin freezing or crashing will take the whole browser with it
> instead of just knpplayer or nspluginviewer.
Right... the current nsplugin viewer included in QtWebKit is an in-process
viewer. There were/are plans to change it to out of process for the same
reasons you state here, but I have no idea what became of that goal.
> Oddly enough, the Plugins section of Konqueror's configuration does have an
> effect.. unchecking the "Enable plugins globally" option prevents the flash
> plugin from loading. However, there is no way to get it to embed using the
> kpart selected under the File Associations.
That is because kwebkitpart tries hard to support, however KHTML specific they
may be, all of Konqueror's configuration and the nspluginviewer does not work
for reasons stated above...
BTW, since you seem to have compiled KDE from source, you can easily change
kdewebkit to use KDE's preferred viewer for flash content by simply commenting
out the 2 lines below
if (!excludedMimeType(mimeType))
part = KMimeTypeTrader::createPartInstanceFromQuery<...>(...);
from "kdelibs/kdewebkit/kwebpluginfactory.cpp".
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the WebKit-devel
mailing list