Commit Graph

558322 Commits

Author SHA1 Message Date
JW Wang
ef21878fba Bug 1398659. P10 - remove ChannelMediaResource::mIgnoreClose. r=gerald
mIgnoreClose is always set in conjunction with a call to CloseChannel().
Since mListener->Revoke() will prevent future OnStopRequest() calls from coming,
it is unnecessary to set mIgnoreClose and therefore we can remove this member.

MozReview-Commit-ID: HEXIhIUG8WN

--HG--
extra : rebase_source : 656c1bb67fcddcca4c2c17b0bb783ad325ab52ec
extra : source : b852f796c1ba6a8bc442013b7b6058a24a33634b
2017-09-08 11:20:39 +08:00
Stone Shih
6837036723 Bug 1397461: Fire coalesced mousemove event when the event button or buttons changes. r=smaug. 2017-09-08 10:21:09 +08:00
Bill McCloskey
7e14af9ef5 Bug 1398423 - Enable picking events from multiple labeled event queues (r=froydnj)
MozReview-Commit-ID: AsfFUsQjMAV
2017-09-11 19:11:07 -07:00
Bill McCloskey
47a8d9cfd8 Bug 1398420 - Don't use SystemGroup for CookieServiceChild (r=jdm)
I noticed a bug where the following can happen. The parent sends a
TrackCookiesLoad message followed by an HTTP OnStartRequest
message. When these messages are received in the child, the
TrackCookiesLoad message goes in the SystemGroup event queue and the
OnStartRequest message goes in the event queue for the relevant
tab. Unfortunately, this means that the OnStartRequest message could
run first since the queues have no guaranteed ordering.

We really should be putting the TrackCookiesLoad message in the same
queue that the OnStartRequest message goes in. I worked on that a
little bit, but it's hard to get right. For now, I would like to leave
the cookie message unlabeled. Any unlabeled message/event is totally
ordered with respect to all other messages/events, so this fixes the
bug.

MozReview-Commit-ID: KiLDAhlrbB8
2017-09-11 19:11:05 -07:00
Bill McCloskey
0f4e7d4fe6 Bug 1398423 - Fix LabeledEventQueue bug with unlabeled events (r=froydnj)
MozReview-Commit-ID: 7ru62QTkya2
2017-09-11 19:11:03 -07:00
Bill McCloskey
b9683a5b18 Bug 1398423 - Make linked list of SchedulerGroups static (r=froydnj)
MozReview-Commit-ID: GgfdRlhPiHP
2017-09-11 19:11:01 -07:00
Bill McCloskey
fe8e58f308 Bug 1397941 - Fix DecodedStream labeling bug (r=jwwang)
MozReview-Commit-ID: KL5XzLJuWgz
2017-09-11 19:10:59 -07:00
Bill McCloskey
9c4cbe52d1 Bug 1398417 - Fix PrioritizedEventQueue bugs with input event prioritization (r=stone)
MozReview-Commit-ID: 4wk8EUv0h7C
2017-09-11 19:10:57 -07:00
David Teller
44b7cab271 Bug 1397717 - Using GenericPrinter for DEBUG-only C++ dump() APIs;r=nbp
We have a host of DEBUG-only dump()-style APIs that output either to
stderr or to a FILE*. Unfortunately, this means that we cannot use
these dumps e.g. for unit tests. This patch ports most of the dump()
APIs to use GenericPrinter, which is more flexible.

Some parts of the code have not been ported, in particular
TypeInference, which still uses stderr.

MozReview-Commit-ID: A5WGOPyIPTa

--HG--
extra : rebase_source : 2c092256569d7f0d5656acea9c6d7dbaf32667be
2017-09-07 15:22:38 +02:00
Alastor Wu
7ed84d4e89 Bug 1397141 - part8 : update test for video under 48x48. r=jya
In patch3, we remove the minimum resolution check, now the video under 48x48 can
be playback successfully. Therefore, removing them from error test and we should
ensure they can be playback.

MozReview-Commit-ID: BvLtr4DN1hU

--HG--
extra : rebase_source : 30b9dc35f5754d6ecc7cddaf7f5a9fabf9965889
2017-09-13 15:38:24 +08:00
Alastor Wu
10f4de4d65 Bug 1397141 - part7 : update error description in MFR. r=jya
MozReview-Commit-ID: 9Sb5ogX2Bf2

