[PATCH] Define plugins and mimeTypes according to actual status of plugins

Jose M. Prieto jmprieto at gmx.net
Wed Sep 27 13:09:45 BST 2006


El Miércoles, 27 de Septiembre de 2006 10:54, koos vriezen escribió:
> 2006/9/26, Jose M. Prieto <jmprieto at gmx.net>:
> > Hi!
> >
> > Currently the ecmascript objects navigator.plugins and
> > navigator.mimeTypes are defined according only to wether plugins are
> > enabled or disabled globally. But plugins can also be enabled/disabled by
> > domain or by tab using the KHTML settings plugin. These patches address
> > this.
> >
> > Patches apply to branches/KDE/3.5/kdelibs/khtml/ecma and
> > trunk/KDE/kdelibs/khtml/ecma respectively.
>
> Looks fine AFAICS.
> Does other browsers update this list also according user settings?

The only such setting I have found in Firefox is disabling Java globally. And 
it doesn't seem to make any difference, Firefox keeps advertising the Java 
plugin.

Chances are that others do the same as Firefox. While I don't think this is 
the right thing to do, it is probably less harmful than the current behaviour 
of Konqueror.

> Do you have a case that's fixed by this?

Yes, I like to disable plugins globally (mainly because of annoying Flash ads) 
and only enable them on sites that use them for content. Without the patch, 
this doesn't work for sites that use scripts to ensure you have the required 
plugins, e.g. youtube.com, because navigator.plugins and mimeTypes are empty.




More information about the kfm-devel mailing list