Граф коммитов

3316 Коммитов

Автор SHA1 Сообщение Дата
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