Commit Graph

53515 Commits

Author SHA1 Message Date
ctai
57f4a5fc0f Bug 608634 - Enable test_error_in_video_document.html in all platform. r=jwwang.
Bug 1154802 provided a workaround for this race condition. So enable it in all platform.

MozReview-Commit-ID: BS1iW4O7TsZ

--HG--
extra : rebase_source : ac825a25b195b22106ae70cb412a0b61bd846bfb
2016-08-17 17:34:07 +08:00
ctai
070831d08f Bug 608634 - Fix redundant comments. r=jwwang.
MozReview-Commit-ID: EYW8O9vZipH

--HG--
extra : rebase_source : 301427f859ff50c32bc28e243f1a606e2ad9ef7a
2016-08-17 16:17:14 +08:00
Munro Mengjue Chiang
a365444cc2 Bug 1286429 - MediaDevices ondevicechange mochitest; r=jib
MozReview-Commit-ID: 9Mk1jDzRAEQ

--HG--
extra : rebase_source : 657e31211372be12b92369e56ece1c424a63ad50
2016-08-12 10:40:52 +08:00
Munro Mengjue Chiang
730a993044 Bug 1286429 - Fire fake devicechange event in Camera IPC thread for mochitest; r=jib
MozReview-Commit-ID: 9sDLnMGh3xL

--HG--
extra : rebase_source : 026891d00450b9bfd792708ab3d5d2e730f431f9
2016-08-09 16:37:04 +08:00
Munro Mengjue Chiang
4eb2d3e90d Bug 1286429 - implement mediaDevices.ondevicechange for Mac OSX; r=jib,smaug
MozReview-Commit-ID: D1Jr6I4qPyr

--HG--
extra : rebase_source : 0f4a97da80d25923c9b6f6550b94039aefa88de5
2016-08-12 01:04:49 +08:00
ctai
3fa6c14f4c Bug 1295478 - Enable test_empty_resource.html on Windows debug build. r=jwwang.
MozReview-Commit-ID: KUBRpLqKU5m

--HG--
extra : rebase_source : 7ba580904ca23e8fb1a0f08cab37233e7141e831
2016-08-15 17:22:20 +08:00
Kilik Kuo
4a988fcb4c Bug 1293861 - Intermittent dom/media/test/test_playback.html | bug506094.ogv, seek.yuv, bug498380.ogv, bug504613.ogv, bug523816.ogv checking networkState - got 2, expected 1. r=jwwang
MozReview-Commit-ID: 50BZ5ctp3wl

--HG--
extra : rebase_source : 9814bcd0098b20da0071ce6bb5ae9f056d09356f
2016-08-17 16:43:11 +08:00
Jimmy Wang
f1deff206d Bug 1261299 - Add testing method GetSelectionAsPlaintext to DomWindowUtils which returns the text selection that was sent to the osx service menu nsChildView.mm. r=masayuki
MozReview-Commit-ID: JFzgyTmFDp2

--HG--
extra : rebase_source : 4bc04539a88d123e3ff70d07303adc759bace5b8
2016-07-08 11:35:39 -04:00
Jimmy Wang
a7ba1f9d54 Bug 1261299 - Add EnsureDocument(mPresContext) to EventStateManager::GetFocusedContent() because mDocument is lazily loaded. r=smaug
MozReview-Commit-ID: FGfb709o32f

--HG--
extra : rebase_source : f29037efd2666ba7bfce71d030bccad7188eadc9
2016-07-13 15:11:45 -04:00
Jimmy Wang
271a7cfaa2 Bug 1261299 - Add method nsCopySupport::ClearSelectionTransferable() to clear the nsClipboard::sSelectionTransferable when you have no content selection. r=mstange
MozReview-Commit-ID: AjUe94N0Iiw

--HG--
extra : rebase_source : bf1bf642212add9227c185a6cfa3f8f94a7f0248
2016-06-08 14:11:39 -04:00
Kaku Kuo
5ab464fd77 Bug 1295440 - Make HTMLMediaElement::SeekToNextFrame() reject promise with meaningful information; r=jwwang
MozReview-Commit-ID: Dgi3Ek8K3bR

--HG--
extra : rebase_source : 58d63933906f676a7e7a5ed85cf7e25e3e87dd16
2016-08-17 10:02:10 +08:00
Wes Kocher
37a02d441d Backed out 6 changesets (bug 1264642) for marionette failures a=backout CLOSED TREE
Backed out changeset f0067001c059 (bug 1264642)
Backed out changeset 078e5c447f21 (bug 1264642)
Backed out changeset 7c60fc4144fb (bug 1264642)
Backed out changeset 9f434697ef2e (bug 1264642)
Backed out changeset 06fc278fcedf (bug 1264642)
Backed out changeset 162098402acc (bug 1264642)
2016-08-17 10:49:25 -07:00
Wes Kocher
6b3d348f17 Backed out 2 changesets (bug 1294358) for xp mda failures a=backout CLOSED TREE
Backed out changeset 886441076b5f (bug 1294358)
Backed out changeset 848141457f25 (bug 1294358)

--HG--
extra : amend_source : 393a51d18d37246cec3617fb3162478cd98b3bb2
2016-08-17 10:06:40 -07:00
Wes Kocher
6f430a404b Backed out changeset 942b01866756 (bug 1295844) for xp mda failures a=backout 2016-08-17 10:06:27 -07:00
JW Wang
ecaa7b7a0d Bug 1295901 - Change the semantics/naming of MediaDecoderReader::ReleaseMediaResources(). r=jya
MozReview-Commit-ID: DyOwNcC2JK5

--HG--
extra : rebase_source : 5b14dfe1df7ed9eab1783fba64ff4a481e520339
2016-08-17 15:03:30 +08:00
John Lin
d7cf8502c8 Bug 1257777 - Part 6: Implement remote data decoders and enable/disable them with pref. r=snorp
MozReview-Commit-ID: 54ZEckQHsBI

--HG--
extra : rebase_source : e655067a487aafeccb866877157616036044ba4b
2016-08-05 15:24:46 +08:00
John Lin
d8af0bb89e Bug 1257777 - Part 5: Seperate PDM and data decoders into different files. r=snorp
MozReview-Commit-ID: KP4hAZXLPAU

--HG--
extra : rebase_source : 64f4c8c086d10ce1268945c74c813177b2401d58
2016-08-05 15:24:06 +08:00
Manish Goregaokar
0b438b8b77 Bug 1295895 - Correctly capitalize StyleFillRule; r=heycam
MozReview-Commit-ID: ZfHrllA9QV

--HG--
extra : rebase_source : d9b9303d21b3fb5977247ae403caabfd54d666f8
2016-08-17 12:13:26 +05:30
Masayuki Nakano
7bacea600f Bug 1295354 part.2 ContentEventHandler::GetLastFrameInRangeForTextRect() shouldn't use empty text node as far as possible r=smaug
JS can create empty text nodes. Therefore, ContentEventHandler::GetLastFrameInRangeForTextRect() shouldn't use it for computing retrieving a text frame (Although, such text nodes shouldn't have primary frames).

MozReview-Commit-ID: EJAthEpNZNU

--HG--
extra : rebase_source : ccd05b46911077daa855a5c085839fd14aadc2ee
2016-08-17 14:50:19 +09:00
Masayuki Nakano
0283c8daef Bug 1295354 part.1 ContentEventHandler::GetLastFrameInRangeForTextRect() shouldn't set nextNodeOfRangeEnd to the start node of aRange because the start node should always be in the range r=smaug
nextNodeOfRangeEnd is used for excluding unnecessary node for computing text rect.  When aRange ends at start of a text node, the frames which are created for the text node shouldn't be used.  However, if the end node of aRange is same as the start node of aRange, the node is not outside of aRange.

