Bug 1287204 - Fix typo in nsNodeUtils::CloneAndAdopt(). r=bz, a=al
authorAndrew McCreight <continuation@gmail.com>
Thu, 04 Aug 2016 16:28:15 +0200
changeset 312170 a49fd7eb57baac7a418d81346d4afaa0aa744625
parent 312169 b08f28db372ea667f0d7ccc918b56fded9cec952
child 312171 8e2ca99684fe33745f11b372f212bc535f51d1da
push id200
push usercbook@mozilla.com
push dateMon, 08 Aug 2016 09:48:40 +0000
treeherdermozilla-esr45@a49fd7eb57ba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, al
bugs1287204
milestone45.3.1
Bug 1287204 - Fix typo in nsNodeUtils::CloneAndAdopt(). r=bz, a=al
dom/base/nsNodeUtils.cpp
--- a/dom/base/nsNodeUtils.cpp
+++ b/dom/base/nsNodeUtils.cpp
@@ -572,17 +572,17 @@ nsNodeUtils::CloneAndAdopt(nsINode *aNod
 
     if (aReparentScope) {
       JS::Rooted<JSObject*> wrapper(cx);
       if ((wrapper = aNode->GetWrapper())) {
         MOZ_ASSERT(IsDOMObject(wrapper));
         JSAutoCompartment ac(cx, wrapper);
         rv = ReparentWrapper(cx, wrapper);
         if (NS_FAILED(rv)) {
-          aNode->mNodeInfo.swap(nodeInfo);
+          aNode->mNodeInfo.swap(newNodeInfo);
 
           return rv;
         }
       }
     }
   }
 
   if (aDeep && (!aClone || !aNode->IsNodeOfType(nsINode::eATTRIBUTE))) {