Commit Graph

124 Commits

Author SHA1 Message Date
Gijs Kruitbosch
c4a85a5a4d Bug 1456171 - make getPluginBlocklistState API asynchronous, r=kmag
MozReview-Commit-ID: KcDWtkdkNKs

--HG--
extra : rebase_source : 3c96317565b0efecc796ba4429324aa6c2945a69
2018-04-23 17:11:34 +01:00
Kris Maglione
a75561bd62 Bug 1412726: Clean up XPCOM singleton constructor refcount handling. r=froydnj
This is a follow-up to bug 1409249. There are a lot of places where our
factory singleton constructors either don't correctly handle their returned
references being released by the component manager, or do handle it, but in
ways that are not obvious.

This patch handles a few places where we can sometimes wind up with dangling
singleton pointers, adds some explanatory comments and sanity check
assertions, and replaces some uses of manual refcounting with StaticRefPtr and
ClearOnShutdown.

There are still some places where we may wind up with odd behavior if the
first QI for a getService call fails. In those cases, we wind up destroying
the first instance of a service that we create, and re-creating a new one
later.

MozReview-Commit-ID: ANYndvd7aZx

--HG--
extra : rebase_source : acfb0611a028fef6b9387eb5d1d9e285782fbc7c
2017-10-29 16:02:40 -07:00
Alex Gaynor
5881f616ec Bug 1405312 - Remove dead code from nsPluginHost; r=jimm
MozReview-Commit-ID: BsZIoTeZrNL

--HG--
extra : rebase_source : dbc6a3edeb0c22fba76ce9b7f74ed02c69a26494
2017-10-03 09:53:08 -04:00
Kyle Machulis
d33a528823 Bug 1279218 - Remove Java Test Plugin and rest of Java references; r=bsmedberg
MozReview-Commit-ID: IzqYDED7Tui

--HG--
extra : rebase_source : 3cae79b61f5d30ae8ea99b96844248f9b4eefac4
2017-07-17 16:45:48 -07:00
Bevis Tseng
95b18d794e Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08:00
Nicholas Nethercote
35d18050ad Bug 1352575 (part 18) - Remove PluginAsyncSurrogate. r=jimm.
The patch also removes PluginDataResolver and various other things that are no
longer necessary.

--HG--
extra : rebase_source : 98149b5e9e41789d4b094f52eaefc84f5393a0c4
2017-04-18 16:56:45 +10:00
Kyle Machulis
13959a88ce Bug 1337058 - Remove FindPlugins IPC message; r=bsmedberg 2017-06-06 18:29:32 -07:00
Ryan VanderMeulen
4b1082a507 Backed out changeset 0ff4ad45f99c (bug 1337058) for causing bug 1370237.
--HG--
extra : rebase_source : 3ed4d5a41898ead386f8a75b0d2f7be1899cf767
2017-06-05 20:14:55 -04:00
Kyle Machulis
2902c3f037 Bug 1337058 - Remove FindPlugins IPC message; r=bsmedberg
MozReview-Commit-ID: GQVHEeQp1dx

--HG--
extra : rebase_source : d421a613434be2bcca1120cfffb92ed9f20ba9d4
2017-06-01 15:33:23 -07:00
Peter Van der Beken
cb4d3a4725 Bug 558184 - Part 6 - Return fake plugins in e10s too. r=bz.
--HG--
extra : rebase_source : 262a496b92925dd29d5a39f58e606ef386558dc0
extra : source : d0b23431992ef9a66d9c93a173e766cdaea68082
2015-05-21 15:15:08 +02:00
Łukasz Kędziorski
264fce8c06 Bug 1357578 - Convert PRCList usage in nsPluginHost to mozilla::LinkedList. r=erahm,r=bsemdberg 2017-05-02 17:12:00 -07:00
Lie Ryan
70866b3ba5 Bug 1352572 - Remove unused code that implement NPN_PostURLNotify(file=true) and NPN_PostURL(file=true); r=bsmedberg
- Remove nsNPAPIPlugin.cpp:MakeNewNPAPIStreamInternal(file) parameter
- Remove nsPluginHost::PostURL(isFile) parameter
- Remove nsPluginHost::CreateTempFileToPost() unused function

