Commit Graph

3394 Commits

Author SHA1 Message Date
Nicholas Nethercote
8a72cf2251 Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm.
--HG--
extra : rebase_source : 69d58b0cfb56efc6b03d8e2d7be2ce3c3e6cd843
2017-08-21 20:01:27 +10:00
Jan Beich
434eece1c8 Bug 1391993 - plugins: Fix -Wunreachable-code-return in PluginInstanceChild.cpp for non-OSX. r=kats
MozReview-Commit-ID: 9qIndwc8G0N

--HG--
extra : rebase_source : e58c1f2d2980f2fd6a29e5e053dcf0ec2130c3ca
2017-08-19 18:05:42 +00:00
Wes Kocher
c043502159 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
Wes Kocher
b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07:00
Maximilian Hunt
da0908751b Bug 1380078: Fix truncation of buffer size in CFStringRefToUTF8Buffer(); r=spohl
On 64 bit systems CFStringGetMaximumSizeForEncoding() returns a
CFIndex (long) integer which was being converted to an int, which may
not be 64 bit. This has been changed to an int64_t so it will never
truncate.

In addition, in the same function there was a redundant null check on
the return from moz_xmalloc.  This is an infallible memory allocator,
so the check is useless and has been removed.

MozReview-Commit-ID: 7BtBxPmGgQC

--HG--
extra : rebase_source : 9167bf47f839c6e05b7fbff68d525d72c9e2b29e
2017-08-17 06:26:06 +01:00
Ryan VanderMeulen
24c9581b48 Backed out changeset fbf0e8609abb (bug 1390428) for Windows clipboard test failures on a CLOSED TREE. 2017-08-18 10:58:47 -04:00
Jan de Mooij
1c28be60b0 Bug 1390074 - Remove unused nsJSObjWrapper::HasOwnProperty method. r=njn 2017-08-15 16:14:21 +02:00
Jan de Mooij
a5a9aef583 Bug 1390068 - Define Symbol.toPrimitive property when creating NPObjectMember instead of using a getProperty hook. r=evilpie 2017-08-14 15:54:56 +02:00
Jan de Mooij
34d7b9cafd Bug 1389949 - Make NPObjWrapper a JS proxy object. r=billm 2017-08-18 10:22:20 +02:00
Nicholas Nethercote
5241bea863 Bug 1390428 (part 2) - Remove more nsXPIDLCString local variables. r=erahm.
These are all easy cases where an nsXPIDLCString local variable is set via
getter_Copies() and then is used in ways that rely on the implicit conversion
to |char*|. The patch uses get() and EqualsLiteral() calls to replace the
implicit conversions.
2017-08-16 13:58:55 +10:00
Tom Ritter
762be623bf Bug 1390624 Resolve missing do_GetCurrentThread instance by including nsThreadUtils.h r=cyu
MozReview-Commit-ID: 2cQN4VTix7q

--HG--
extra : rebase_source : 169da32f32ae5c3f74b928e04b217cf9b6d58e4f
2017-08-16 20:12:37 -05:00
Matt Woodrow
781ec6ffa1 Bug 1388162 - Add a Destroy function to nsDisplayItem to use instead of manually invoking the destructor, this will allow us to recycle them in the future. r=mstange
* * *
[mq]: fix

MozReview-Commit-ID: LUXZAIL73BJ
2017-08-07 16:07:43 +12:00
Sebastian Hengst
7f85daeb2a Backed out changeset e9985564e081 (bug 1388162) for failing chrome's test_animation_performance_warning.html | preserve-3d transform. r=backout 2017-08-10 14:40:20 +02:00
Matt Woodrow
95f2e31f88 Bug 1388162 - Add a Destroy function to nsDisplayItem to use instead of manually invoking the destructor, this will allow us to recycle them in the future. r=mstange 2017-08-07 16:07:43 +12:00
Matthew Gregan
526a07e856 Bug 1388236 - Remove B2G-only AudioChannel code from dom/audiochannel. r=alwu 2017-08-10 13:00:09 +12:00
Nicholas Nethercote
f941156987 Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.

The patch also removes a couple of unused declarations from
nsIStringBundle.idl.

Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.

--HG--
extra : rebase_source : ac40bc31c2a4997f2db0bd5069cc008757a2df6d
2017-08-04 14:40:52 +10:00
Masatoshi Kimura
8b713b2b0f Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC

