Bug 1028004 - UI Telemetry events with null methods are ignored (without test changes). r=rnewman, a=sylvestre
authorMark Finkle <mfinkle@mozilla.com>
Fri, 20 Jun 2014 13:39:33 -0400
changeset 199550 400fbdb57bcaf6e34a0fb4292f700b423d71795f
parent 199549 c7d17b1ecef843606092a04865ad4ae2644fc4af
child 199551 37a6172af9cb26b23647251c9efd0fe04b9b01d5
push id3666
push userrnewman@mozilla.com
push dateMon, 23 Jun 2014 19:41:10 +0000
treeherdermozilla-beta@400fbdb57bca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman, sylvestre
bugs1028004
milestone31.0
Bug 1028004 - UI Telemetry events with null methods are ignored (without test changes). r=rnewman, a=sylvestre
widget/android/nsAppShell.cpp
--- a/widget/android/nsAppShell.cpp
+++ b/widget/android/nsAppShell.cpp
@@ -411,17 +411,17 @@ nsAppShell::ProcessNextNativeEvent(bool 
         obs->StartSession(
                 nsString(curEvent->Characters()).get(),
                 curEvent->Time()
                 );
         break;
     }
 
     case AndroidGeckoEvent::TELEMETRY_UI_EVENT: {
-        if (curEvent->Characters().Length() == 0)
+        if (curEvent->Data().Length() == 0)
             break;
 
         nsCOMPtr<nsIUITelemetryObserver> obs;
         mBrowserApp->GetUITelemetryObserver(getter_AddRefs(obs));
         if (!obs)
             break;
 
         obs->AddEvent(