--HG--
extra : rebase_source : 8a2ae32439097c583c63290009b8ca5de36b49a8
2017-09-13 15:38:06 +08:00
Alastor Wu
116ce6a963 Bug 1397141 - part6 : use MediaResult to replace nsresult r=jya
Return MediaResult instead of using nsresult, because it can contain more detailed
error information. We could also return this error with our rejected decode promise.

MozReview-Commit-ID: 80yEAbxqvWu

--HG--
extra : rebase_source : 51a56b571767c6b64f0c92353585261b28ea5616
2017-09-13 15:37:50 +08:00
Alastor Wu
686b38b20a Bug 1397141 - part5 : update error description from GPU process. r=jya,mattwoodrow
MozReview-Commit-ID: 9aKyYftBnUo

--HG--
extra : rebase_source : a497e12d98e3a2b0e0ec2afa60298cacbe1a5ea9
2017-09-13 15:37:24 +08:00
Alastor Wu
1df67c03cc Bug 1397141 - part4 : change mLastError type to MediaResult r=jya
Change mLastError type to MediaResult and send it as parameter to PDM::CreateVideoDecoder
in order to get detailed error description.

MozReview-Commit-ID: 4sIRXTHsrzr

--HG--
extra : rebase_source : 23d72cc72f5683305745024de913f44298d717d5
2017-09-13 15:05:52 +08:00
Alastor Wu
b89748ad91 Bug 1397141 - part3 : remove the minimum resolution check. r=jya
After bug 1392143, we won't enable HW decoding for the resolution < 132 pixels.
In addition, software decoder doesn't have the minimum resolution limit, so
we can remove the minimum resolution check.

MozReview-Commit-ID: 7MiLpwjiq3s

--HG--
extra : rebase_source : 742556f6f2fb40b3e5e69212707a606d3b22ed36
2017-09-13 15:05:45 +08:00
Alastor Wu
0eecc91949 Bug 1397141 - part2 : move resolution constraints to WMFVideoMFTManager r=jya
WMFDecoderModule should only focus on whether the mime type is supported or not.
Let WMFVideoMFTManager do the checking.

MozReview-Commit-ID: K6jPfrntu7s

--HG--
extra : rebase_source : f6ba055824c3a7ebac85666e3201fd6b79e8d815
2017-09-13 15:05:37 +08:00
Alastor Wu
95cde08ed5 Bug 1397141 - part1 : update error description for getting more details r=jya
We should report the more detailed error when creating the decoder failed,
instead of just reporting "can not create decoder".

MozReview-Commit-ID: 8vunP5c3zzI

--HG--
extra : rebase_source : 327a988463bf61ad17d1f93bf0a2640d9c9735c7
2017-09-13 15:05:25 +08:00
Sylvestre Ledru
227c2090a1 Bug 1399359 - Enable clang-format option SplitEmptyFunction to have empty constructor correctly placed r=andi,jya
MozReview-Commit-ID: 9tRSMN89iuM

--HG--
extra : rebase_source : 888feddcd4705ee6fa779294f3982cd02b15be74
2017-09-13 08:39:43 +02:00
Sebastian Hengst
4ecac16e72 Backed out changeset 0aff84a0a8af (bug 1388396) for failing linter android-test's TestResizingProcessor. testBitmapIsNotScaledMoreThanTwoTimesTheSize. r=backout 2017-09-13 09:51:46 +02:00
Sebastian Hengst
ee8b8f5536 Backed out changeset 8756322ebb4a (bug 1388396) 2017-09-13 09:50:35 +02:00
Sebastian Hengst
d27d1219be Backed out changeset 77f982a2f17b (bug 1388396) 2017-09-13 09:50:29 +02:00
Sebastian Hengst
30e285a9cb Backed out changeset 44fa7b379742 (bug 1388396) 2017-09-13 09:50:24 +02:00
Sebastian Hengst
d0007e88ac Backed out changeset 3300c15011d3 (bug 1388396) 2017-09-13 09:50:18 +02:00
Emilio Cobos Álvarez
c04f22ad37 Bug 1368852: Avoid flushing frames from nsHideViewer if we know we're not going to get a frame. r=tnikkel
MozReview-Commit-ID: ATVMfQ8myC1

--HG--
extra : rebase_source : fb82003b9ce61644f0cdf4eac5245ef321dec8d5
2017-09-13 00:08:46 +02:00
Mantaroh Yoshinaga
355019fdec Bug 1399336 - Memory leak of char16_t internal variables of widget/nsPrintOptionsImpl.cpp r=m_kato
A nsPrintOptionsImpl has char16_t internal variables, and gecko will not release
these allocated variable. So we should use nsString instead of char16_t.