--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
James Willcox
d0bb12024d Bug 1381916 - Remove support for plugins on Android r=jchen,bsmedberg
MozReview-Commit-ID: AcAIC1QQew2
2017-07-31 12:25:16 -05:00
Sebastian Hengst
915c63c332 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-07-31 11:28:37 +02:00
Nicholas Nethercote
72c884bf74 Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
--HG--
extra : rebase_source : d317b25be2ec21d1a60d25da3689e46cdce0b649
2017-07-31 14:28:48 +10:00
Kyle Machulis
d812ac4e87 Bug 1279218 - Additional applet tag logic removal; r=bz
I've been having problems with interdiffs on mozreview lately, so for
ease of review, this patch is being submitted as a seperate patch for
review. Once it is r+'d, it will be folded into the first patch in
this set before landing.

MozReview-Commit-ID: CS9MngaXlBd

--HG--
extra : rebase_source : 6a86fd4f7a66e73497a756976a2562d183002a2a
2017-07-28 16:44:39 -07: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
Kyle Machulis
ef8d138ba7 Bug 1279218 - Remove tests related to the applet tag; r=bz
MozReview-Commit-ID: FzzA5Qic4Uq

--HG--
extra : rebase_source : 64206ee3e5073bafd822b23040fe6e24dda3463f
2017-07-10 16:15:16 -07:00
Kyle Machulis
ffa9be1bed Bug 1279218 - Remove Applet tag; r=bz
Removes applet tag interfaces, and changes HTML5 parser to output
HTMLUnknownElement when tag is found. Removes tag process from various
places in the browser.

MozReview-Commit-ID: 2zHhK2U2esX

--HG--
extra : rebase_source : d06ecaffd1cb656301e29b900bafde4c68a4606e
2017-07-10 16:00:30 -07:00
Christoph Kerschbaumer
d7cb1595c0 Bug 1385223 - Convert tests within dom/plugins/test/mochitest/ to comply with new data: URI inheritance model. r=bsmedberg 2017-07-28 11:35:46 +02:00
Sebastian Hengst
744a0a216b Backed out changeset ef5feef07bed (bug 1384835) 2017-07-28 10:29:24 +02:00
Nicholas Nethercote
200d8ec18b Bug 1384835 (part 3) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
This is similar like the previous patch, but for the 8-bit string variants.
Also, it changes assignment to Adopt() in GetCString() and GetDefaultCString()
to avoid an extra copy.

--HG--
extra : rebase_source : eba805c3a7b809d5ccd6e853b1c9010db9477667
2017-07-27 16:45:10 +10: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
2a4f265a62 Bug 1381727 (part 2) - Remove SmprintfFree(). r=glandium.
It's just a complex wrapper for free(), or equivalent function. (In practice,
all the uses end up in free().)

--HG--
extra : rebase_source : 247ea8458aa57319bd1c8366115a9b4f39ed5a33
2017-07-25 09:09:25 +10:00
Nicholas Nethercote
2a1feb9d19 Bug 1352573 (part 1) - Convert FlashThrottleAsyncMsg from a ChildAsyncCall to a CancelableRunnable. r=bsmedberg.
This requires adding mPendingFlashThrottleMsgs to PluginInstanceChild. It also
requires adding FlashThrottleMsg::mInstance, and a FlashThrottleMsg::Cancel()
function that nulls mInstance.

--HG--
extra : rebase_source : 87e5732ddf2ad57d4f3ff078ab66143797eac49f
2017-07-19 17:22:05 +10:00
Christoph Kerschbaumer
3e70ba6667 Bug 1381755: Test that data: URIs can't activate plugins. r=bsmedberg 2017-07-24 20:34:44 +02:00
Sylvestre Ledru
7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Nicholas Nethercote
2ecfb44f0a Bug 1382099 - Remove MOZ_WIDGET_GONK from dom/{base,ipc,plugins}. r=mccr8. 2017-07-21 10:52:30 +10:00
Benjamin Smedberg
cbb52b352c Bug 1381591 - Refactor plugin initialization/performance telemetry to measure the things we care about, r=qdot data-r=rweiss
MozReview-Commit-ID: CZ6AZ64RUt9