MozReview-Commit-ID: 7bCBzGz9oSM

--HG--
extra : rebase_source : f59948b85e0da7baa9aec90878ebd6b76a5a3ca3
2017-04-12 14:28:50 +00:00
Kyle Machulis
2dcff1282b Bug 1351490 - Only load either flash and/or test plugins. Period. r=bsmedberg
Before this patch, mochitests could still load ALL plugins, meaning
MIME type checking would fail when another plugin snuck in. We should
only load exactly the plugins we expect to be there now.

MozReview-Commit-ID: KowCihZuceH
2017-04-11 13:53:58 -07:00
Kyle Machulis
f7da03fcf2 Bug 1351490 - Only run plugin finding on flash mime types/extensions; r=bsmedberg
Now that we only support the flash plugin, we should only run plugin
finding if the flash mime type is requested.

MozReview-Commit-ID: CrHkTe2aEyz
2017-04-11 13:53:58 -07:00
Kyle Machulis
c85ff9a38a Bug 1351486 - Remove unused nsPluginHost::eSpecialType_Unity; r=bsmedberg
MozReview-Commit-ID: 4XbcS006tls

--HG--
extra : rebase_source : 59c437e9264629a0b2e8f8922b41ce32c981afe7
2017-03-28 15:20:33 -07:00
Jed Davis
eae6e4b98c Bug 778201 - Remove nsPluginHost::FindProxyByURL and nsProtocolProxyService::DeprecatedBlockingResolve. r=bsmedberg,mcmanus
MozReview-Commit-ID: 9xuddxdw5cd

