Backed out changeset 3a38c92ab431 (bug 1317409)
authorRyan VanderMeulen <ryanvm@gmail.com>
Tue, 29 Nov 2016 21:02:50 -0500
changeset 312406 848e7d67e753f657affd8bfebedc0e5ac128cda4
parent 312405 b5cc90c208e62de0b75e18d36520b1cdce87efde
child 312407 f2792b82919332ebfe1cb74f7eadc0430b79b859
push id297
push userryanvm@gmail.com
push dateWed, 30 Nov 2016 02:03:07 +0000
treeherdermozilla-esr45@f2792b829193 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1317409
milestone45.5.1
backs out3a38c92ab43158484f5bcf15b87065707cefada7
Backed out changeset 3a38c92ab431 (bug 1317409)
dom/base/nsNodeUtils.cpp
--- a/dom/base/nsNodeUtils.cpp
+++ b/dom/base/nsNodeUtils.cpp
@@ -572,23 +572,18 @@ 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)) {
-          if (wasRegistered) {
-            aNode->OwnerDoc()->UnregisterActivityObserver(aNode->AsElement());
-          }
           aNode->mNodeInfo.swap(newNodeInfo);
-          if (wasRegistered) {
-            aNode->OwnerDoc()->RegisterActivityObserver(aNode->AsElement());
-          }
+
           return rv;
         }
       }
     }
   }
 
   if (aDeep && (!aClone || !aNode->IsNodeOfType(nsINode::eATTRIBUTE))) {
     // aNode's children.