--HG--
extra : rebase_source : a2021cad0a33bae173fa1d4f1ba8ca9dabc13149
2017-07-17 16:31:45 -04:00
Kyle Machulis
7b54b19bf5 Bug 1350640 - Send blocklist state on plugin list update; r=bsmedberg
Instead of synchronously checking the blocklist, package each plugin's
blocklist state with it when sending the information to the content
process. Whenever the blocklist is changed, just resend the whole
plugin list.

MozReview-Commit-ID: 1AX1EDdTRqb

--HG--
extra : rebase_source : 95d30f23eaede357bfb03757a7d9a6cc62e2adf9
2017-07-13 17:11:55 -07:00
Benjamin Smedberg
3f04a71bfa Bug 1352559 followup (part 4) - remove remaining references to NPN_DestroyStream called by internal code on stream teardown, r=qdot
MozReview-Commit-ID: ErBzhf2yDN9

--HG--
extra : rebase_source : 40d639f9565e8dbbf9705afa3bfdfbcc850c6d4d
extra : amend_source : f06924b2bcb0bdb00aafea09be00509e08235373
2017-07-17 13:06:01 -04:00
dan1bh
de45c53ef7 Bug 1352559 - Remove support for plugin-provided streams; NPN_NewStream, PPluginStream and other supporting machinery, r=bsmedberg
Removed API List:
* NPN_NewStream
* NPN_Write
* NPN_DestroyStream
* nsNPAPIStreamWrapper
* nsPluginStreamToFile
* PPluginStream.ipdl

MozReview-Commit-ID: 61dKGct3qGW

--HG--
extra : source : 999aa7b6683d7f0cf481f8dd0e8a9ba3dade4a05
extra : intermediate-source : cb1548354e0cf582dca6b0ab0d27712d01a4c819
2017-07-11 14:27:25 -04:00
Nicholas Nethercote
7f215371c0 Backed out changeset cb1548354e0c (bug 1352559, part 3) for causing *many* crashes in Nightly. r=backout 2017-07-17 09:41:29 +10:00
dan1bh
b62787e960 Bug 1352559 - Remove support for plugin-provided streams; NPN_NewStream, PPluginStream and other supporting machinery, r=bsmedberg
Removed API List:
* NPN_NewStream
* NPN_Write
* NPN_DestroyStream
* nsNPAPIStreamWrapper
* nsPluginStreamToFile
* PPluginStream.ipdl

MozReview-Commit-ID: 61dKGct3qGW

--HG--
extra : rebase_source : 1567d89d0735ca23c964a0c6691f9a117305641f
extra : source : 999aa7b6683d7f0cf481f8dd0e8a9ba3dade4a05
2017-07-11 14:27:25 -04:00
Benjamin Smedberg
19fcc00092 Remove tests for functionality that we're removing either in bug 1352559 (NPN_NewStream) or bug 1352567 (seekable and/or file streams). r=qdot
MozReview-Commit-ID: HfvlQx5Iw84

--HG--
extra : rebase_source : 14865069b85b261ab34b4ceb29aed5461dc31acc
extra : source : 3d7da5a9c91dbd2cbc0cccae600774700d7649d5
2017-07-11 14:26:58 -04:00
Benjamin Smedberg
71201c57db Prequel to bug 1352559 - #includes and forward declarations necessary for various files to build properly exposed by unified build changes, r=trivial
MozReview-Commit-ID: 6VlJIwIH9ir

--HG--
extra : rebase_source : b0955e42e48aee7fdeca12008a8845fbef76414b
extra : source : f24b862218378d14e6dfc47be54cdecb66537644
2017-07-12 12:26:39 -04:00
Sebastian Hengst
873c61c4f6 Backed out changeset f24b86221837 (bug 1352559) for build bustage: unused variable 'stillwaiting' at dom/plugins/test/testplugin/nptest.cpp:1409. r=backout on a CLOSED TREE 2017-07-12 19:11:49 +02:00
Sebastian Hengst
cdc9bccf24 Backed out changeset 3d7da5a9c91d (bug 1352559) 2017-07-12 19:10:55 +02:00
Sebastian Hengst
849284daf4 Backed out changeset 999aa7b6683d (bug 1352559) 2017-07-12 19:10:50 +02:00
dan1bh
88039d6fa3 Bug 1352559 - Remove support for plugin-provided streams; NPN_NewStream, PPluginStream and other supporting machinery, r=bsmedberg
Removed API List:
* NPN_NewStream
* NPN_Write
* NPN_DestroyStream
* nsNPAPIStreamWrapper
* nsPluginStreamToFile
* PPluginStream.ipdl

