зеркало из https://github.com/mozilla/gecko-dev.git
Bug 827158 part 6. Add a telemetry ping for object/embed callability actually working. r=bsmedberg
This commit is contained in:
Родитель
281f0e8cd1
Коммит
0ceac153f4
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче