ibragimovrinat

hide plugins from Javascript in Firefox 46.0.1

May 16th, 2016
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/dom/base/nsMimeTypeArray.cpp b/dom/base/nsMimeTypeArray.cpp
  2. index 2e22076..044bf4e 100644
  3. --- a/dom/base/nsMimeTypeArray.cpp
  4. +++ b/dom/base/nsMimeTypeArray.cpp
  5. @@ -192,6 +192,7 @@ nsMimeTypeArray::GetSupportedNames(unsigned, nsTArray< nsString >& aRetval)
  6.  void
  7.  nsMimeTypeArray::EnsurePluginMimeTypes()
  8.  {
  9. +  return;
  10.    if (!mMimeTypes.IsEmpty() || !mWindow) {
  11.      return;
  12.    }
  13. diff --git a/dom/base/nsPluginArray.cpp b/dom/base/nsPluginArray.cpp
  14. index eba3127..cc51e91 100644
  15. --- a/dom/base/nsPluginArray.cpp
  16. +++ b/dom/base/nsPluginArray.cpp
  17. @@ -288,6 +288,7 @@ operator<(const RefPtr<nsPluginElement>& lhs,
  18.  void
  19.  nsPluginArray::EnsurePlugins()
  20.  {
  21. +  return;
  22.    if (!mPlugins.IsEmpty()) {
  23.      // We already have an array of plugin elements.
  24.      return;
  25. @@ -454,6 +455,7 @@ nsPluginElement::MimeTypes()
  26.  void
  27.  nsPluginElement::EnsurePluginMimeTypes()
  28.  {
  29. +  return;
  30.    if (!mMimeTypes.IsEmpty()) {
  31.      return;
  32.    }
RAW Paste Data