MozReview-Commit-ID: 61dKGct3qGW

--HG--
extra : rebase_source : 0e9be256f97be62efe376a3f70d579859592901f
2017-07-11 14:27:25 -04:00
Benjamin Smedberg
c78046958f Remove tests for functionality that we're removing either in bug 1352559 (NPN_NewStream) or bug 1352567 (seekable and/or file streams). r=qdot
MozReview-Commit-ID: HfvlQx5Iw84

--HG--
extra : rebase_source : b2ea80869c1a47b9d83ff5fbd9112349f74f6f06
2017-07-11 14:26:58 -04:00
Benjamin Smedberg
b502aabed0 Prequel to bug 1352559 - #includes and forward declarations necessary for various files to build properly exposed by unified build changes, r=trivial
MozReview-Commit-ID: 6VlJIwIH9ir

--HG--
extra : rebase_source : 93b2d2d34728f358bf8bd4f0317ea47f91b04450
2017-07-12 12:26:39 -04:00
Makoto Kato
1b41d2ecf8 Bug 943276 - Remove unused nsIPlatfromCharset. r=emk
By bug 1261841, we don't use nsIPlatfromCharset on PluginTags.  So we should remove unused header.

MozReview-Commit-ID: 8Y4YwRzTJuk
2017-07-10 12:37:56 +09:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Nicholas Nethercote
16bed6d6fd Bug 1352575 (part 23) - Remove PluginProcessParent::mRunCompleteTaskImmediately. r=jimm.
Because it never gets set true any more.

The patch also removes PluginModuleChromeParent::WaitForIPCConnection().

