Closed Bug 1044952 Opened 5 years ago Closed 4 years ago

'GIP-CPS' Certificates no longer installed by a vendor addon at addon installation time.


(Core :: Security: PSM, defect, major)

33 Branch
Windows 7
Not set





(Reporter: bertrand.perret, Unassigned)




(1 file)

392.06 KB, application/zip
Attached file
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release)
Build ID: 20140716183446

Steps to reproduce:

On a Windows 7 x86 platform :

Go to the link (to fetch the 2014-07-05 Nightly build):

Download the file : firefox-33.0a1.en-US.win32.installer.exe

Install the Nightly version on Windows 7 x86 platform.

Copy the attached DDL to %windir%\system32

Open Nightly and go to the following site ''

Click the link named 'Installeur XPI de l'extension CPS ...'

Install the CPS Addon, which restarts the browser.

When restarted, go to :

Options -> Advanced -> Certificates tab -> View Certificates -> Authorities tab.

Actual results:

The root & ac certificates labeled 'GIP-CPS' don't shown between 'Geotrust' and 'GlobalSign' sections.

Expected results:

The root & ac certificates labeled 'GIP-CPS' should be displayed between 'Geotrust' and 'GlobalSign' sections.

With mozregression, we see that it works with the 2014-07-04 Nightly build

After investigations, we realized that following code embedded in the addon now throws an exception :
In file asipsantePKCS11.js located at C:\Users\<USERNAME>\AppData\Roaming\Mozilla\Firefox\Profiles\<RANDOM>.default\extensions\\content

      // Exception raised HERE !
      x509CertDB2= Components.classes[";1"].getService(Components.interfaces.nsIX509CertDB2);
      if (x509CertDB2 == null) {
        //alert("x509CertDB2 est NULL");
        return false;
      x509CertDB = Components.classes[";1"].getService(Components.interfaces.nsIX509CertDB); 
      if (x509CertDB == null) {
        //alert("x509CertDB est NULL");
        return false;
    }catch(exc) {
      //alert("Erreur insertion certificats");
      return false;
Severity: normal → major
Hardware: x86_64 → x86
Version: 31 Branch → 34 Branch
Version: 34 Branch → 33 Branch
Summary: 'GIP-CPS' Certificates no longer installed by a vendor addon at adddon installation time. → 'GIP-CPS' Certificates no longer installed by a vendor addon at addon installation time.
This commit seems to be the sources of this bug :

It breaks compatibilty for addons which still use nsIX509CertDB2 insterface.
Installing the Aurora 33.a02 (2014-08-07), and testing our CPS Addon, I realize
that nsIX509Cert2 interface has been removed too.

nsIX509CertDB2 is still unavailable on this version of Aurora.

Is this documented anywhere ?

Depends on: 643041
This was documented here:

But late.

The solution is t odo something like this in your code:

var certdb = Cc[";1"].getService(Ci.nsIX509CertDB);
var certdb2 = certdb;
try {
  certdb2 = Cc[";1"].getService(Ci.nsIX509CertDB2);
} catch (e) {}

I think they believed this wasn't a commonly used service, so they didn't do any remediation.
Thanks for filing the bug, and sorry for the bustage.

Unfortunately, we're unlikely to revert the change, especially at this point.

mkaply's solution from comment 3 looks like it would work as a workaround.
Closed: 4 years ago
Resolution: --- → WONTFIX

thanks for the answer.

We fixed this problem in our XPI for the release of FF34.

You need to log in before you can comment on or make changes to this bug.