Bug 827158 part 6. Add a telemetry ping for object/embed callability actually working. r=bsmedberg

This commit is contained in:
Boris Zbarsky 2013-03-04 14:08:23 -05:00
Родитель 281f0e8cd1
Коммит 0ceac153f4
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -71,6 +71,7 @@
#include "mozilla/Preferences.h"
#include "nsLocation.h"
#include "mozilla/Attributes.h"
#include "mozilla/Telemetry.h"
// Window scriptable helper includes
#include "nsIDocShell.h"
@ -8061,6 +8062,9 @@ nsHTMLPluginObjElementSH::DoCall(nsIXPConnectWrappedNative *wrapper,
// the real this parameter from JS (argv[-1]) here.
JSAutoRequest ar(cx);
*_retval = ::JS::Call(cx, thisVal, pi_obj, argc, argv, vp);
if (*_retval) {
Telemetry::Accumulate(Telemetry::PLUGIN_CALLED_DIRECTLY, true);
}
return NS_OK;
}

Просмотреть файл

@ -1600,6 +1600,10 @@
"extended_statistics_ok": true,
"description": "Time spent shutting down plugins (ms)"
},
"PLUGIN_CALLED_DIRECTLY": {
"kind": "flag",
"description": "A plugin object was successfully invoked as a function"
},
"MOZ_SQLITE_OPEN_MS": {
"kind": "exponential",
"high": "3000",