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 347584 bd7ac9bc5d7b8285929c956025ee6bd30221fea6
parent 347583 d7f9d73f11d8183bc3a17e5bf4d88004de4a49d4
child 347585 6711a01f35ad9aacde76a34efc3e522a4db33dab
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, al
bugs1287204
milestone50.0a2
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))) {