diff options
author | Moonchild <moonchild@palemoon.org> | 2021-10-29 11:02:27 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-10-29 11:02:27 +0000 |
commit | cba6b06fc8bce52117abec9b3f3fc41475df69c2 (patch) | |
tree | 6d84ca82ac6c4b413ee7460f28d13eb2fb20f691 /dom/plugins | |
parent | 378c086ef4e05803e04be104e2cb488734c57715 (diff) | |
download | aura-central-cba6b06fc8bce52117abec9b3f3fc41475df69c2.tar.gz |
Issue %3029 - Part 1: Remove Telemetry plumbing and fix build.
Note this won't give working applications. Requires FE changes and additional
js module changes (next part).
Diffstat (limited to 'dom/plugins')
-rw-r--r-- | dom/plugins/base/nsPluginHost.cpp | 1 | ||||
-rw-r--r-- | dom/plugins/ipc/PluginAsyncSurrogate.cpp | 1 | ||||
-rw-r--r-- | dom/plugins/ipc/PluginHangUIParent.cpp | 32 | ||||
-rw-r--r-- | dom/plugins/ipc/PluginInstanceParent.cpp | 29 | ||||
-rw-r--r-- | dom/plugins/ipc/PluginInstanceParent.h | 4 | ||||
-rw-r--r-- | dom/plugins/ipc/PluginProcessParent.cpp | 2 |
6 files changed, 0 insertions, 69 deletions
diff --git a/dom/plugins/base/nsPluginHost.cpp b/dom/plugins/base/nsPluginHost.cpp index 8a87f672e..b36bf9633 100644 --- a/dom/plugins/base/nsPluginHost.cpp +++ b/dom/plugins/base/nsPluginHost.cpp @@ -88,7 +88,6 @@ #include "nsIContentPolicy.h" #include "nsContentPolicyUtils.h" #include "mozilla/TimeStamp.h" -#include "mozilla/Telemetry.h" #include "nsIImageLoadingContent.h" #include "mozilla/Preferences.h" #include "nsVersionComparator.h" diff --git a/dom/plugins/ipc/PluginAsyncSurrogate.cpp b/dom/plugins/ipc/PluginAsyncSurrogate.cpp index 9e41cb561..355a50a98 100644 --- a/dom/plugins/ipc/PluginAsyncSurrogate.cpp +++ b/dom/plugins/ipc/PluginAsyncSurrogate.cpp @@ -11,7 +11,6 @@ #include "mozilla/plugins/PluginInstanceParent.h" #include "mozilla/plugins/PluginModuleParent.h" #include "mozilla/plugins/PluginScriptableObjectParent.h" -#include "mozilla/Telemetry.h" #include "nsJSNPRuntime.h" #include "nsNPAPIPlugin.h" #include "nsNPAPIPluginInstance.h" diff --git a/dom/plugins/ipc/PluginHangUIParent.cpp b/dom/plugins/ipc/PluginHangUIParent.cpp index abffc7b10..e4767b867 100644 --- a/dom/plugins/ipc/PluginHangUIParent.cpp +++ b/dom/plugins/ipc/PluginHangUIParent.cpp @@ -30,33 +30,6 @@ using mozilla::widget::WidgetUtils; using std::string; using std::vector; -namespace { -class nsPluginHangUITelemetry : public mozilla::Runnable -{ -public: - nsPluginHangUITelemetry(int aResponseCode, int aDontAskCode, - uint32_t aResponseTimeMs, uint32_t aTimeoutMs) - : mResponseCode(aResponseCode), - mDontAskCode(aDontAskCode), - mResponseTimeMs(aResponseTimeMs), - mTimeoutMs(aTimeoutMs) - { - } - - NS_IMETHOD - Run() override - { - return NS_OK; - } - -private: - int mResponseCode; - int mDontAskCode; - uint32_t mResponseTimeMs; - uint32_t mTimeoutMs; -}; -} // namespace - namespace mozilla { namespace plugins { @@ -358,11 +331,6 @@ PluginHangUIParent::RecvUserResponse(const unsigned int& aResponse) responseCode = 3; } int dontAskCode = (aResponse & HANGUI_USER_RESPONSE_DONT_SHOW_AGAIN) ? 1 : 0; - nsCOMPtr<nsIRunnable> workItem = new nsPluginHangUITelemetry(responseCode, - dontAskCode, - LastShowDurationMs(), - mTimeoutPrefMs); - NS_DispatchToMainThread(workItem); return true; } diff --git a/dom/plugins/ipc/PluginInstanceParent.cpp b/dom/plugins/ipc/PluginInstanceParent.cpp index 438ec4c27..005fbf98d 100644 --- a/dom/plugins/ipc/PluginInstanceParent.cpp +++ b/dom/plugins/ipc/PluginInstanceParent.cpp @@ -761,8 +761,6 @@ PluginInstanceParent::SetCurrentImage(Image* aImage) gfx::IntRect rect = aImage->GetPictureRect(); NPRect nprect = {uint16_t(rect.x), uint16_t(rect.y), uint16_t(rect.width), uint16_t(rect.height)}; RecvNPN_InvalidateRect(nprect); - - RecordDrawingModel(); } bool @@ -899,7 +897,6 @@ PluginInstanceParent::RecvShow(const NPRect& updatedRect, PLUGIN_LOG_DEBUG((" (RecvShow invalidated for surface %p)", mFrontSurface.get())); - RecordDrawingModel(); return true; } @@ -1265,7 +1262,6 @@ PluginInstanceParent::NPP_SetWindow(const NPWindow* aWindow) return NPERR_GENERIC_ERROR; } - RecordDrawingModel(); return NPERR_NO_ERROR; } @@ -2224,28 +2220,3 @@ PluginInstanceParent::RecvOnWindowedPluginKeyEvent( owner->OnWindowedPluginKeyEvent(aKeyEventData); return true; } - -void -PluginInstanceParent::RecordDrawingModel() -{ - int mode = -1; - switch (mWindowType) { - case NPWindowTypeWindow: - // We use 0=windowed since there is no specific NPDrawingModel value. - mode = 0; - break; - case NPWindowTypeDrawable: - mode = mDrawingModel + 1; - break; - default: - MOZ_ASSERT_UNREACHABLE("bad window type"); - return; - } - - if (mode == mLastRecordedDrawingModel) { - return; - } - MOZ_ASSERT(mode >= 0); - - mLastRecordedDrawingModel = mode; -} diff --git a/dom/plugins/ipc/PluginInstanceParent.h b/dom/plugins/ipc/PluginInstanceParent.h index 80d04242c..7c9febb24 100644 --- a/dom/plugins/ipc/PluginInstanceParent.h +++ b/dom/plugins/ipc/PluginInstanceParent.h @@ -1,5 +1,4 @@ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- - * vim: sw=4 ts=4 et : * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -387,9 +386,6 @@ private: void SetCurrentImage(layers::Image* aImage); - // Update Telemetry with the current drawing model. - void RecordDrawingModel(); - private: PluginModuleParent* mParent; RefPtr<PluginAsyncSurrogate> mSurrogate; diff --git a/dom/plugins/ipc/PluginProcessParent.cpp b/dom/plugins/ipc/PluginProcessParent.cpp index b6efcdc64..444568135 100644 --- a/dom/plugins/ipc/PluginProcessParent.cpp +++ b/dom/plugins/ipc/PluginProcessParent.cpp @@ -1,5 +1,4 @@ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- - * vim: sw=4 ts=4 et : * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -11,7 +10,6 @@ #include "mozilla/ipc/BrowserProcessSubThread.h" #include "mozilla/plugins/PluginMessageUtils.h" -#include "mozilla/Telemetry.h" #include "nsThreadUtils.h" using std::vector; |