--HG--
extra : rebase_source : c50d3be53e46dc8d10e0060cf6c354fc2daa1321
2017-04-18 16:56:45 +10:00
Nicholas Nethercote
3e11c1984e Bug 1352575 (part 22) - PluginModuleParent::mAsyncNewRv. r=jimm.
--HG--
extra : rebase_source : 54d14cb006fcb4ee559f2d78acb7eabcc3578db0
2017-04-18 16:56:45 +10:00
Nicholas Nethercote
1fae3c8e42 Bug 1352575 (part 21) - Remove PluginModuleParent::mIsNPShutdownPending. r=jimm.
--HG--
extra : rebase_source : a3b748f82f8cc813da3c2329c502619203580b12
2017-04-18 16:56:45 +10:00
Nicholas Nethercote
7529d220e0 Bug 1352575 (part 20) - Remove nsPluginInstanceOwner::NotifyHostAsyncInitFailed. r=jimm.
--HG--
extra : rebase_source : b57662f4121c469e81318c30e27b06c51334d0b7
2017-04-18 16:56:45 +10:00
Nicholas Nethercote
ce3d58ef65 Bug 1352575 (part 19) - Remove PluginModuleParent::mNPInitialized. r=jimm.
--HG--
extra : rebase_source : 423810d76fa2ea0785daacc549d23e8ab57ab297
2017-04-18 16:56:45 +10: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
Nicholas Nethercote
7ac822f120 Bug 1352575 (part 17) - Remove AsyncNPP_NewStreamResult. r=jimm.
--HG--
extra : rebase_source : 95ceae4a862ba44122919c5ca5e4f51b1dba0644
2017-05-29 12:06:55 +10:00
Nicholas Nethercote
1f21c73d85 Bug 1352575 (part 16) - Remove PluginModuleChromeParent::mAsyncInitRv. r=jimm.
--HG--
extra : rebase_source : e901cb818cd3cd39560b2fd86415024bf0fd7c1d
2017-04-18 16:56:45 +10:00
Nicholas Nethercote
89708190f1 Bug 1352575 (part 15) - Remove PluginModuleChromeParent::mInitOnAsyncConnect. r=jimm.
--HG--
extra : rebase_source : 8a32d63bd15bf365ffd825248d374c21b6a885de
2017-04-18 16:56:44 +10:00
Nicholas Nethercote
1bd10a2d9e Bug 1352575 (part 14) - Remove more surrogate use when casting. r=jimm.
--HG--
extra : rebase_source : a5c0cae3b8aae57c8b440311262a8ad0c4c64492
2017-04-18 16:56:44 +10:00
Nicholas Nethercote
4b13b22552 Bug 1352575 (part 13) - Remove surrogate use when casting. r=jimm.
--HG--
extra : rebase_source : f58166692141cce898877f48c7390587e385175d
2017-05-26 15:32:30 +10:00
Nicholas Nethercote
e08f1ddc1f Bug 1352575 (part 12) - Remove NP_InitializeResult. r=jimm.
--HG--
extra : rebase_source : 9ac4be00773bbcb27834bd338c569238cd0bec7c
2017-04-18 16:56:44 +10:00
Nicholas Nethercote
671542cfd3 Bug 1352575 (part 11) - Remove LoadPluginResult and AssociatePluginId. r=jimm.
--HG--
extra : rebase_source : ecc5dd47ef1177abd947f331473a7436c97dad61
2017-04-18 16:56:44 +10:00
Nicholas Nethercote
8990926e77 Bug 1352575 (part 10) - Remove PluginModuleChromeParent::mContentParent. r=jimm.
--HG--
extra : rebase_source : 75006d9b1b70752de872ad4c5de74248d6ce9290
2017-04-18 16:56:44 +10:00
Nicholas Nethercote
fd1653bcc9 Bug 1352575 (part 9) - Remove AsyncNP_Initialize. r=jimm.
--HG--
extra : rebase_source : c9924774a5f32291a889868d790ed46a104e88a4
2017-04-18 16:56:44 +10:00
Nicholas Nethercote
2f893da4ae Bug 1352575 (part 8) - Remove AsyncNPP_NewResult. r=jimm.
--HG--
extra : rebase_source : 6a4fed8d2ed4c34c2a8b2ddbd3c521cb38fc6f58
2017-04-18 16:56:44 +10:00
Nicholas Nethercote
19f1b19c1d Bug 1352575 (part 7) - Remove AsyncNPP_NewStream. r=jimm.
--HG--
extra : rebase_source : 6b1010d7e6dd0bc75576ac21fbbc6f59848b2dcc
2017-04-18 16:56:43 +10:00
Nicholas Nethercote
b3ddc9836a Bug 1352575 (part 6) - Remove AsyncNPP_New. r=jimm.
And related code.

--HG--
extra : rebase_source : 55e76551a0555dda6acf6b07ba792afc48a1c0aa
2017-04-18 16:56:43 +10:00
Nicholas Nethercote
c67ffb04c6 Bug 1352575 (part 5) - Remove PluginModuleParent::mIsStartingAsync. r=jimm.
This allows a bunch of other things to be removed too, including
PluginModuleParent::mSurrogateInstances,
PluginModuleChromeParent::sInstantiated, and NS_PLUGIN_INIT_PENDING.

The patch also removes the AsyncPluginInit crash annotation.

--HG--
extra : rebase_source : cadb1d215fd93051c9032ea0a1fb6f1d2fb80c6d
2017-04-18 16:56:43 +10:00
Nicholas Nethercote
86c372f589 Bug 1352575 (part 4) - Remove dom.ipc.plugins.asyncInit.enabled pref. r=jimm.
The feature is in the process of being removed.

--HG--
extra : rebase_source : 7540804ef15db7001dafc854fc35f7c1834d8815
2017-04-18 16:56:43 +10:00
Nicholas Nethercote
3dbe336b54 Bug 1352575 (part 3) - Remove PluginModuleChromeParent::mAsyncInitError. r=jimm.
It's unused.

--HG--
extra : rebase_source : a52c85e601f47b132e5e4fea1d682f7ee4210bfb
2017-04-18 16:56:43 +10:00
Nicholas Nethercote
04ae66367e Bug 1352575 (part 2) - Remove nsPluginTag::mSupportsAsyncInit. r=jimm.
It's not used in any useful way.