This could occur when it's called with empty range or there are some empty text nodes.

MozReview-Commit-ID: C1yCN5WrULe

--HG--
extra : rebase_source : 35d5b8feecd351bef29fe4af79a0f6f5bdad8bec
2016-08-16 14:37:40 +09:00
Dan Glastonbury
0c1756a66f Bug 1295844 - Add webm testing files to video decode suspend tests. r=gerald
Test files transcoded from gizmo.mp4 using:
ffmpeg -i gizmo.mp4 -vcodec vp9 -acodec opus gizmo.webm
ffmpeg -i gizmo.webm -vcodec copy -an gizmo-noaudio.webm

MozReview-Commit-ID: 4OB8G9NtS7A

--HG--
extra : rebase_source : e43b586371fae927d0e997064169e2e56de6b476
2016-08-17 13:04:35 +10:00
Wes Kocher
45575a7f86 Merge m-c to autoland, a=merge
a=release for the webidl hook for a comment-only change

--HG--
extra : amend_source : e590e515ab273d097f88b35be0e5c999502ebdf4
2016-08-16 22:07:30 -07:00
Phil Ringnalda
74f4a938ed Backed out 2 changesets (bug 1287643) for xpcshell failures in test_notification_ack.js and friends
Backed out changeset 816516be0183 (bug 1287643)
Backed out changeset e72a4a5ae5ff (bug 1287643)
2016-08-16 21:28:51 -07:00
Jonathan Chan
b35975ec17 Bug 1293739 - Part 2: Rename nsCSSPropertySet to nsCSSPropertyIDSet. r=dholbert
The previous patch in this series renamed nsCSSProperty to nsCSSPropertyID.
This patch renames nsCSSPropertySet to nsCSSPropertyIDSet accordingly.

This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSPropertySet\b/nsCSSPropertyIDSet/g' -i''

Then:

  hg mv layout/style/nsCSSPropertySet.h layout/style/nsCSSPropertyIDSet.h

... and finally, manually renaming nsCSSPropertySet in the include guard in
nsCSSPropertyIDSet.h.

(NOTE: Re-landing this patch on a CLOSED TREE to correctly-address the merge bustage that closed the tree.)

MozReview-Commit-ID: ASUNs7FWbKP

--HG--
rename : layout/style/nsCSSPropertySet.h => layout/style/nsCSSPropertyIDSet.h
2016-08-16 18:46:58 -07:00
Jonathan Chan
4b87f11bd9 Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-16 18:37:48 -07:00
Gregory Szorc
1794619188 Backed out changesets dcdb85fc5517, 702bca0deee2, 9cKX8gC1ATA (bug 1293739) for build bustage; a=bustage
The merge from inbound to central conflicted with the merge from
autoland to central, it appears. Per tree rules, the commit from the
autoland repo wins and the inbound commit gets backed out.

CLOSED TREE

--HG--
extra : amend_source : 927e1cdfa8e55ccbd873d404d905caf6871c8c4f
extra : histedit_source : 07095868c3f767258e1d7d2645193bf4811b13bb%2Ca49ae5a28bf6e67298b6208ee9254c25a2539712
2016-08-16 17:50:40 -07:00
Wes Kocher
48b8d407c8 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change

--HG--
extra : amend_source : f7e57101e1a25d3cf3536a256898ec2a21c54b38
2016-08-16 17:05:30 -07:00
Wes Kocher
29f8ebb92a Backed out changeset 9e24eb751c21 (bug 1291946) for android debug mda1 failures CLOSED TREE 2016-08-16 12:22:20 -07:00
Jeff Walden
c07ca36127 Bug 1174386 - Fix a rebase-induced pointer-to-bool conversion error. r=bustage in a CLOSED TREE 2016-08-16 09:08:00 -07:00
Andrea Marchesini
01bf6ba4a1 Bug 1288770 - Switch worker timeouts to using nsJSTimeoutHandler, r=smaug 2016-08-16 08:10:30 +02:00
ctai
6127c90007 Bug 1140675 - Enable test_bug879717.html on windows. r=jwwang.
MozReview-Commit-ID: Enl9fCqHhYN

