Bug 1287204 - Fix typo in nsNodeUtils::CloneAndAdopt(). r=bz
authorAndrew McCreight <continuation@gmail.com>
Thu, 04 Aug 2016 16:28:15 +0200
changeset 308191 6e875e1462fc68ee5deef2ce1923d4e351982d03
parent 308190 d2c3da5ac021138cc92099d2c10b6a591929b6c4
child 308192 025466d995ef6bfb19b19495816c9fce10296965
push id80272
push usercbook@mozilla.com
push dateThu, 04 Aug 2016 14:32:56 +0000
treeherdermozilla-inbound@6fc40ec6d00d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1287204
milestone51.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 1287204 - Fix typo in nsNodeUtils::CloneAndAdopt(). r=bz
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))) {