--HG--
extra : rebase_source : 195ae6ac95860d229cf07cb0c86351dee32bf9a1
2017-04-18 16:56:43 +10:00
Nicholas Nethercote
a68d1bbb86 Bug 1352575 (part 1) - Remove unused supportsAsyncInit arguments and fields. r=jimm.
The aAllowAsyncInit argument to PluginModuleParent's constructor is unused.
This patch removes it and various other things that are no longer needed once
it is gone.

--HG--
extra : rebase_source : a97f5b83a0f8564fd287a5e920fb24e01b45967e
2017-04-18 16:56:43 +10:00
Kartikaya Gupta
cad9534e69 Bug 1377090 - Turn gfxMatrix into a typedef for MatrixDouble. r=jrmuizel
Most of this patch is updating a few places that use gfxMatrix to use
the equivalent-but-differently-named functions on MatrixDouble:
- Translate/Rotate/Scale get turned into PreTranslate/PreRotate/PreScale
- Transform(Point) gets turned into TransformPoint(Point)
- gfxMatrix::TransformBounds(gfxRect) gets turned into
  gfxRect::TransformBoundsBy(gfxMatrix).
- gfxMatrix::Transform(gfxRect) gets turned into
  gfxRect::TransformBy(gfxMatrix).
The last two functions are added in this patch as convenience wrappers
to gfxRect instead of Matrix.h because we don't want Matrix.h to "know"
about gfxRect (to avoid adding gecko dependencies on Moz2D). Once we
turn gfxRect into a typedef for RectDouble these will be eliminated
anyway.

MozReview-Commit-ID: BnOjHzmOSKn

--HG--
extra : rebase_source : cf1692d1f0d44a4b05d684a66678739181a426d5
2017-07-05 11:18:49 -04:00
Mats Palmgren
977a9e5f89 Bug 1376498 part 4 - Make all nsClassHashtable::RemoveAndForget() consumers use Remove() instead. r=froydnj
MozReview-Commit-ID: G64YQLlgm6r
2017-07-05 02:01:45 +02:00
Bill McCloskey
224d56eb18 Bug 1377222 - Eliminate nsITimer::InitWithFuncCallback in favor of InitWithNamedFuncCallback (r=froydnj)
MozReview-Commit-ID: 9zN9aAd7daA
2017-07-03 16:19:56 -07:00
Nicholas Nethercote
3e439bb4f8 Bug 1376638 - Minimize uses of prmem.h. r=glandium.
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)

This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.

--HG--
extra : rebase_source : 0f781bca68b5bf3c4c191e09e277dfc8becffa09
2017-06-30 19:05:41 -07:00
Andrew Swan
e9b0926a4a Bug 1369517 Make automation work with legacy extensions disabled r=rhelmer
- Set the extensions.legacy.enabled pref for mochitests etc
- Skip a plugin-inside-xpi test for now if legacy extensions
  are force-disabled.  That test can just be removed once we
  get to 57.

MozReview-Commit-ID: As9LtkQTcTS

--HG--
extra : rebase_source : fcc84daef95c453e893cc3b98498fdb87f54b1bb
2017-06-01 21:20:08 -07:00
Bill McCloskey
f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Florian Quèze
2924991bf6 Bug 1368456 - remove Promise.jsm imports in tests, r=mconley. 2017-06-23 11:25:52 +02:00
Nicholas Nethercote
58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
Nicholas Nethercote
f1364a75ea Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
All the instances are converted as follows.

- nsSubstring  --> nsAString
- nsCSubstring --> nsACString

--HG--
extra : rebase_source : cfd2238c52e3cb4d13e3bd5ddb80ba6584ab6d91
2017-06-20 19:19:52 +10:00
Nicholas Nethercote
fe9268c4cd Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj.
All the instances are converted as follows.

- nsAFlatString  --> nsString
- nsAFlatCString --> nsCString

--HG--
extra : rebase_source : b37350642c58a85a08363df2e7c610873faa6e41
2017-06-20 19:19:05 +10:00
Carsten "Tomcat" Book
95c2137595 Merge mozilla-central to mozilla-inbound 2017-06-22 14:10:35 +02:00
Cervantes Yu
05b9a6c854 Bug 1360308 - Part 2: Use callback in CrashReporterHost::GenerateMinidumpAndPair() and up the caller chain. r=gsvelto
This changes CrashReporterHost::GenerateMinidumpAndPair() and up the caller chain to use callbacks so we
may call it synchronously or asynchronously.