--HG--
extra : rebase_source : 4eaa281e108545a98697712861a453d096120a24
2017-02-03 16:32:04 -07:00
Julian Seward
6f7fcae338 Bug 1232696 - Remove NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW as it causes segfaulting for GCC 6 builds (2 of 5, fixes for dom/). r=bkelly. 2017-01-24 17:10:39 +01:00
Chris Peterson
2246059b1a Bug 1318833 - Part 2: Remove Silverlight plugin quirk compatibility. r=jimm 2016-11-28 22:51:45 -08:00
Chris Peterson
26308b5b88 Bug 1317111 - Remove RealPlayer plugin quirk handling. r=mats 2016-11-16 13:44:24 -08:00
Carsten "Tomcat" Book
a669e9f9f5 Backed out changeset af3eb6a8e0ae (bug 1317111) 2016-11-16 14:50:42 +01:00
Chris Peterson
14e98a8362 Bug 1317111 - Remove RealPlayer plugin quirk handling. r=mats
Delayed stop was only used for RealPlayer and forced reentry was only used by delayed stop (nsStopPluginRunnable).
2016-11-14 22:06:53 -08:00
Chris Peterson
c331fa9ecb Bug 1317109 - Remove Acrobat plugin quirk handling. r=jimm 2016-11-14 23:37:44 -08:00
Tooru Fujisawa
af1a0c5fd5 Bug 1289672 - Remove unused nsPluginHost.mPluginsClickToPlay and observation for plugins.click_to_play. r=bsmedberg
--HG--
extra : rebase_source : 7284d3c79e3e14d873383f754f88b41e4a8be426
2016-08-26 04:36:50 +09:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Bill McCloskey
bbb8c328d1 Bug 1237402 - Allow certain plugins to be loaded in parent process (r=jimm) 2016-01-28 14:52:04 -08:00
Bill McCloskey
8e82f52acf Bug 1231306 - Handle plugin state changes correctly in content process (r=jimm) 2015-12-29 14:30:58 -08:00
Jim Mathies
f1203966e4 Bug 1190364 - "With electrolysis (e10s) enabled and lots of tabs open, plugincheck often fails to find any plugins". r=billm
--HG--
extra : rebase_source : 2b1afcba9086e581b059c0e79c344df4e2e88de5
2015-11-11 05:35:00 +01:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Aaron Klotz
6ff7eebdec Bug 1211642: Whitelist test plugin for async plugin init; r=jimm
--HG--
extra : rebase_source : 0802e1745107ade56948d68bb8495c3eb0ddb5f2
2015-10-12 13:48:12 -06:00
Yury Delendik
227cd6c1dc Bug 1192831 - Remove PlayPreview API. r=jet, r=peterv
--HG--
extra : rebase_source : 7486debb89472aa52d034a8eb458245d7daec5ff
extra : source : 2d9ed9032a45d4c3644f40420428e1a8441785db
2015-08-20 15:15:18 -05:00
Christoph Kerschbaumer
e5e3756c82 Bug 1182543 - Use channel->ascynOpen2 in dom/plugins/base/nsPluginHost.cpp - simplifications in instanceowner (r=sicking) 2015-08-04 20:06:03 -07:00
John Schoenick
d91deee76b Bug 1178963 part 3. Make nsPluginHost aware of fake plugins. r=peterv 2015-05-20 15:30:05 +02:00
John Schoenick
6601080d53 Bug 1178963 part 1. Use nsIPluginTagInternal instead of nsPluginTag in cases where it may be nsFakePluginTag. r=peterv 2015-05-20 15:30:05 +02:00
Kyle Machulis
5f9983ed6f Bug 1165981 - Only allow flash as a plugin on Windows 64-bit builds; r=bsmedberg 2015-07-21 08:55:08 -07:00
Brad Lassey
341abc46ae Bug 1160166 - Disabled plugin meta information often isn't available to content processes. r=jimm 2015-07-14 09:21:14 -04:00
Birunthan Mohanathas
a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Brad Lassey
857ea25644 bug 1158561 - [e10s] Browser hang in PluginModuleParent::NPP_ClearSiteData() r=jimm,mak 2015-06-30 18:08:19 -04:00
Wes Kocher
9e61cb09b7 Backed out changeset 9e0475a23d21 (bug 1158561) for assertions in test_clear_site_data.html CLOSED TREE 2015-07-01 16:25:26 -07:00
Brad Lassey
8caec1b14a bug 1158561 - [e10s] Browser hang in PluginModuleParent::NPP_ClearSiteData() r=jimm,mak 2015-06-30 18:08:19 -04:00
Ryan VanderMeulen
9483a612e8 Backed out changesets 57bbe09f18f2 and 8353c823b8b5 (bug 1158561) for win32 build bustage.
CLOSED TREE
2015-07-01 12:11:41 -04:00
Brad Lassey
9ddc8315be bug 1158561 - [e10s] Browser hang in PluginModuleParent::NPP_ClearSiteData() r=jimm,mak 2015-06-30 18:08:19 -04:00
Aaron Klotz
0485cd2062 Bug 1151318: Add quirks flag to help Unity plugin release mouse capture; r=jimm
--HG--
extra : rebase_source : 6f2d1ac54701ee366177b8705372ab93f320c8d4
2015-05-20 13:13:16 -06:00
Jim Mathies
4fbc128cea Bug 1129040 - Provide a way for content processes to query the chrome side blocklist service. r=billm 2015-05-01 10:07:19 -05:00
Andrea Marchesini
cb54385682 Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
Andrea Marchesini
e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari
883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
John Schoenick
a11862a8ae Bug 1136379. Clean up the nsPluginHost API a bit. r=bzbarsky 2015-02-25 11:36:39 -05:00
Ted Mielczarek
c08cd3fbff bug 1121845 - Don't include generated IPDL header from nsPluginHost.h. r=bsmedberg
--HG--
extra : rebase_source : 7f0961a8fefe21372647eae9739b5da7475c5974
2015-02-05 07:56:19 -05:00
Benjamin Smedberg
d7fc6d77c0 bug 1131136 part A - watch the registry and reload plugins when it changes, r=jimm
--HG--
extra : rebase_source : 4257e7c33a3689ee70450bbc376a289d12091029
2015-02-10 14:58:01 -05:00
John Schoenick
73b9b08920 Bug 1061967 part 1 - Move checking for special-cased plugin types to a central spot. r=bsmedberg 2015-01-30 10:54:19 -05:00