gecko-dev/security/manager
Cykesiopka 313db6b516 Bug 307081 - Clean up nsIClientAuthDialogs.idl and implementations. r=kats,keeler
This fixes the following in the IDL:
1. Misleading or unclear parameter names in the IDL. |cn| in practice is the
   concatenation of the CN of the server cert and the port of the server, and
   |issuer| is the Organization of the issuer cert of the server cert.
2. Use of the |wstring| type. |AString| is generally preferred, and has the
   benefit of letting implementations skip null checks due to the use of
   references.
3. Using an explicit |canceled| outparam instead of just setting a return type.
   There is no need for the outparam if the return type can be used.
4. Using |long| (int32_t) for |selectedIndex|. |unsigned long| (uint32_t) is
   more logical, and paves the way for future changes.

This fixes the following in the Android implementation:
1. Lack of checks to ensure the QueryInterface() call succeeded. In practice,
   the call will always succeed, but it's good practice to check anyways.
2. Setting a variable to an nsIPrefService instance initially, then later
   setting it to a pref branch instance later on. This is confusing and
   unnecessary.

This fixes the following in the desktop implementation:
1. Lack of null pointer checking.
2. Trying to get a parent window ref off a context that doesn't actually support
   doing so.
3. Setting a variable to an nsIPrefService instance initially, then later
   setting it to a pref branch instance later on. This is confusing and
   unnecessary.
4. Abusal of the CAPS bundle.
5. Unnecessary variables.
6. Variables declared far away from where they are used.
7. Variable shadowing.
8. Style issues.
9. Lack of documentation.

This also fixes the following:
1. Lack of localisation notes.

MozReview-Commit-ID: FTc6XecJd6h

--HG--
extra : transplant_source : %ABQ%8F%E6%A3%25%FE%94%E4%D6X%3D%28%2C%05%5E%FB%84.-
2016-06-24 00:12:11 -07:00
..
locales Bug 307081 - Clean up nsIClientAuthDialogs.idl and implementations. r=kats,keeler 2016-06-24 00:12:11 -07:00
pki Bug 307081 - Clean up nsIClientAuthDialogs.idl and implementations. r=kats,keeler 2016-06-24 00:12:11 -07:00
ssl Bug 307081 - Clean up nsIClientAuthDialogs.idl and implementations. r=kats,keeler 2016-06-24 00:12:11 -07:00
tools Bug 1280331 - Update HPKP preload script URL to deal with renaming of transport_security_state_static.certs. r=keeler 2016-06-21 16:11:57 -07:00
.eslintrc.json Bug 1257246: Update security/manager for eslint 2. r=cykesiopka 2016-04-05 11:32:28 -07:00
android_stub.h Bug 1092004 - Use getdtablesize for non-gonk builds as well. r=glandium 2016-03-14 16:19:12 -06:00
moz.build