Bug 1059588 - Transition events in console should show propertyName property, not animationName; r=past
authorGeoff Lankow <geoff@darktrojan.net>
Sat, 30 Aug 2014 11:04:26 +1200
changeset 202771 0b31ce3ca299bb92677e03a96cacac4b3bb083a6
parent 202770 4d0a886d3c2235dff3bdfbb481df9718f835a148
child 202772 583c3b9d82aac8b7cc218fe83cda841483fd53db
push id8469
push userpastithas@mozilla.com
push dateMon, 01 Sep 2014 09:23:46 +0000
treeherderfx-team@0b31ce3ca299 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast
bugs1059588
milestone34.0a1
Bug 1059588 - Transition events in console should show propertyName property, not animationName; r=past
toolkit/devtools/server/actors/script.js
--- a/toolkit/devtools/server/actors/script.js
+++ b/toolkit/devtools/server/actors/script.js
@@ -4027,18 +4027,19 @@ DebuggerServer.ObjectActorPreviewers.Obj
       }
       if (aRawObj.shiftKey) {
         modifiers.push("Shift");
       }
       preview.eventKind = "key";
       preview.modifiers = modifiers;
 
       props.push("key", "charCode", "keyCode");
-    } else if (aRawObj instanceof Ci.nsIDOMTransitionEvent ||
-               aRawObj instanceof Ci.nsIDOMAnimationEvent) {
+    } else if (aRawObj instanceof Ci.nsIDOMTransitionEvent) {
+      props.push("propertyName", "pseudoElement");
+    } else if (aRawObj instanceof Ci.nsIDOMAnimationEvent) {
       props.push("animationName", "pseudoElement");
     } else if (aRawObj instanceof Ci.nsIDOMClipboardEvent) {
       props.push("clipboardData");
     }
 
     // Add event-specific properties.
     for (let prop of props) {
       let value = aRawObj[prop];