MozReview-Commit-ID: 4ZMtUKoVCcR

--HG--
extra : rebase_source : 1720483301b900f8135c3d5f8f32d7051191aa8f
2017-09-13 14:23:59 +09:00
Sebastian Hengst
f992c70670 Backed out changeset 6f22cc93383c (bug 1397141) for bustage at dom/media/ipc/VideoDecoderParent.cpp:87 (undeclared variable). r=backout on a CLOSED TREE 2017-09-13 09:26:39 +02:00
Sebastian Hengst
483665f6a4 Backed out changeset 81a987374ac7 (bug 1397141) 2017-09-13 09:25:55 +02:00
Sebastian Hengst
4492018f6a Backed out changeset 57ab4c51c72b (bug 1397141) 2017-09-13 09:25:50 +02:00
Sebastian Hengst
f550df3a8e Backed out changeset 9140f22570ea (bug 1397141) 2017-09-13 09:25:44 +02:00
Sebastian Hengst
7d84900829 Backed out changeset 6dade48b3326 (bug 1397141) 2017-09-13 09:25:39 +02:00
Sebastian Hengst
2e68cb77ba Backed out changeset c78c096d0be9 (bug 1397141) 2017-09-13 09:25:33 +02:00
Sebastian Hengst
6f1ea8f932 Backed out changeset eab2e401c60f (bug 1397141) 2017-09-13 09:25:28 +02:00
Sebastian Hengst
d7f084f99d Backed out changeset f6f5863e50a8 (bug 1397141) 2017-09-13 09:25:22 +02:00
Alastor Wu
d3b21ca470 Bug 1397141 - part8 : update test for video under 48x48. r=jya
In patch3, we remove the minimum resolution check, now the video under 48x48 can
be playback successfully. Therefore, removing them from error test and we should
ensure they can be playback.

MozReview-Commit-ID: BvLtr4DN1hU

--HG--
extra : rebase_source : 36cdd1e18cd41516319989b56e4e83888b0ecf50
2017-09-13 15:06:22 +08:00
Alastor Wu
0fc4a508a5 Bug 1397141 - part7 : update error description in MFR. r=jya
MozReview-Commit-ID: 5QPdFCMesi5

--HG--
extra : rebase_source : e62040cbeccd55a30ffe3b7b2d16010f7c86ee6f
2017-09-13 15:06:14 +08:00
Alastor Wu
3da04770d6 Bug 1397141 - part6 : use MediaResult to replace nsresult r=jya
Return MediaResult instead of using nsresult, because it can contain more detailed
error information. We could also return this error with our rejected decode promise.

MozReview-Commit-ID: HrI3QKlSJC

--HG--
extra : rebase_source : 6aba73c887e3068bf2a3f031a9a3b0698decc2e3
2017-09-13 15:06:07 +08:00
Alastor Wu
45f6a63ccf Bug 1397141 - part5 : update error description from GPU process. r=jya,mattwoodrow
MozReview-Commit-ID: CuBZOtjh4g2

--HG--
extra : rebase_source : 82c68ea3fe54b148b0cf98fe37d954efd4acbcbe
2017-09-13 15:05:59 +08:00
Alastor Wu
6db87eb5d6 Bug 1397141 - part4 : change mLastError type to MediaResult r=jya
Change mLastError type to MediaResult and send it as parameter to PDM::CreateVideoDecoder
in order to get detailed error description.

MozReview-Commit-ID: 4sIRXTHsrzr

--HG--
extra : rebase_source : 23d72cc72f5683305745024de913f44298d717d5
2017-09-13 15:05:52 +08:00
Alastor Wu
8b50e7758a Bug 1397141 - part3 : remove the minimum resolution check. r=jya
After bug 1392143, we won't enable HW decoding for the resolution < 132 pixels.
In addition, software decoder doesn't have the minimum resolution limit, so
we can remove the minimum resolution check.

MozReview-Commit-ID: 7MiLpwjiq3s

--HG--
extra : rebase_source : 742556f6f2fb40b3e5e69212707a606d3b22ed36
2017-09-13 15:05:45 +08:00
Alastor Wu
8c01968e21 Bug 1397141 - part2 : move resolution constraints to WMFVideoMFTManager r=jya
WMFDecoderModule should only focus on whether the mime type is supported or not.
Let WMFVideoMFTManager do the checking.

