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 166288 88310e106cab3708136c7bcf7c754dc7204f3045
parent 166287 5b7dbe16ff211e21c191f57eacbdf585cf80ec58
child 166289 87e380e5b6c1e1e0563b9eae417e35af88de3434
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [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>