MozReview-Commit-ID: 4PQH6cVdOk0
2017-06-22 18:52:58 +08:00
Cervantes Yu
e7ad561c4e Bug 1360308 - Part 1: De-templatize CrashReporterHost::GenerateMinidumpAndPair(). r=gsvelto
Cleans up CrashReporterHost::GenerateMinidumpAndPair() and move it to CrashReporterHost.cpp.
Also removes the call to open a privileged process handle and get the already open handle
from GeckoChildProcessHost.

MozReview-Commit-ID: 8wLm1hf8zrJ
2017-06-22 18:52:42 +08:00
Florian Quèze
5b8f8b884c Bug 1374282 - script generated patch to remove Promise.defer calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Florian Quèze
66f6d259bc Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Chris Peterson
06783015b2 Bug 1373525 - dom/plugins: Remove unused member function PluginModuleMapping::IsLoadModuleOnStack(). r=jimm
The static variable PluginModuleMapping::sIsLoadModuleOnStack is only accessed within the class PluginModuleMapping and the unused getter IsLoadModuleOnStack() can be removed.

dom/plugins/ipc/PluginModuleParent.cpp:313:5 [-Wunused-member-function] unused member function 'IsLoadModuleOnStack'

MozReview-Commit-ID: 5UCxHZUQCNQ

--HG--
extra : source : 0c369361860f9904472e3247946a9ee65bbf3145
extra : intermediate-source : cbe47c79803d6d46166866df8c8ae451fa5b5318
extra : histedit_source : 94d7539194d783092481b299cb6ae37dd5a11ad6
2017-06-15 00:49:28 -07:00
Nathan Froyd
27c58cf89f Bug 1372670 - part 3 - add spinEventLoopUntil to nsIThreadManager; r=erahm,florian 2017-06-21 12:59:28 -04:00
Carsten "Tomcat" Book
8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
David Anderson
eda24ede27 Rename LayerManager::Composite to LayerManager::ScheduleComposite. (bug 1365879 part 17, r=mattwoodrow) 2017-06-20 01:17:21 -07:00
Carsten "Tomcat" Book
ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Masatoshi Kimura
3231cb3535 Bug 1372886 - Remove dead parameters from nsIConverterInputStream.init(). r=hsivonen
MozReview-Commit-ID: GliLHLsUWjt

--HG--
extra : rebase_source : 50d3f4680a498125ddf600b0d64f6740b0229f80
2017-06-17 19:30:09 +09:00
Jan de Mooij
83f290de99 Bug 1370608 part 1 - Move newEnumerate hook from ObjectOps to ClassOps. r=evilpie,bz 2017-06-14 10:37:44 +02:00
Wes Kocher
6c1a0ae549 Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout
Backed out changeset 67a27cf0ab80 (bug 1371699)
Backed out changeset 7e494fa90087 (bug 1371699)
Backed out changeset 30405ec37e1e (bug 1371699)
Backed out changeset 2d67624a01dc (bug 1371699)
Backed out changeset 503c9d22e6bb (bug 1371699)
Backed out changeset eedcb67a9fb6 (bug 1371699)

MozReview-Commit-ID: 4HydLjK7Ond
2017-06-13 17:50:11 -07:00
Boris Zbarsky
3d884086c3 Bug 1371699 part 3. Make nsIStringInputStream not inherit from nsIInputStream anymore. r=bkelly
This will prevent ambiguous nsIInputStream inheritance once we also inherit from nsIAsyncInputStream.
2017-06-13 16:16:23 -04:00
Ryan Hunt
fcb54217c6 Bug 1371527 - Add LayersMessageUtils for IPC serialization of mozilla::layers structs. r=dvander
MozReview-Commit-ID: 7UAtrnnlSqI

--HG--
rename : gfx/ipc/GfxMessageUtils.h => gfx/layers/ipc/LayersMessageUtils.h
extra : rebase_source : 99abcb49ede377e5c31440b2d21a5bd79cda65e0
extra : amend_source : d1820fb6e7aee5e0dbcc83242e9264d8f4e7a4d0
2017-06-08 23:32:13 -05:00
Alexis Beingessner
adb013669b Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
MozReview-Commit-ID: K1WUIOnvazF
2017-06-13 11:00:10 -04:00