MozReview-Commit-ID: K6jPfrntu7s

--HG--
extra : rebase_source : f6ba055824c3a7ebac85666e3201fd6b79e8d815
2017-09-13 15:05:37 +08:00
Alastor Wu
34ef9f5aa2 Bug 1397141 - part1 : update error description for getting more details r=jya
We should report the more detailed error when creating the decoder failed,
instead of just reporting "can not create decoder".

MozReview-Commit-ID: 8vunP5c3zzI

--HG--
extra : rebase_source : 327a988463bf61ad17d1f93bf0a2640d9c9735c7
2017-09-13 15:05:25 +08:00
JW Wang
d53c2e2ba6 Bug 1398659. P9 - remove unused member. r=gerald
MozReview-Commit-ID: 5SSnbYQXxKD

--HG--
extra : rebase_source : 7470f0ee0a507a549be630c3f5471f576dfe098a
extra : intermediate-source : c173519b75dce7818b75fc901a3a9a1b844e4439
extra : source : c10cd05c569b09e209dc4ec6cc1df7564ab05309
2017-09-07 16:08:10 +08:00
JW Wang
f6430f39ef Bug 1398659. P8 - remove the call to mCacheStream.NotifyDataLength() from OpenChannel(). r=gerald
MediaCacheStream::mStreamLength has been set either in Init() or InitAsClone().

MozReview-Commit-ID: L259ecDgjN7

--HG--
extra : rebase_source : 7df74d388808492faac73c3e41a972cb22cdb187
extra : intermediate-source : d834e02c15ed9361a02977349459fad079910642
extra : source : 45df347e1fd6b67d60212f2d87312d597656a7d6
2017-09-07 15:23:57 +08:00
JW Wang
fff2af86d2 Bug 1398659. P7 - tighten up the assertions in OpenChannel(). r=gerald
MozReview-Commit-ID: IPCLOJKx3f3

--HG--
extra : rebase_source : 22e5114ebb2e37c1bcc39f87ea634a54745a52e7
extra : intermediate-source : a2fda2578d6e1264d7035196b8de5c1b92fc1427
extra : source : 4094121a462346abeaf3d5423cba28dd28ce080c
2017-09-07 15:15:18 +08:00
JW Wang
47cd403db0 Bug 1398659. P6 - remove the nsIStreamListener** parameter from OpenChannel(). r=gerald
The only caller is CacheClientSeek() which always passes nullptr to it.

MozReview-Commit-ID: 3CTkbF6ktp2

--HG--
extra : rebase_source : f53fe82ca0fc5e2926c4d2cf1346630098a9614f
extra : intermediate-source : a4823926a983af9293c9fe9857e39527735ea226
extra : source : 88a08faec452614217bebe80fc2b00a2b08f7f38
2017-09-07 15:12:15 +08:00
Nicholas Nethercote
50c7852f4d Bug 1397628 - Don't auto-atomize strings passed from script. r=kmag.
If you pass a string from script to an IDL method that takes an nsIAtom,
XPConnect will automagically atomize the string for you.

But nsIAtom is no longer scriptable (see the blockers for bug 1392883,
especially bug 1396694). So the code to convert can be removed.

--HG--
extra : rebase_source : af85fa48c1988348d3a9a81b05ed43403d3b730a
2017-09-07 14:37:56 +10:00
Mats Palmgren
f03f683f75 Bug 1374112 part 3 - Use AllocateFCItem/FreeFCItem exclusively for allocating FrameConstructionItems. r=dholbert
MozReview-Commit-ID: 7TqWZeTV91J
2017-09-11 00:27:12 +02:00
Mats Palmgren
062e1c6efa Bug 1374112 part 2 - Introduce nsCSSFrameConstructor::AllocateFCItem/FreeFCItem for allocating FrameConstructionItems from an arena/free list. r=dholbert
MozReview-Commit-ID: 5VVhEQOZMlU
2017-09-11 00:27:12 +02:00
Mats Palmgren
9eadef1363 Bug 1374112 part 1 - Move the mUndisplayedItems field to the start to avoid alignment spill after a bool. r=dholbert
MozReview-Commit-ID: 297LgoUFwJL
2017-09-11 00:27:11 +02:00
Sebastian Hengst
f44f924e55 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-10 23:18:39 +02:00