Luca Manganelli wrote:
> 
> Il 20/02/2018 16:54, Luca Manganelli ha scritto:
>> in our PCs the Adobe Reader is installed (also as a firefox plugin). We
>> discovered that when I set, in the Options->Applications, the PDF to
>> "built in viewer", at the next restart this setting is reset to "Use
>> Adobe Reader (plugin), and remains this at ever boot, even I change it...
> 
> I found that, maybe, it's CCK2 fault. The offending code is this (file
> CCK2.jsm)
> 
> if (i == "plugin.disable_full_page_plugin_for_types") {
>              if (!config.preferences[i].userset &&
>                  !config.preferences[i].locked &&
>                  !config.preferences[i].clear) {
>                if (Preferences.get(i) == "application/pdf" ||
>                    !Preferences.get(i) || // firstrun
>                    config.upgrade ||
>                    config.firstrun) {
>                  Preferences.set(i, config.preferences[i].value);
>                  continue;
>                }
>              }
>            }
> 
> 
> This piece of code causes, at ever Firefox restart, the reset of
> application/pdf setting. If the user has Adobe Reader installed, this
> settings is set to "Adobe Reader (in Firefox)". If the user tries to
> change it to built in pdf reader, at next restart this settings returns
> to Adobe Reader.
> 
> Commenting the above code fixes this issue.

I believe CCK2 issues should be reported via:

  https://cck2.freshdesk.com/

However, I'm not sure it is a bug - may be a 'feature' ...

I think you will only hit that code if you have something in your cck 
cfg file like (I think!) :

   "preferences": {
      ...
      "plugin.disable_full_page_plugin_for_types": {
         "value": "application/pdf"
      },
      ...
   },

Do you have something like this in your cck cfg file ?

James Pearson
_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
[email protected] with a subject of "unsubscribe"

Reply via email to