Bug 1287204 - Fix typo in nsNodeUtils::CloneAndAdopt(). r=bz
authorAndrew McCreight <continuation@gmail.com>
Thu, 04 Aug 2016 16:28:15 +0200
changeset 308262 6e875e1462fc68ee5deef2ce1923d4e351982d03
parent 308261 d2c3da5ac021138cc92099d2c10b6a591929b6c4
child 308263 025466d995ef6bfb19b19495816c9fce10296965
push id30531
push usercbook@mozilla.com
push dateFri, 05 Aug 2016 10:01:39 +0000
treeherdermozilla-central@d320ef56876f [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))) {