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 340236 cab91bc0d96039e9c6c2bbb77c2532dfbea8e17c
parent 340235 c18bbf3a9ef2b4e4f6dc9b656c24fb1f7751dc69
child 340237 0306e27329db648bb267724637738630040ad42d
push id6274
push usercbook@mozilla.com
push dateMon, 08 Aug 2016 07:22:14 +0000
treeherdermozilla-beta@b1bdd0f3482a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, al
bugs1287204
milestone49.0
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
@@ -565,17 +565,17 @@ nsNodeUtils::CloneAndAdopt(nsINode *aNod
     if (aReparentScope) {
       AutoJSContext cx;
       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))) {