Bug 880330 - Refactor crypto to use the new options API; r=bholley
authorEddy Bruel <ejpbruel@mozilla.com>
Mon, 28 Oct 2013 12:57:08 +0100
changeset 167240 88310e106cab3708136c7bcf7c754dc7204f3045
parent 167239 5b7dbe16ff211e21c191f57eacbdf585cf80ec58
child 167241 87e380e5b6c1e1e0563b9eae417e35af88de3434
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs880330
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 880330 - Refactor crypto to use the new options API; r=bholley
security/manager/ssl/src/nsCrypto.cpp
--- a/security/manager/ssl/src/nsCrypto.cpp
+++ b/security/manager/ssl/src/nsCrypto.cpp
@@ -1844,17 +1844,17 @@ nsCreateReqFromKeyPairs(nsKeyPairInfo *k
 loser:
   nsFreeCertReqMessages(certReqMsgs,numRequests);
   return nullptr;;
 }
 
 static nsISupports *
 GetISupportsFromContext(JSContext *cx)
 {
-    if (JS_GetOptions(cx) & JSOPTION_PRIVATE_IS_NSISUPPORTS)
+    if (JS::ContextOptionsRef(cx).privateIsNSISupports())
         return static_cast<nsISupports *>(JS_GetContextPrivate(cx));
 
     return nullptr;
 }
 
 //The top level method which is a member of nsIDOMCrypto
 //for generate a base64 encoded CRMF request.
 already_AddRefed<nsIDOMCRMFObject>