Gijs Kruitbosch
82d0a77d46
Bug 1456171 - make getPluginBlocklistState API asynchronous, r=kmag
...
MozReview-Commit-ID: KcDWtkdkNKs
2018-04-23 17:11:34 +01:00
Kris Maglione
edc98f08f3
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
2017-10-29 16:02:40 -07:00
Alex Gaynor
16eb099477
Bug 1405312 - Remove dead code from nsPluginHost; r=jimm
...
MozReview-Commit-ID: BsZIoTeZrNL
2017-10-03 09:53:08 -04:00
Kyle Machulis
84ae1a8100
Bug 1279218 - Remove Java Test Plugin and rest of Java references; r=bsmedberg
...
MozReview-Commit-ID: IzqYDED7Tui
2017-07-17 16:45:48 -07:00
Bevis Tseng
59627df038
Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
2017-07-27 02:18:20 +08:00
Nicholas Nethercote
359128054c
Bug 1352575 (part 18) - Remove PluginAsyncSurrogate. r=jimm.
...
The patch also removes PluginDataResolver and various other things that are no
longer necessary.
2017-04-18 16:56:45 +10:00
Kyle Machulis
0dd99d6bad
Bug 1337058 - Remove FindPlugins IPC message; r=bsmedberg
2017-06-06 18:29:32 -07:00
Ryan VanderMeulen
066903527a
Backed out changeset 0ff4ad45f99c (bug 1337058) for causing bug 1370237.
2017-06-05 20:14:55 -04:00
Kyle Machulis
8b6cc02b09
Bug 1337058 - Remove FindPlugins IPC message; r=bsmedberg
...
MozReview-Commit-ID: GQVHEeQp1dx
2017-06-01 15:33:23 -07:00
Peter Van der Beken
664ad944ee
Bug 558184 - Part 6 - Return fake plugins in e10s too. r=bz.
2015-05-21 15:15:08 +02:00
Łukasz Kędziorski
5d6f7cf220
Bug 1357578 - Convert PRCList usage in nsPluginHost to mozilla::LinkedList. r=erahm,r=bsemdberg
2017-05-02 17:12:00 -07:00
Lie Ryan
64d3997e86
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
2017-04-12 14:28:50 +00:00
Kyle Machulis
89d9648295
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
d84088f8ca
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
440fc415b9
Bug 1351486 - Remove unused nsPluginHost::eSpecialType_Unity; r=bsmedberg
...
MozReview-Commit-ID: 4XbcS006tls
2017-03-28 15:20:33 -07:00
Jed Davis
b86735cec2
Bug 778201 - Remove nsPluginHost::FindProxyByURL and nsProtocolProxyService::DeprecatedBlockingResolve. r=bsmedberg,mcmanus
...
MozReview-Commit-ID: 9xuddxdw5cd
2017-02-03 16:32:04 -07:00
Julian Seward
ee8c840e10
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
a837685a49
Bug 1318833 - Part 2: Remove Silverlight plugin quirk compatibility. r=jimm
2016-11-28 22:51:45 -08:00
Chris Peterson
efd3e4ebdc
Bug 1317111 - Remove RealPlayer plugin quirk handling. r=mats
2016-11-16 13:44:24 -08:00
Carsten "Tomcat" Book
e8b977693f
Backed out changeset af3eb6a8e0ae (bug 1317111)
2016-11-16 14:50:42 +01:00
Chris Peterson
bac206e3d0
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
f365e34835
Bug 1317109 - Remove Acrobat plugin quirk handling. r=jimm
2016-11-14 23:37:44 -08:00
Tooru Fujisawa
adf347381a
Bug 1289672 - Remove unused nsPluginHost.mPluginsClickToPlay and observation for plugins.click_to_play. r=bsmedberg
2016-08-26 04:36:50 +09:00
Jonathan Watt
9c5b8de022
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Bill McCloskey
77ae7d5636
Bug 1237402 - Allow certain plugins to be loaded in parent process (r=jimm)
2016-01-28 14:52:04 -08:00
Bill McCloskey
f3f63ce830
Bug 1231306 - Handle plugin state changes correctly in content process (r=jimm)
2015-12-29 14:30:58 -08:00
Jim Mathies
970fa22aae
Bug 1190364 - "With electrolysis (e10s) enabled and lots of tabs open, plugincheck often fails to find any plugins". r=billm
2015-11-11 05:35:00 +01:00
Nathan Froyd
4e6d8f6705
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
2015-10-18 01:24:48 -04:00
Aaron Klotz
a172ce65c5
Bug 1211642: Whitelist test plugin for async plugin init; r=jimm
2015-10-12 13:48:12 -06:00
Yury Delendik
446be66517
Bug 1192831 - Remove PlayPreview API. r=jet, r=peterv
2015-08-20 15:15:18 -05:00
Christoph Kerschbaumer
10c3fa1643
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
cd38d88081
Bug 1178963 part 3. Make nsPluginHost aware of fake plugins. r=peterv
2015-05-20 15:30:05 +02:00
John Schoenick
174709e97c
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
9ea47f278e
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
b3d9f85dce
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
a29151dc87
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
6f3fecc1b0
bug 1158561 - [e10s] Browser hang in PluginModuleParent::NPP_ClearSiteData() r=jimm,mak
2015-06-30 18:08:19 -04:00
Wes Kocher
1e193b542b
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
5f96379688
bug 1158561 - [e10s] Browser hang in PluginModuleParent::NPP_ClearSiteData() r=jimm,mak
2015-06-30 18:08:19 -04:00
Ryan VanderMeulen
45d22e186e
Backed out changesets 57bbe09f18f2 and 8353c823b8b5 (bug 1158561) for win32 build bustage.
...
CLOSED TREE
2015-07-01 12:11:41 -04:00
Brad Lassey
ffff931b1a
bug 1158561 - [e10s] Browser hang in PluginModuleParent::NPP_ClearSiteData() r=jimm,mak
2015-06-30 18:08:19 -04:00
Aaron Klotz
a04a6e21bb
Bug 1151318: Add quirks flag to help Unity plugin release mouse capture; r=jimm
2015-05-20 13:13:16 -06:00
Jim Mathies
214ae9c591
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
18b38ad706
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
ad97ae68b8
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Ehsan Akhgari
ea41d8de48
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
d4c7392c8a
Bug 1136379. Clean up the nsPluginHost API a bit. r=bzbarsky
2015-02-25 11:36:39 -05:00
Ted Mielczarek
32e2e2a61a
bug 1121845 - Don't include generated IPDL header from nsPluginHost.h. r=bsmedberg
2015-02-05 07:56:19 -05:00
Benjamin Smedberg
e6d315ac14
bug 1131136 part A - watch the registry and reload plugins when it changes, r=jimm
2015-02-10 14:58:01 -05:00
John Schoenick
8be13dbd8b
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