Bug 1276353 - Use UncheckedUnwrap in DOMInstanceOf (r=mrbkap)
authorBill McCloskey <billm@mozilla.com>
Fri, 27 May 2016 14:48:51 -0700
changeset 338414 577123ff73d3104f3979c123ccfbcc0303a20541
parent 338413 619ef5aac05fa3dadb656fac5352dc712451c109
child 338415 d9db24868efdf51ed6b518d7befe6a124c23d6a3
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs1276353
milestone49.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 1276353 - Use UncheckedUnwrap in DOMInstanceOf (r=mrbkap)
dom/bindings/BindingUtils.cpp
--- a/dom/bindings/BindingUtils.cpp
+++ b/dom/bindings/BindingUtils.cpp
@@ -2177,17 +2177,17 @@ InterfaceHasInstance(JSContext* cx, JS::
   if (domClass &&
       domClass->mInterfaceChain[clasp->mDepth] == clasp->mPrototypeID) {
     *bp = true;
     return true;
   }
 
   if (jsipc::IsWrappedCPOW(instance)) {
     bool boolp = false;
-    if (!jsipc::DOMInstanceOf(cx, js::CheckedUnwrap(instance), clasp->mPrototypeID,
+    if (!jsipc::DOMInstanceOf(cx, js::UncheckedUnwrap(instance), clasp->mPrototypeID,
                               clasp->mDepth, &boolp)) {
       return false;
     }
     *bp = boolp;
     return true;
   }
 
   JS::Rooted<JS::Value> protov(cx);