mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 841067 - Fix up CertUtils. r=bz
This is yet another piece of broken code that relies on the "find the |this| object" behavior that we're removing. Moreover, it's not caught by our compat hack, because Components.utils is a bizarre object that implements nsIXPCScriptable (giving it a custom JSClass->name that's not XPCWN_NoHelper) while not implementing nsIClassInfo (which would have put the method on the prototype and made this never work in the first place). We _could_ add special support for the Cu JSClass name in our compat hack, but I think we should just fix it here and assume this pattern is not particularly common in external consumers.
This commit is contained in:
parent
5e7c3d4724
commit
7adfc5e532
@ -108,7 +108,7 @@ this.validateCert =
|
||||
}
|
||||
|
||||
if (error) {
|
||||
errors.forEach(Cu.reportError);
|
||||
errors.forEach(Cu.reportError.bind(Cu));
|
||||
const certCheckErr = "Certificate checks failed. See previous errors " +
|
||||
"for details.";
|
||||
Cu.reportError(certCheckErr);
|
||||
|
Loading…
Reference in New Issue
Block a user