--HG--
extra : rebase_source : 2b0345d1e2b2d8cfc31a10057daeef0708492621
2016-08-15 16:07:04 +08:00
Daisuke Akatsuka
b179aa1d62 Bug 1277433 - Part 4: Add CSS Animation tests. r=birtles
MozReview-Commit-ID: 12CdohazBTS

--HG--
extra : rebase_source : 87a6e17b33241d3db230137f4478357df5a8d4f0
2016-08-16 14:30:15 +09:00
Daisuke Akatsuka
095d7039ae Bug 1277433 - Part 1: Use discrete animation for appropriate CSS Alignment properties. r=dholbert,heycam
MozReview-Commit-ID: BHtzuwJOuB5

--HG--
extra : rebase_source : 975720e6ce68743ab8915a62f8f8cda48ee69340
2016-08-16 14:29:21 +09:00
bechen
931402dd2f Bug 1291629 - Remove RTSP code. r=jwwang
MozReview-Commit-ID: AxaLwO4rTuY

--HG--
extra : rebase_source : f8a5de1be1471238d62b6bbc419b3a45f2590da6
2016-08-10 10:32:25 +08:00
Boris Chiou
2721920a34 Bug 1293106 - Ignore 'spacing' if dom.animations-api.core.enabled is false. r=birtles
MozReview-Commit-ID: K7hbCjLP6vB

--HG--
extra : rebase_source : 0e774faec05527c2267ae1df48db55856b6b6c75
2016-08-10 17:58:49 +08:00
Manish Goregaokar
6519960758 Bug 1295177 - Convert STYLE_FILL_RULE_* to an enum class; r=xidorn
MozReview-Commit-ID: HnNFNyD4oVJ

--HG--
extra : rebase_source : 12dcee0023ec66a49ea2db673bb5ac85cd006c1e
2016-08-15 21:47:04 +05:30
Chris Pearce
3940f4a605 Bug 1258870 - Don't push late video frames to the compositor, drop them. r=jwwang
We can get out of A/V sync if the decode is struggling to keep up. This is
because of the loop in VideoSink::UpdateRenderedVideoFrames(). If this function
runs while there's only one frame in the video queue, we won't drop that one
frame if it's late. If we're struggling to keep up, it's increasingly likely
that we'll end up running this function with only one frame in the video queue.
That results in us entering VideoSink::RenderVideoFrames() with only 1 late
frame, which the compositor dutifully draws. Resulting in a late frame being
drawn, and thus broken A/V sync.

This change makes VideoSink::UpdateRenderedVideoFrames() drop all late
frames, even the last one in the video queue. We now keep A/V sync when the
decode is struggling to keep up. However, if I do this, we end up dropping
(and reporting that we drop) a lot more frames, and thus rendering a lot fewer.
But since we when we drop the frames we report them as dropped, a well written
MSE player can detect that we've failing miserably to keep up, and and lower
their bitrate.




MozReview-Commit-ID: ybkq48mKk2

--HG--
extra : rebase_source : f03c186059a365a45de698b2a30e632daae47fb8
2016-08-15 13:35:52 +12:00
JW Wang
f59d74c259 Bug 1295146 - add assertions to debug null-deref. r=jya
MozReview-Commit-ID: 966DpcaT1p8

--HG--
extra : rebase_source : 79a1079161880771bb17bcfbb5786a53b298d060
2016-08-16 09:38:29 +08:00
JW Wang
1558178790 Bug 1294636 - Use macro to simplify the member initialization list of MediaDecoder. r=gerald
MozReview-Commit-ID: LdIXPTKuecf

