Bug 1426525 part 3. Remove the special-casing of the 'ref' attribute in CanBroadcast. r=smaug
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 05 Jan 2018 13:48:39 -0500
changeset 398074 c9fad2f644485a0508a00985ac27c16ef1013e80
parent 398073 07e377e19c7d462a4dc2e674e0163a400b3a572d
child 398075 cb168f6a6bfd465f80dbacc30e5daa8aa3fc2561
push id33201
push userapavel@mozilla.com
push dateSat, 06 Jan 2018 09:50:43 +0000
treeherdermozilla-central@ece8a96dfaa4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1426525
milestone59.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 1426525 part 3. Remove the special-casing of the 'ref' attribute in CanBroadcast. r=smaug MozReview-Commit-ID: K8Zkedorr7U
dom/xul/XULDocument.cpp
--- a/dom/xul/XULDocument.cpp
+++ b/dom/xul/XULDocument.cpp
@@ -576,21 +576,20 @@ ClearBroadcasterMapEntry(PLDHashTable* a
     // N.B. that we need to manually run the dtor because we
     // constructed the nsTArray object in-place.
     entry->mListeners.~nsTArray<BroadcastListener*>();
 }
 
 static bool
 CanBroadcast(int32_t aNameSpaceID, nsAtom* aAttribute)
 {
-    // Don't push changes to the |id|, |ref|, |persist|, |command| or
+    // Don't push changes to the |id|, |persist|, |command| or
     // |observes| attribute.
     if (aNameSpaceID == kNameSpaceID_None) {
         if ((aAttribute == nsGkAtoms::id) ||
-            (aAttribute == nsGkAtoms::ref) ||
             (aAttribute == nsGkAtoms::persist) ||
             (aAttribute == nsGkAtoms::command) ||
             (aAttribute == nsGkAtoms::observes)) {
             return false;
         }
     }
     return true;
 }