--HG--
extra : rebase_source : 938b8e4efc8d8f89dc75acf17317888a304d5c27
2016-08-12 15:04:49 +08:00
JW Wang
454fa83d3d Bug 1294615. Part 2 - Refactor MDSM::SetDormant() to remove unnecessary checks for mQueuedSeek.Exists() and mCurrentSeek.Exists(). r=kaku
We've proven that when seek is in action, mQueuedSeek.Exists() is always false and mCurrentSeek.Exists() is always true.

MozReview-Commit-ID: CxNU45NXG88

--HG--
extra : rebase_source : 893dbe33cb2f66b9a0bc7ddb03afb40f06d574d0
2016-08-11 17:33:07 +08:00
JW Wang
7e467b7cda Bug 1294615. Part 1 - Assert mQueuedSeek.Exists() is false in InitiateSeek(). r=kaku
InitiateSeek() is called from several places where we can prove mQueuedSeek.Exists() is false:
1. MaybeFinishDecodeFirstFrame(): mQueuedSeek is moved when calling InitiateSeek().
2. Seek() rejects mQueuedSeek before calling InitiateSeek().
3. StartDecoding(): mQueuedSeek is moved when calling InitiateSeek().
4. VisibilityChanged(): it doesn't call InitiateSeek() when mQueuedSeek.Exists() is true.

MozReview-Commit-ID: BriPw0VID5O

--HG--
extra : rebase_source : 1417b108eab1cf9cf332e55e77077d7947505d27
2016-08-11 16:07:45 +08:00
Arthur Edelstein
215601494b Bug 1174386 - Make workers inherit the default Intl locale from the main thread, rather than using a bogus fallback value. r=jwalden, r=baku
--HG--
extra : rebase_source : 09f66db9914cdf865388669082f3efaca37ce558
2016-08-08 13:33:39 -07:00
Sebastian Hengst
167156e726 Backed out changeset 2d5975fd02bd (bug 1288770) for asserting in ErrorResult.h when test test_errorPropagation.html runs. r=backout 2016-08-16 17:11:22 +02:00
Jessica Jong
5a9b39d967 Bug 1278738 - Add 'week' to the list of valid types attributes for <input>. r=smaug 2016-08-15 23:15:00 -04:00
Ethan Lin
18475abfbc Bug 1294607 - Remove unnecessary EnsureTarget in CanvasRenderingContext2D. r=nical 2016-08-15 23:54:00 -04:00
Marcos Caceres
7be5df61f7 Bug 1295434 - Typo in test in file test_picture_apng.html. r=heycam 2016-08-15 23:53:00 -04:00
Bevis Tseng
b17713a4cb Bug 1271500 - Binary Key Support. r=janv
--HG--
extra : rebase_source : 3762fa91b4c068d7d0158a55911bc3f13b47a93f
2016-08-12 15:03:59 +08:00
ctai
d8858a2e5e Bug 1291946 - Call mozCapturedStreamXXX in onloadedmetadata callback. r=pehrsons
MozReview-Commit-ID: 6gLa4OYT9v2

--HG--
extra : rebase_source : 11d367a49f7e2151253000f2f7519a7e2dd9a11e
2016-08-15 14:46:30 +08:00
ctai
32a45cd487 Bug 1291946 - Append the latest video frames from updateTracks. r=jesup, r=pehrsons
In some cases, we need to resend missed VideoSegment to new added MediaStreamVideoSink. Append the latest video frames from updateTracks.

MozReview-Commit-ID: 76RFs5fgKpY

--HG--
extra : rebase_source : 1b1e4e60e0653cbf4ef21abf364239514cf171c5
2016-08-10 10:31:14 +08:00
Aryeh Gregor
0ba196de55 Bug 1211894 - Throw on range.insertNode(range.startContainer); r=smaug 2016-08-16 15:52:06 +03:00