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

53551 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book c5f40500b4 Backed out changeset 222b4883bf79 (bug 1274626) 2016-08-02 17:47:27 +02:00
Carsten "Tomcat" Book d647d056e2 Backed out changeset c5b79d4a6913 (bug 1274626) 2016-08-02 17:47:26 +02:00
Carsten "Tomcat" Book 5a3c68ee72 Backed out changeset 221e8d2b180e (bug 1274626) 2016-08-02 17:47:24 +02:00
Carsten "Tomcat" Book cc6b6404c0 Merge mozilla-central to fx-team 2016-08-02 17:13:42 +02:00
Carsten "Tomcat" Book bd81ddd0b0 merge mozilla-inbound to mozilla-central a=merge 2016-08-02 17:09:31 +02:00
Carsten "Tomcat" Book 02adb43791 Backed out changeset 726ee2bcfdef (bug 1201363) for static build bustage 2016-08-02 12:54:13 +02:00
Carsten "Tomcat" Book 7e324b6cdb Backed out changeset b018ce9d1484 (bug 1201363) 2016-08-02 12:53:59 +02:00
Carsten "Tomcat" Book 72c34b88b3 Backed out changeset 488e4a5e859b (bug 1201363) 2016-08-02 12:53:57 +02:00
Carsten "Tomcat" Book 44057dc31a Backed out changeset cc59ebb35b26 (bug 1201363) 2016-08-02 12:53:56 +02:00
Carsten "Tomcat" Book f4f5b9bafc Backed out changeset a6bafaf6bbe6 (bug 1201363) 2016-08-02 12:53:54 +02:00
Carsten "Tomcat" Book 27cb7f4d79 Backed out changeset 06c0a7eb7bc6 (bug 1201363) 2016-08-02 12:53:53 +02:00
Carsten "Tomcat" Book 2854eb5e13 Backed out changeset 1c8af95cd440 (bug 1201363) 2016-08-02 12:53:51 +02:00
Carsten "Tomcat" Book 1d6d29d0c6 Backed out changeset 5b926a6a6e4e (bug 1201363) 2016-08-02 12:53:49 +02:00
Carsten "Tomcat" Book 1cddcd1b7d Backed out changeset e350d8c25d2e (bug 1201363) 2016-08-02 12:53:46 +02:00
Masayuki Nakano 78b4a701e3 Bug 1259665 part.3 Rename WidgetPointerEvent::isPrimary to mIsPrimary r=smaug
MozReview-Commit-ID: LfKzpwCjMcz

--HG--
extra : rebase_source : d4fd41db8ff4dc39a7156f2f509aae89d1c126a1
2016-08-03 17:34:53 +09:00
Masayuki Nakano b38025c056 Bug 1259665 part.2 Rename WidgetPointerEvent::height to mHeight r=smaug
MozReview-Commit-ID: Ji4X53dByiH

--HG--
extra : rebase_source : 0e79a45d34142453e79f2412eddb7abc132e11d7
2016-08-03 17:23:56 +09:00
Masayuki Nakano 924e7f39e5 Bug 1259665 part.1 Rename WidgetPointerEvent::width to mWidth r=smaug
MozReview-Commit-ID: 3V5gyOvPuQi

--HG--
extra : rebase_source : 6adf7908e8a84bc2cfb86d8f7823662f1b72170f
2016-08-03 17:18:04 +09:00
Masayuki Nakano 91380f92d1 Bug 1259672 Rename InternalFormEvent::originator to mOriginator r=smaug
MozReview-Commit-ID: 1RoHVeziNr3

--HG--
extra : rebase_source : 85c63944e477603cee3a36e435c83890ea037715
2016-08-03 17:06:10 +09:00
JW Wang 32c54a1d7b Bug 1290028 - Remove the check for IsShutdown() from MediaDecoder::OwnerHasError(). r=gerald
MozReview-Commit-ID: Cg5UoFngxFr

--HG--
extra : rebase_source : afece4f66454cf7b2c68ede4b5802fc445be96fa
2016-07-28 17:21:09 +08:00
JW Wang 64c1909e96 Bug 1290780. Part 9 - Assert IsShutdown() is false in DurationChanged(). r=kaku
1. The watch manager disconnect callbacks in Shutdown().
2. SetExplicitDuration() asserts !IsShutdown().
3. SetInfinite() asserts !IsShutdown().

MozReview-Commit-ID: FwWf4m5OAOP

--HG--
extra : rebase_source : 374e9c4ef31abf56f0be76826c98cd852bef1e7a
2016-07-28 16:57:09 +08:00
JW Wang 453c175228 Bug 1290780. Part 8 - Assert IsShutdown() is false in SetExplicitDuration(). r=kaku
It is called from MediaSourceDecoder::SetMediaSourceDuration() which asserts !IsShutdown().

MozReview-Commit-ID: LF8rRPZhkA2

--HG--
extra : rebase_source : 886778f70d00e8670a203e9d322e442c9d117a72
2016-07-28 16:54:53 +08:00
JW Wang 95cf484548 Bug 1290780. Part 7 - We don't want to trigger DurationChanged(). So just set mExplicitDuration without calling SetExplicitDuration(). r=jya
MozReview-Commit-ID: 5yWLhteUgQt

--HG--
extra : rebase_source : 9a17eccfc572d92317f7859d84e15e7b973e8fcd
2016-07-28 16:50:10 +08:00
JW Wang 887d693c49 Bug 1290780. Part 6 - Assert IsShutdown() is false in SetMediaSourceDuration(). r=jya
1. It is called from SetInitialDuration() when mMediaSource is non-null which happens before Shutdown() which clears |mMediaSource|.
2. It is called from MediaSource::SetDuration() which happens before MediaSourceDecoder::Shutdown() for |mDecoder| is non-null.
3. It is called from MediaSource::DurationChange() where |mDecoder| is non-null.

MozReview-Commit-ID: 56AmWRLkkiv

--HG--
extra : rebase_source : 1f9443ac3670b12401ffa5ad397638c095e72566
2016-07-28 15:52:30 +08:00
JW Wang e7c35e7871 Bug 1290780. Part 5 - Assert IsShutdown() is false in PlaybackEnded() since the callback is disconnect in Shutdown(). r=kaku
MozReview-Commit-ID: hYJjKZFhA6

--HG--
extra : rebase_source : 706b770c7f11fa53cdb2bb9f9eeae89a146601a6
2016-07-28 15:16:32 +08:00
JW Wang e073bd7c27 Bug 1290780. Part 4 - Assert IsShutdown() is false in SeekingStarted() since the callback is disconnected in Shutdown(). r=kaku
MozReview-Commit-ID: 7Q9EAhy3O7w

--HG--
extra : rebase_source : a68a9d50d0c2c669dd4c5ae0897e06c1538811d1
2016-07-28 15:13:31 +08:00
JW Wang 3d1ea356e3 Bug 1290780. Part 3 - Assert IsShutdown() is false in UpdateLogicalPositionInternal(). r=kaku
1. It is called from OnSeekResolved() which asserts !IsShutdown().
2. It is called from UpdateLogicalPosition which asserts !IsShutdown().

MozReview-Commit-ID: J8iuHdUamLS

--HG--
extra : rebase_source : 97215383aa7c409f8b63f5a6726b81df53252227
2016-07-28 15:09:03 +08:00
JW Wang b6a261b9f3 Bug 1290780. Part 2 - Assert IsShutdown() is false in MediaDecoder::OnSeekResolved() since the seek request is disconected in Shutdown(). r=kaku
MozReview-Commit-ID: Cc0iF3Lc7d2

--HG--
extra : rebase_source : 107592fc8f3a5a301599f43ebbc1c7c7c708f017
2016-07-28 15:04:36 +08:00
JW Wang cb02478192 Bug 1290780. Part 1 - Assert IsShutdown() is false in MediaDecoder::UpdateLogicalPosition(). r=kaku
1. Callbacks from the watch manager are disconnected in Shutdown().
2. It is called from MediaOmxCommonDecoder::NotifyOffloadPlayerPositionChanged() which will not happen after Shutdown().
3. It is called from MediaOmxCommonDecoder::ResumeStateMachine() which returns early when IsShutdown() is true.

MozReview-Commit-ID: COmPFaQzNTq

--HG--
extra : rebase_source : ac88698c66f4586b00fe62ad4dcdbb1cb4ce8542
2016-07-28 14:43:50 +08:00
Andrew Comminos 395c323784 Bug 1284742 - Replace profile directory traversal with a generated directory tree in dom/filesystem/test/test_basic.html. r=mystor
MozReview-Commit-ID: HSX9i5KDDEj

--HG--
extra : rebase_source : 7f95f6e9ca59f839c01be1cd75847aaa60cdf81c
2016-08-02 15:48:13 -04:00
Jan-Ivar Bruaroey a512138827 Bug 1290629 - Make default cam, which is supposed to model a real cam, nonetheless independent of webrtc includes. r=jesup
MozReview-Commit-ID: 2RiRxXCNHv6

--HG--
extra : rebase_source : 9f80a1a2170f54495d6fea3ebbb593e9b360cf6a
2016-08-01 15:36:34 -04:00
Jan-Ivar Bruaroey d3b37a02ba Bug 1213441 - Remove pc.removeStream properly. r=jesup,smaug
MozReview-Commit-ID: CvmDVGUVMN2

--HG--
extra : rebase_source : 5bd3a0f17af4160d714cf090bbc4131c22e2d4f5
2016-08-01 16:18:38 -04:00
Chris Pearce 7261eef5aa Bug 1289942 - Make MediaKeyStatusMap.get() return undefined for unknown keys. r=bz
The spec requires the MediaKeyStatusMap.get(keyId) function to return an 'any'
type, which is undefined for known keys, or a MediaKeyStatus enum value for
known keys.

https://w3c.github.io/encrypted-media/#idl-def-mediakeystatusmap


MozReview-Commit-ID: 3TOFYLacZSc

--HG--
extra : rebase_source : cd067f545cdbd9352ba64fea914128201b458d9c
2016-07-28 14:03:01 +12:00
JW Wang 6c38af47f2 Bug 1289976. Part 10 - Remove the IsShutdown() check from MediaDecoder::UpdateDormantState(). r=kaku
1. It is called from DormantTimerExpired(). The timer is canceled in Shutdown().
2. It is called from NotifyOwnerActivityChanged() which happens before Shutdown().
3. It is called from Play() which happens before Shutdown().
4. It is called from Seek() which happens before Shutdown().

MozReview-Commit-ID: EnKHF61FBXf

--HG--
extra : rebase_source : 04df59b6722c8340e5163a00eb916442799cfcf1
2016-07-27 10:56:46 +08:00
JW Wang 6ca3a55b72 Bug 1289976. Part 9 - Remove the IsShutdown() check from MediaDecoder::StartDormantTimer(). r=kaku
We don't need to check IsShutdown() which is a subset of |mPlayState != PLAY_STATE_PAUSED && !IsEnded()|.

MozReview-Commit-ID: BjYoLOLuPfC

--HG--
extra : rebase_source : 0d04b30a8bf955faed4907f77f0da29e0ccc011d
2016-07-27 10:52:01 +08:00
JW Wang 85e1a73473 Bug 1289976. Part 8 - Remove the IsShutdown() check from UpdateReadyState(). The callback is disconnected by the watch manager in Shutdown(). r=kaku
MozReview-Commit-ID: xVSWdj1Q0y

--HG--
extra : rebase_source : 948f622c399e1c072b4c15730a7a8c5fbd2ec696
2016-07-27 10:59:23 +08:00
JW Wang 31dcc3816b Bug 1289976. Part 7 - Remove the IsShutdown() check from MediaDecoder::Seek(). r=kaku
1. It is called from DurationChanged() which returns early when IsShutdown() is true.
2. It is called from Play() when IsEnded() is true.

MozReview-Commit-ID: Ixy5OMZHxIm

--HG--
extra : rebase_source : 4cd7229084c6af8b7123ee6c85156ef4932308f3
2016-07-27 10:49:14 +08:00
JW Wang f3ffeca57a Bug 1289976. Part 6 - Remove the IsShutdown() check from MediaDecoder::RemoveMediaTracks(). r=kaku
1. It is called from ChangeState() when IsEnded() is true.
2. It is called from OnMetadataUpdate(). The callback is disconnected in Shutdown().

MozReview-Commit-ID: 8m4jtcl91hT

--HG--
extra : rebase_source : 0988128ec6d05f07ab7b072cc70a9c2970c829c5
2016-07-27 10:44:43 +08:00
JW Wang a2d26a630a Bug 1289976. Part 5 - Remove the IsShutdown() check from MediaDecoder::Pause(). r=kaku
1. Pause() is called from HTMLMediaElement and happens before Shutdown().
2. Pause() is called from SetPlaybackRate() which is called from HTMLMediaElement.

MozReview-Commit-ID: DDr7Bg8jkF2

--HG--
extra : rebase_source : 8b8a4fdc914d0bce7572d9a1ccb0f530bdba062c
2016-07-27 10:42:20 +08:00
JW Wang 348c35b5dd Bug 1289976. Part 4 - Remove the IsShutdown() check from MediaDecoder::NotifyOwnerActivityChanged() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: 9tWLW4JE0Uv

--HG--
extra : rebase_source : 9f33359f5d8833a8f90319303a96cf029460f3ac
2016-07-27 10:38:25 +08:00
JW Wang 00ce40fb6c Bug 1289976. Part 3 - Remove the IsShutdown() check from MediaDecoder::FireTimeUpdate(). r=kaku
FireTimeUpdate() is only called from UpdateLogicalPositionInternal() which returns early when IsShutdown() is true.

MozReview-Commit-ID: 4GZwrI85aXj

--HG--
extra : rebase_source : 9d7cbd571fd794369c833723ea5fc50a26380e51
2016-07-27 10:36:09 +08:00
JW Wang 61a6cb705b Bug 1289976. Part 2 - Remove the IsShutdown() check from MediaDecoder::DumpDebugInfo() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: HU3ybjFZMsE

--HG--
extra : rebase_source : 15d9adb47be449fdaca6a37587e70ff4f1d013bf
2016-07-27 10:33:50 +08:00
JW Wang 0a748cd015 Bug 1289976. Part 1 - Remove the IsShutdown() check from MediaDecoder::ConstructMediaTracks(). r=kaku
1. ConstructMediaTracks() is called from ChangeState() when |mPlayState == PLAY_STATE_PLAYING|.
2. ConstructMediaTracks() is called from MetadataLoaded() which asserts |!IsShutdown()|.

MozReview-Commit-ID: 6OaPYcCOCii

--HG--
extra : rebase_source : 9db9e841fe8a0d797a39cd527abf4f4e95b67131
2016-07-27 10:31:14 +08:00
Matt Woodrow f323872778 Bug 1292032 - Clean up VideoData static constructor methods. r=jya
--HG--
extra : rebase_source : e025c9a15ad00e970f9027f72c78b5d6effbc301
2016-08-04 15:31:52 +12:00
Michael Layzell 2513a13f51 Bug 1291741 - Relax setTimeout throttling in background tabs when an AudioContext is present, rather than only when audio is playing, r=bkelly 2016-08-04 16:53:58 -04:00
Eugen Sawin 92fabd41a0 Bug 1291543 - [1.1] Accept partial information from VBR headers. r=jya 2016-08-04 22:20:26 +02:00
David Anderson 9e49bc37bb Introduce gfxVars for sharing graphics variables across processes. (bug 1288259 part 2, r=jrmuizel,billm)
--HG--
extra : rebase_source : cbac742f7165a2fbdec3e4d1179c9ed49324579f
2016-08-04 11:33:42 -07:00
Terrence Cole e57d650fcf Bug 1291928 - Expose JSSavedStack's stack before returning; r=bz 2016-08-03 16:12:51 -07:00
Decky Coss b69450d2ea Bug 1287655 - place textarea/input cursor at end of text when initialized; r=smaug
MozReview-Commit-ID: 2srGXFmla07

--HG--
extra : transplant_source : %3Cn%D30%86%24%82%90%29%191%9C%8A%EB%0D%5D%E2%20%22%E5
2016-07-21 14:52:49 -04:00
Thomas Wisniewski 2869846cdb Bug 918752 - Override Accept request header to */* in XMLHttpRequest::Send() if it is not specified by the user. r=jst 2016-08-04 12:33:36 -04:00
Shih-Chiang Chien 2abb975dbb Bug 1254484 - resolve relative presentation URL. r=smaug.
MozReview-Commit-ID: CF3WNGorwH1
2016-08-03 15:35:36 +08:00
Ethan Lin 51818f44f0 Bug 1289975 - Reuse canvas buffer when setting the same dimension. r=nical 2016-08-02 23:00:00 +02:00
Markus Stange ebb461c874 Bug 1012752 - Snap scrolled area to layer pixels. r=tnikkel
We want the maximum scroll position to be aligned with layer pixels. That way
we don't have to re-rasterize the scrolled contents once scrolling hits the
edge of the scrollable area.

Here's how we determine the maximum scroll position: We get the scroll port
rect, snapped to layer pixels. Then we get the scrolled rect and also snap
that to layer pixels. The maximum scroll position is set to the difference
between right/bottom edges of these rectangles.
Now the scrollable area is computed by adding this maximum scroll position
to the unsnapped scroll port size.
The underlying idea here is: Pretend we have overflow:visible so that the
scrolled contents start at (0, 0) relative to the scroll port and spill over
the scroll port edges. When these contents are rendered, their rendering is
snapped to layer pixels. We want those exact pixels to be accessible by
scrolling.

This way of computing the snapped scrollable area ensures that, if you scroll
to the maximum scroll position, the right/bottom edges of the rendered
scrolled contents line up exactly with the right/bottom edges of the scroll
port. The scrolled contents are neither cut off nor are they moved too far.
(This is something that no other browser engine gets completely right, see the
testcase in bug 1012752.)

There are also a few disadvantages to this solution. We snap to layer pixels,
and the size of a layer pixel can depend on the zoom level, the document
resolution, the current screen's scale factor, and CSS transforms. The snap
origin is the position of the reference frame. So a change to any of these
things can influence the scrollable area and the maximum scroll position.
This patch does not make us adjust the current scroll position in the event
that the maximum scroll position changes such that the current scroll position
would be out of range, unless there's a reflow of the scrolled contents. This
means that we can sometimes render a slightly inconsistent state where the
current scroll position exceeds the maximum scroll position. We can fix this
once it turns out to be a problem; I doubt that it will be a problem because
none of the other browsers seems to prevent this problem either.

The size of the scrollable area is exposed through the DOM properties
scrollWidth and scrollHeight. At the moment, these are integer properties, so
their value is rounded to the nearest CSS pixel. Before this patch, the
returned value would always be within 0.5 CSS pixels of the value that layout
computed for the content's scrollable overflow based on the CSS styles of the
contents.
Now that scrollWidth and scrollHeight also depend on pixel snapping, their
values can deviate by up to one layer pixel from what the page might expect
based on the styles of the contents. This change requires a few changes to
existing tests.
The fact that scrollWidth and scrollHeight can change based on the position of
the scrollable element and the zoom level / resolution may surprise some web
pages. However, this also seems to happen in Edge. Edge seems to always round
scrollWidth and scrollHeight upwards, possibly to their equivalent of layout
device pixels.

MozReview-Commit-ID: 3LFV7Lio4tG

--HG--
extra : rebase_source : 3e4e0b60493397e61283aa1d7fd93d7c197dec29
extra : source : d43c2d5e87f31ff47d7f3ada66c3f5f27cef84a9
2016-08-04 23:51:58 -04:00
Jeff Gilbert b25f577275 Bug 1290634 - Use idealUnpack with CopyTexImage, and always respec now that ZeroTextureData doesn't support respec. - r=mtseng
MozReview-Commit-ID: HYzTfzLxF3X
2016-08-04 20:04:56 -07:00
Jeff Gilbert bbed19189c Bug 1290634 - Remove unnecessary respecifyTexture arg from ZeroTextureData. - r=mtseng
MozReview-Commit-ID: 52VirsA4eCQ
2016-08-04 20:04:53 -07:00
Nils Ohlmeier [:drno] db340fd6d5 Bug 1278113: disabled audio stream analyzer debug canvas output r=padenot
MozReview-Commit-ID: CJTnzVyugMH
2016-07-20 12:22:23 -07:00
Nathan Froyd 6b2618fb44 Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester
This patch is really two separate changes.

The first change is that rust crates are large, standalone entities that
may contain multitudes of source files.  It therefore doesn't make sense
to keep them in SOURCES, as we have been doing.  Moving to use cargo
will require a higher-level approach, which suggests that we need a
different, higher-level representation for Rust sources in the build
system.

The representation here is to have the build system refer to things
defined in Cargo.toml files as the entities dealt with in the build
system, and let Cargo deal with the details of actually building things.
This approach means that adding a new crate to an existing library just
requires editing Rust and Cargo.toml files, rather than dealing with
moz.build, which seems more natural to Rust programmers.  By having the
source files for libraries (and binaries in subsequent iterations of
this support) checked in to the tree, we can also take advantage of
Cargo.lock files.

The second is that we switch the core build system over to building via
cargo, rather than invoking rustc directly.

We also clean up a number of leftover things from the Old Way of doing
things.  A number of tests are added to confirm that we'll only permit
crates to be built that have dependencies in-tree.
2016-08-03 19:40:41 -04:00
Nathan Froyd d66b8b184a Bug 1231764 - part 5 - add a Cargo.toml for the dom/media/gtest/ code; r=chmanchester
We are going to need a Cargo.toml for all Rust code in the tree, no
matter how trivial.
2016-08-03 19:40:41 -04:00
Carsten "Tomcat" Book 423bdfd2fd Merge mozilla-central to mozilla-inbound
--HG--
rename : dom/media/platforms/apple/ReorderQueue.h => dom/media/platforms/ReorderQueue.h
2016-08-03 17:08:41 +02:00
Thomas Wisniewski 909bb6c298 Bug 1285036 - Part 9: Clean up the XHR send() API endpoints, and how nsIVariants are handled. r=baku 2016-08-01 14:28:01 -04:00
Thomas Wisniewski 4de0c5c74c Bug 1285036 - Part 8: Change XHR open() and related code to follow the spec more closely. r=baku 2016-07-20 13:02:36 -04:00
Thomas Wisniewski 30e540bdd6 Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku 2016-08-02 12:50:10 -04:00
Benoit Girard 8e9fe1fc3e Bug 1290505 - Remove E10S NPAPI plugin windows special case. r=jimm
MozReview-Commit-ID: 7F7JeVmudjq

--HG--
extra : rebase_source : 2dd32728fabd7008ec519ce42ca6d1e2e339cdab
2016-07-29 16:39:50 -04:00
JW Wang 3204b02ef5 Bug 1289993. Part 2 - Call DiscardOngoingSeekIfExists() in MediaOmxCommonDecoder::CallSeek() as we do in MediaDecoder::CallSeek(). r=kaku
MozReview-Commit-ID: I1eTehXEWNv

--HG--
extra : rebase_source : 4b4af3becad7d285d09c58a09095f07d875648f8
2016-07-28 14:29:42 +08:00
JW Wang 3ac12f3e3d Bug 1289993. Part 1 - Disconnect seek requests when shutting down MediaDecoder. r=kaku
MozReview-Commit-ID: 6av1OiJatCr

--HG--
extra : rebase_source : 66891c09e3c35029e7d8f1e605b026968019e353
2016-07-28 14:28:26 +08:00
Bryce Van Dyk dc49694098 Bug 1290284 - Centralise string comparisons for H264 and VPX detection. r=cpearce
Remove string comparisons to determine from mime types if content is VPX or
H264. Replace with calls to VPXDecoder::IsVPX or MP4Decoder::IsH264 to
centralise such logic.

This patch introduces MP4Decoder:IsH264, and moves the similar functionality out
of H264Convertor for the sake of consistently having these functions in
decoders.

MozReview-Commit-ID: 5nfYusYHrUR

--HG--
extra : rebase_source : c013c4ebe28d5afedbb91ddfffadb40d23fd0ee3
2016-07-29 14:12:54 +12:00
Iris Hsiao 36c9d770e1 Backed out changeset 41138b630cdc (bug 1293145) for nsCOMPtr crash \
CLOSED TREE
2016-08-09 14:21:22 +08:00
Gerald Squelart 5ab439ad36 Bug 1293145 - Simulate video-decode-suspend for telemetry purposes - r=kamidphish
After a video has been playing while hidden for a certain time, count the time
until it is not hidden anymore (or it has finished playing), to test-drive how
much decoding time would have been saved by the video-decode-suspend feature.

Note that this is done inside HTMLMediaElement by simulating what should happen
in the MDSM, because instrumenting the MDSM itself and friends would have been
harder and more intrusive.

MozReview-Commit-ID: LdxhPtmoXeA

--HG--
extra : rebase_source : c4063d7c39b56e62e4f397bc21ef889ed14307c8
2016-08-08 10:14:39 +08:00
Gregory Szorc a1cbf6ab70 Backed out changeset 7545a33148f1 (bug 1287397) for Valgrind failures 2016-08-08 19:34:41 -07:00
Anthony Jones 4e052f4a73 Bug 1287397 - Fix wave chunk size overflow; r=cpearce
MozReview-Commit-ID: Dg1OT13urxe

--HG--
extra : rebase_source : 60f57edf43f7fb7c83b6db25dffb240993ec5523
2016-08-09 13:34:58 +12:00
Bryce Van Dyk 77cdb2b31b Bug 1211959 - Tests check if video has started using played range. r=automatedtester
Previously the tests would check if playback had started by looking at the first
recorded time, and then looking at the current time. If there were a lag it was
possible for the first recorded time to be at the end of the video (i.e.
playback already finished), in which case the video playing would not register.
This patch instead uses the played ranges from the video element. Now so long as
there is a non-empty played range we trust playback started.

MozReview-Commit-ID: 5C39A42KRdj

--HG--
extra : rebase_source : e4e8a35df3bac4c9e7765272acb6300b44b45d4e
2016-08-05 12:38:54 +12:00
Masayuki Nakano 24e9e4a700 Bug 1286464 part.2 GetFirstFrameInRange() should return node offset since it may return different node's frame r=m_kato
GetFirstFrameInRange() uses AdjustTextRectNode() which may return different node before retrieving the result frame. Therefore, the caller may need offset in the new node.

MozReview-Commit-ID: 2AQU5WfahT9

--HG--
extra : rebase_source : c753d34dc2691da2ec25c9f5a6fe17d67af24a70
2016-07-14 22:57:00 +09:00
Masayuki Nakano bc5856516b Bug 1286464 part.1 Cleaning up ContentEventHandler::OnQueryTextRectArray() r=m_kato
MozReview-Commit-ID: BDLkQLrzoUI

--HG--
extra : rebase_source : c1b0074bde0580be466259f82d0756ff18e29f53
2016-07-14 22:46:37 +09:00
Dan Minor 37a83aa8e1 Bug 1113634 - Update mLastComputedValue in AudioEventTimeline when skipping events of same time; r=karlt
We need to update mLastComputedValue while processing events that occur at the
same time rather than just skipping over them.

MozReview-Commit-ID: LuxSK6PHFHv

--HG--
extra : rebase_source : be323da2a50ea32838aef322267115d153a14c3d
2016-08-08 16:00:35 -04:00
Alastor Wu 422258bfec Bug 1283417 - part2 : notify media element when cue's display states changed. r=bechen
MozReview-Commit-ID: 4bzS62wveGq

--HG--
extra : rebase_source : 0f9f202877b47142ad5833ebd92b4d4a5f7fc017
2016-08-09 16:58:52 +08:00
Alastor Wu d5a9e0c263 Bug 1283417 - part1 : implement function to notify cue's display states changed. r=bechen
MozReview-Commit-ID: AF2S2UOLCt1

--HG--
extra : rebase_source : a49043e2114cba053168b5e3f52f3846c456b2fa
2016-08-09 16:43:07 +08:00
Carsten "Tomcat" Book d32ae51802 Merge mozilla-central to autoland 2016-08-09 15:49:48 +02:00
Gerald Squelart d78a374b2d Bug 1293145 - Simulate video-decode-suspend for telemetry purposes - r=kamidphish
After a video has been playing while hidden for a certain time, count the time
until it is not hidden anymore (or it has finished playing), to test-drive how
much decoding time would have been saved by the video-decode-suspend feature.

Note that this is done inside HTMLMediaElement by simulating what should happen
in the MDSM, because instrumenting the MDSM itself and friends would have been
harder and more intrusive.

MozReview-Commit-ID: LdxhPtmoXeA

--HG--
extra : rebase_source : 151e1f1383ab5c445eb8c957be8363340cdc4ab1
2016-08-08 10:14:39 +08:00
Sebastian Hengst d307cb8dab Backed out changeset 4361c6f3b915 (bug 1289968) for failing encrypted-media-generate-request-disallowed-input.html. r=backout 2016-08-08 15:28:12 +02:00
Henrik Skupin 97aa5e356f Bug 1292465 - Bump firefox-puppeteer to 51.0.0. r=automatedtester
MozReview-Commit-ID: 1xEqCi0LQVQ

--HG--
extra : rebase_source : b26be31fabd4d699fc95f8d3e938bf92699a40a7
2016-08-05 11:41:48 +02:00
Bryce Van Dyk 3055f0dfe7 Bug 1293149 - Mediasource URL check should check for 'blob' instead of 'mediasource'. r=automatedtester
This behaviour changed as part of Bug 1279493, and the tests should be updated
to reflect this.

MozReview-Commit-ID: oITf0hVjKk

--HG--
extra : rebase_source : 26f54e0ac49a2f27f364c75a63851df5a85ce18f
2016-08-08 15:25:06 +12:00
cku 6aaf11c433 Bug 1288812 - Part 2. Correct test cases. r=heycam
MozReview-Commit-ID: 3Bdv2Lmg9kQ

--HG--
extra : rebase_source : 41bc2ee77a6768dcb358aa6b820336a0436c53de
2016-08-06 06:07:50 +08:00
Chris Pearce a41f94398b Bug 1289968 - Ensure ClearKey doesn't assume keyIds can only be 16 bytes. r=gerald
I also added more testing around ClearKey's base64 decoding, since that affected
how keyIds were handled.

MozReview-Commit-ID: 2UH1JNT4NC3

--HG--
extra : rebase_source : 8e2c861e6b030d7e4a1378d3fafed7630324d940
2016-08-01 16:28:10 +12:00
Masayuki Nakano 8a489e63dd Bug 1257446 part.2 ContentEventHandler::OnQueryTextRectArray() shouldn't set empty rect to the result r=m_kato
Returning empty rects for eQueryTextRectArray causes each dispatcher needing to check every rect. It doesn't make sense especially compared with eQueryTextRect.

So, it should ensure that empty rect won't be returned to dispatchers.

MozReview-Commit-ID: CpMqqihzSDf

--HG--
extra : rebase_source : 0343e2eecf5e25043d260157cf4d8b0874e0ceb6
2016-07-12 20:28:06 +09:00
Ben Tian 232f8ad41b Bug 1264769 - Part 2: Dispatch loadstart event for image loading. r=hsivonen
--HG--
extra : rebase_source : b64b9f2dfe8d112bd0cde5ad2fe9f11aa5807c9d
2016-07-12 10:56:42 +08:00
Ben Tian 7d5abfc007 Bug 1264769 - Part 1: Dispatch loadend event for image loading. r=hsivonen
--HG--
extra : rebase_source : 8843a2a3c56c74dc1838f2da3c8251783e20f295
2016-08-16 12:01:12 +08:00
dimi 9f35496517 Bug 1269253 - Blank error page in iframe with insecure connection. r=smaug
MozReview-Commit-ID: 8WCI8cgRZIo

--HG--
extra : rebase_source : fda416da14b9d60937cd5d86976b443d92d1e0bb
2016-08-16 09:47:14 +08:00
Decky Coss 08a416fd4e Bug 1283915 - Preserve input selection properties after type change. r=smaug
MozReview-Commit-ID: 7xJKc3vIpTY

--HG--
extra : rebase_source : 6fa36a607efb1e8eec1cc8efbb174d622aa0281f
2016-07-27 11:04:53 -04:00
Brian Birtles eac25e3163 Bug 1286476 part 2 - Respect the playback rate when calculating phase boundaries; r=hiro
This implements the spec change in 21de090dac

The spec change refers to a binary 'animation direction' flag. Instead of that,
however, we just pass the playback rate along and use it inside
GetComputedTimingAt since this seems simpler.

Also, this patch moves the implementation of
KeyframeEffectReadOnly::GetComputedTiming from the header file into the .cpp
file. This is because with this change, GetComputedTiming needs to call
mAnimation->PlaybackRate() and so mozilla::dom::Animation needs to be a complete
type. However, simply including Animation.h doesn't work because of a cyclic
dependency between KeyframeEffect.h and Animation.h. We might be able to fix
this later but since yet-to-land bug 1049975 moves this code around a lot, I'd
rather not touch it too much just now.

MozReview-Commit-ID: 1h6XRh4xmfI
2016-08-17 08:28:41 +09:00
Brian Birtles 0d8b0d4fda Bug 1291665 - Unregister from refresh driver in DocumentTimeline::Unlink; r=hiro 2016-08-17 09:53:22 +09:00
Nicholas Nethercote a54e0fd248 Bug 1295053 (part 9) - Don't use NS_METHOD for dom/ functions. r=froydnj.
These don't need __stdcall on Win32.

--HG--
extra : rebase_source : 93aa569789dab107137c5493d1c86acc6701329b
2016-08-16 12:12:30 +10:00
Randall Barker 983cc6b2d1 Bug 1291373 - [geckoview] part 4, Remove GeckoEvent and AndroidGeckoEvent r=jchen 2016-08-16 14:33:43 -07:00
Randall Barker c1e108f7ad Bug 1291373 - [geckoview] part 1, Remove JavaPanZoomController (JPZ) from mobile/android r=snorp 2016-08-16 14:33:43 -07:00
Tom Schuster 7314ad853b Bug 1292655 - Limit BatteryManager chargingTime/dischargingTime precision. r=baku 2016-08-16 22:56:21 +02:00
Ethan Lin 41b10604fb Bug 1290628 - Change the assertion rule to prevent assert with large number. r=lsalzman 2016-08-02 19:47:00 +02:00
Kaku Kuo c79eb6f91f Bug 1290371 - handle files with audio and video tracks but no samples at all; r=jya
So, we have 4 boolean variables and here is the truth table.
Case 1, 2, 3, 4, 7, 8, 10 and 12 are not possible to happen.

Then, the remaining cases could be clustered into three categories:
(1) Case 5, 9 and 13: no sample is demuxed at all, return 0.
(2) Case 6, 11, 14 and 15: either audio or video is able to be demuxed, return the known value.
(3) Case 15: both audio and video are demuxed, return the minimum of the values.


For simplifying the logic, I will initialize the audioStartTime and videoStartTime
to be INFINITY if we don't have the first-demuxed sample, otherwise, initialize
them to be the real first-demuxed sample's time.

Then, the final calculation will be:
(1) Case 5, 9 and 13: the minimum of two INFINITY values is still INFINITY, return 0.
(2) Case 6, 11, 14 and 15: return the minimum of one real first-demuxed-time and the INFINITY.
(3) Case 15: return the minimum of two real first-demuxed-time values.

Case   HasAudio   HasVideo   HasAudioSample   HasVideoSample    ExpectedResult
---------------------------------------------------------------------------------------------------
1         F          F             F                 F          not possible
2         F          F             F                 T          not possible
3         F          F             T                 F          not possible
4         F          F             T                 T          not possible
---------------------------------------------------------------------------------------------------
5         F          T             F                 F          return 0
6         F          T             F                 T          return video sample
7         F          T             T                 F          not possible
8         F          T             T                 T          not possible
---------------------------------------------------------------------------------------------------
9         T          F             F                 F          return 0
10        T          F             F                 T          not possible
11        T          F             T                 F          return audio sample
12        T          F             T                 T          not possible
---------------------------------------------------------------------------------------------------
13        T          T             F                 F          return 0
14        T          T             F                 T          return videoSample
15        T          T             T                 F          return audioSample
16        T          T             T                 T          return min(auidoSample, videoSample)

MozReview-Commit-ID: ANsYDth7slJ

--HG--
extra : transplant_source : %DAj%1A%EC%19%82%7B%B3%05%FE%21%04a%16%9A%9F%18x1%95
2016-08-03 16:51:29 +08:00
John Dai 996b1f61aa Bug 1289872 - Fixed the warning log spams due to bug 1275833. r=wchen 2016-08-04 04:22:00 +02:00
Shih-Chiang Chien a99142a2c5 Bug 1287717 - Part 2, close receiver page while loading fail. r=smaug.
MozReview-Commit-ID: Dogham2LmHG
2016-08-04 09:46:14 +08:00
Shih-Chiang Chien 90424f760d Bug 1287717 - Part 1, enter closed state while fail to connect. r=smaug.
MozReview-Commit-ID: L3gacVfSlcd
2016-08-02 18:40:00 +02:00
Andrew McCreight 0d2ed01bc4 Bug 1287204 - Fix typo in nsNodeUtils::CloneAndAdopt(). r=bz 2016-08-04 16:28:15 +02:00
Jessica Jong b92c3511ea Bug 1283023 - Implement the step attribute for <input type=month>. r=smaug
--HG--
extra : rebase_source : 730c799687da786279efcd3134777b7208567e9e
2016-08-03 02:54:00 +02:00
JerryShih 184798636b Bug 1236785 - return WebGLTexture cache value for GetTexParameter() call. r=mtseng
--HG--
extra : rebase_source : 6c5d6358f6f4ee0f3c5f4e09a2b17998657415e8
2016-08-02 20:20:00 +02:00
JerryShih 28b72fb07b Bug 1291612 - update webgl conformance test gl-object-get-calls.js. r=mtseng
Update webgl conformance test gl-object-get-calls.js to
24323861fe

--HG--
extra : rebase_source : 0cb51ef71f78d6e9d2ed8cf716b78e8d95f87927
2016-08-02 22:52:00 +02:00
JerryShih 3b6936ef71 Bug 1236394 - turn on gl-object-get-calls.html WebGL conformance test, a=mtseng
--HG--
extra : rebase_source : 8f4daf60eefcbb40915d455f90064bb973ad5ea5
2016-07-31 19:39:00 +02:00
James Willcox 0fbdac5122 Bug 1255628 - Remove AndroidNativeWindow, as we can use the NDK functions directly now r=rbarker 2016-08-04 09:23:34 -05:00
Rob Wu 9069fff35f Bug 1197451 - Add clipboardWrite permission r=billm
MozReview-Commit-ID: 6d1mQSVWRPe

--HG--
extra : rebase_source : 2f19bab5c9d6db25c60b2b19c06c7027384a04ca
2016-07-08 17:19:17 -07:00
Jonathan Kingston 45911f854e Bug 1290965 - Prevent command from firing when click has prevented default on the XUL element. r=enn
MozReview-Commit-ID: 5lMw3hFCe3e

--HG--
extra : rebase_source : eb722858c00720aef34c82080d567829ec0f581e
2016-08-09 14:51:47 +01:00
Ethan Lin b29de863bc Bug 1293968 - Avoid calling EnsureTarget in CanvasRenderingContext2D::GetImageBuffer. r=nical
--HG--
extra : rebase_source : de0f1bb16639d0bc358b373636404d66a4eb7d1a
2016-08-11 23:46:00 -04:00
Samael Wang a4bc3b938a Bug 1268962 - Add load / error event to prefetch link. r=bz
--HG--
extra : rebase_source : e62d8f12b0a4b4e047869ff005161df15cb6ab42
2016-08-12 15:09:05 +08:00
Stone Shih 0936be8e70 Bug 1293175 - [Pointer Event] Add Element.hasPointerCapture API. r=smaug
--HG--
extra : rebase_source : 25dcafa70e5260259fd7703134b376c3351595c0
2016-08-10 15:31:43 +08:00
Wes Kocher e386a2bc9e Backed out 2 changesets (bug 1264769) for invalid-src.html wpt failures a=backout
Backed out changeset 7b9d3d0c09f5 (bug 1264769)
Backed out changeset 780f7036c084 (bug 1264769)
2016-08-15 13:35:46 -07:00
Stone Shih 728f58c68b Bug 1258804 - Part 3: Update related test case for PE spec changes. r=smaug
--HG--
extra : rebase_source : 920401957f69e334323ef7ab4548b9f98437b59f
2016-08-01 15:41:42 +08:00
Ben Tian 1dec47a521 Bug 1264769 - Part 2: Dispatch loadstart event for image loading. r=hsivonen
--HG--
extra : rebase_source : 35df083492f43de8179c4ac50d82d20666ab9bf3
2016-07-12 10:56:42 +08:00
Ben Tian 5c79574178 Bug 1264769 - Part 1: Dispatch loadend event for image loading. r=hsivonen
--HG--
extra : rebase_source : efa121de9a8b3b8bcd9639b59780d7b2340bdfef
2016-07-20 11:01:46 +08:00
Eric Rahm ee9ba04219 Bug 1262948 - Remove warning from URL constructor. r=baku
Remove warning if constructing a new URI fails. An exception is still thrown on failure.
2016-08-15 11:16:25 -07:00
Michael Layzell bf6425d33d Bug 1290688 - Part 3: Add the application/x-moz-file to the DataTransfer.types list even though the spec says not to for back-compat, r=baku
MozReview-Commit-ID: 1pUfBJyt22P
2016-08-15 13:16:15 -04:00
Michael Layzell aa4b32c8ac Bug 1290688 - Part 2: Don't include the types of files in DataTransfer.types, as per the spec, r=baku 2016-08-15 13:16:13 -04:00
Michael Layzell 02881e51c3 Bug 1290688 - Part 1: Don't provide more than one type from the clipboard when pasting images, r=baku 2016-08-15 13:16:10 -04:00
Thomas Wisniewski dda8b0ae6b Bug 1285425 - Set forms to valid in their constructor. r=bz 2016-08-09 16:23:40 -04:00
Olli Pettay ad6d094330 Bug 1289970, ensure we don't remove valid Directionality map from textnode, r=ehsan
--HG--
extra : rebase_source : 5d784d52125daf4725cad0f0cf9fe03a8d47577a
2016-08-11 02:54:55 +03:00
Wes Kocher a742ff6791 Merge m-c to inbound, a=merge 2016-08-10 16:55:15 -07:00
Wes Kocher 565cdb97f5 Backed out changeset 3fbb8651a171 (bug 1121938) for breaking encrypted-media-syntax.html CLOSED TREE 2016-08-10 13:17:39 -07:00
Alexander Surkov 30c2b9aee8 Bug 1294086 - implement ARIA feed role, r=yzen 2016-08-10 14:07:29 -04:00
André Bargull 878648c8cf Bug 1121938 - Implement TypedArray.prototype.toString and .toLocaleString. r=waldo, r=froydnj 2016-07-29 09:04:06 -07:00
Hector Zhao 694cc3f78f Bug 664717 - Part 3: Include file promise when copying an image in Windows. r=seth
MozReview-Commit-ID: ANSey2vGwaG

--HG--
extra : transplant_source : %9C%F4%18%10%19%DA%7C%D7%7Ed-%9D.%8F%E2%CE%3B%00%E0%EB
2016-06-30 16:23:30 +08:00
Hector Zhao 4a0bfda8d9 Bug 664717 - Part 2: Pass requestingPrincipal to parent process with nsITransferable. r=smaug
MozReview-Commit-ID: B0k10UplydR

--HG--
extra : transplant_source : %D5h%03%7F%D9F%90%E6q%C8%9D%142b%9C%5E%F4%D1%E8%B3
2016-06-30 15:12:56 +08:00
Carsten "Tomcat" Book 8dbb362d18 merge mozilla-inbound to mozilla-central a=merge 2016-07-31 17:44:14 +02:00
Jean-Yves Avenard 5c81ca837f Bug 1288329: [ogg] P6. Adjust mochitests. r=gerald
There are various differences between the new ogg player and the old OggReader that leads to inconsistencies on how durations are reported.

1- The old OggReader only use the end time as duration of the video, ignoring the start time of the first sample. This leads to incorrect duration calculation.
2- The OggReader do not ignore undecodable frames located at the beginning of the video, and those are used by the MDSM to calculate the start time. This leads to durations sometimes being shorter than they ought to.

MozReview-Commit-ID: 6yi1P4N6tPE

--HG--
extra : rebase_source : 93e678aa762519d27444a57f8a12d2bd569b025d
2016-07-28 22:52:08 +10:00
Jean-Yves Avenard 8a0dfdfdb4 Bug 1288329: [ogg] P5. Fix coding style. r=gerald,jwwang
MozReview-Commit-ID: 1bAE92BECRD

--HG--
extra : rebase_source : bc53d84623f2d76c2eed796af1ca273c30efb369
2016-07-29 10:47:03 +10:00
Jean-Yves Avenard 3d8830b7ab Bug 1288329: [ogg] P4. Don't assume we can't seek in resource if transport isn't seekable. r=gerald
We can seek in cached data, we will rely on the seek operation to fail instead to determine if we can't or not

MozReview-Commit-ID: 3Ac7c1nTZTH

--HG--
extra : rebase_source : 569fc9dab9b50b416d29ffc902facf302845755b
2016-07-31 13:31:54 +10:00
Jean-Yves Avenard 90ebc0deea Bug 1288329: [ogg] P3. Never take into considerations frames prior the first keyframe. r=gerald
MozReview-Commit-ID: 1aJSbJb9kQW

--HG--
extra : rebase_source : 9853a92e7ca129305f28e68a1a6e9e2508f9e3a9
2016-07-29 10:38:36 +10:00
Jean-Yves Avenard 5d0a764769 Bug 1288329: [ogg/vorbis] P2. Pass extra information to the decoder so that it can perform proper trimmer. r=gerald,jwwang
The OggReader always passed a complete ogg_packet to the vorbis decoder, ensuring that the right number of frames was be returned. In the conversion to the new architecture, this information got lost making the vorbis decoder always return more frames than normal on the last packet.

MozReview-Commit-ID: HYHxqXfYntJ

--HG--
extra : rebase_source : 3d2a59b011ec1e996ab7aaf29e16baa495f7d31c
2016-07-29 02:19:21 +10:00
Jean-Yves Avenard 49ac56ce9a Bug 1288329: [ogg] P1. Add support for metadata chaining in OggDemuxer. r=gerald,jwwang
This is not the cleanest approach, but ensures identical behavior with the OggReader when it comes to firing loadedmetadata event and handling the change of seekability.

A more universal solution could be considered involving the MediaFormatReader and changing the MediaDataDemuxer API, of interest would be adding support for a new event fired whenever we have a change of content or metadata (useful with MSE or recorded webm of a WebRTC session

MozReview-Commit-ID: BojB2r1CtA3

--HG--
extra : rebase_source : 352fa61b62316264d1a2c8669f427d75f15ca19b
2016-07-28 15:32:11 +10:00
Bryce Van Dyk e06afda01b Bug 1279077 - Update GMP/EME path to support webm. r=cpearce
Update handling of VP8, VP9 to enable decryption and decoding via widevine.
Update handling with further validation to make sure that invalid video types
are rejected when trying to create widevine decryptor session or init widevine
decoders.

MozReview-Commit-ID: 8FOvUJfxr6L

--HG--
extra : rebase_source : 0f6aed8256d7f106a598b09e6f11efe80f0e4bb2
2016-07-29 15:53:22 +12:00
Carsten "Tomcat" Book 119eea6bdd Backed out changeset 9966bbe6b534 (bug 1289976) for assertion failures in MediaDecoder.h 2016-07-30 19:52:46 +02:00
Carsten "Tomcat" Book b5951bbc7f Backed out changeset 2cb402f74a51 (bug 1289976) 2016-07-30 19:52:32 +02:00
Carsten "Tomcat" Book eda09c15e0 Backed out changeset 7368d06f677b (bug 1289976) 2016-07-30 19:52:31 +02:00
Carsten "Tomcat" Book a1b168271d Backed out changeset 93a556b5e244 (bug 1289976) 2016-07-30 19:52:31 +02:00
Carsten "Tomcat" Book 169eb9f17a Backed out changeset bac5f65e6931 (bug 1289976) 2016-07-30 19:52:30 +02:00
Carsten "Tomcat" Book dfea28ba46 Backed out changeset ce6b4f84c86e (bug 1289976) 2016-07-30 19:52:29 +02:00
Carsten "Tomcat" Book 1938c88013 Backed out changeset cd25be005e38 (bug 1289976) 2016-07-30 19:52:28 +02:00
Carsten "Tomcat" Book a51910755e Backed out changeset f648be2df9ec (bug 1289976) 2016-07-30 19:52:27 +02:00
Carsten "Tomcat" Book e880c3527f Backed out changeset 2931db85cc99 (bug 1289976) 2016-07-30 19:52:26 +02:00
Carsten "Tomcat" Book 1f40b92079 Backed out changeset ba01eb85da0a (bug 1289976) 2016-07-30 19:52:25 +02:00
Carsten "Tomcat" Book fc8e03f0d8 Merge mozilla-central to autoland 2016-07-30 16:49:41 +02:00
Carsten "Tomcat" Book 3c40ac6f0b merge mozilla-inbound to mozilla-central a=merge 2016-07-30 16:20:57 +02:00
Mark Banner 8fb8a69d5c Bug 1287827 - Part 5. Remove Loop's special permissions for about:loopconversation from MediaManager. r=jib 2016-07-30 08:48:34 +01:00
Mark Banner 44327fb657 Bug 1287827 - Part 4. Remove the special-case Loop CSP setting. r=mrbkap 2016-07-30 08:48:33 +01:00
Mike Conley d190976dae Bug 1287827 - Fix a race-y test_bug260264.html mochitest. r=mrbkap
In nsGlobalWindow, we have a static counter for how many popups we've seen
recently. We increment it and decrement it when popups open and close - although
the decrement only occurs once the DocShell is detached, which happens asynchronously.

The test uses a utility that returns Promises for window.open and window.close,
but it uses dom-window-destroyed for resolving close, which happens _before_ the
counter is decremented. The dom-window-destroyed observer queues a runnable which
resolves the Promise.

This means that the test is attempting to open windows before the windows from a
previous test have finished detaching their DocShells (and decrementing the counter),
which means that the attempts to open the window hit the popup limit, which blocks
the popups.

This test switches us to waiting for outer-window-destroyed instead, which gives us
a greater certainty that the decrement has occurred.

MozReview-Commit-ID: 3a7QzxelP0a
2016-07-30 08:48:26 +01:00
Boris Zbarsky b5ee45e695 Bug 1290636. Expose iterator stuff on NodeList and DOMStringList. r=qdot 2016-07-30 01:00:18 -04:00
Boris Zbarsky 30fb9d7bd3 Bug 1290636. Fix some bugs in the way single-type (value) iterators are hooked up in the Web IDL bindings. r=qdot
There were two issues:

1) The keys/entries/values/forEach properties were being added no matater what
the value of the 'unforgeable' boolean was.  So we ended up spitting out
unforgeable versions of those, and this confused some Xray cases.

2) The number of args listed for forEach was wrong, which hit assertions in the
JS engine because the same self-hosted function was being instantiated with
different numbers of args from different places.
2016-07-30 01:00:12 -04:00
Boris Zbarsky 61e3a83a14 Bug 1290264. Update handling of '/' target origin of postMessage to spec change to use the incumbent global. r=bholley 2016-07-30 00:59:54 -04:00
JW Wang 1e61811c7e Bug 1289976. Part 10 - Remove the IsShutdown() check from MediaDecoder::UpdateDormantState(). r=kaku
1. It is called from DormantTimerExpired(). The timer is canceled in Shutdown().
2. It is called from NotifyOwnerActivityChanged() which happens before Shutdown().
3. It is called from Play() which happens before Shutdown().
4. It is called from Seek() which happens before Shutdown().

MozReview-Commit-ID: EnKHF61FBXf

--HG--
extra : rebase_source : 04df59b6722c8340e5163a00eb916442799cfcf1
2016-07-27 10:56:46 +08:00
JW Wang 62af9d2687 Bug 1289976. Part 9 - Remove the IsShutdown() check from MediaDecoder::StartDormantTimer(). r=kaku
We don't need to check IsShutdown() which is a subset of |mPlayState != PLAY_STATE_PAUSED && !IsEnded()|.

MozReview-Commit-ID: BjYoLOLuPfC

--HG--
extra : rebase_source : 0d04b30a8bf955faed4907f77f0da29e0ccc011d
2016-07-27 10:52:01 +08:00
JW Wang 661f07a5d4 Bug 1289976. Part 8 - Remove the IsShutdown() check from UpdateReadyState(). The callback is disconnected by the watch manager in Shutdown(). r=kaku
MozReview-Commit-ID: xVSWdj1Q0y

--HG--
extra : rebase_source : 948f622c399e1c072b4c15730a7a8c5fbd2ec696
2016-07-27 10:59:23 +08:00
JW Wang 7bdd2a6dd4 Bug 1289976. Part 7 - Remove the IsShutdown() check from MediaDecoder::Seek(). r=kaku
1. It is called from DurationChanged() which returns early when IsShutdown() is true.
2. It is called from Play() when IsEnded() is true.

MozReview-Commit-ID: Ixy5OMZHxIm

--HG--
extra : rebase_source : 4cd7229084c6af8b7123ee6c85156ef4932308f3
2016-07-27 10:49:14 +08:00
JW Wang 194e23bdb4 Bug 1289976. Part 6 - Remove the IsShutdown() check from MediaDecoder::RemoveMediaTracks(). r=kaku
1. It is called from ChangeState() when IsEnded() is true.
2. It is called from OnMetadataUpdate(). The callback is disconnected in Shutdown().

MozReview-Commit-ID: 8m4jtcl91hT

--HG--
extra : rebase_source : 0988128ec6d05f07ab7b072cc70a9c2970c829c5
2016-07-27 10:44:43 +08:00
JW Wang c4b1ec5baf Bug 1289976. Part 5 - Remove the IsShutdown() check from MediaDecoder::Pause(). r=kaku
1. Pause() is called from HTMLMediaElement and happens before Shutdown().
2. Pause() is called from SetPlaybackRate() which is called from HTMLMediaElement.

MozReview-Commit-ID: DDr7Bg8jkF2

--HG--
extra : rebase_source : 8b8a4fdc914d0bce7572d9a1ccb0f530bdba062c
2016-07-27 10:42:20 +08:00
JW Wang 97dff3f268 Bug 1289976. Part 4 - Remove the IsShutdown() check from MediaDecoder::NotifyOwnerActivityChanged() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: 9tWLW4JE0Uv

--HG--
extra : rebase_source : 9f33359f5d8833a8f90319303a96cf029460f3ac
2016-07-27 10:38:25 +08:00
JW Wang d2d8295bf6 Bug 1289976. Part 3 - Remove the IsShutdown() check from MediaDecoder::FireTimeUpdate(). r=kaku
FireTimeUpdate() is only called from UpdateLogicalPositionInternal() which returns early when IsShutdown() is true.

MozReview-Commit-ID: 4GZwrI85aXj

--HG--
extra : rebase_source : 9d7cbd571fd794369c833723ea5fc50a26380e51
2016-07-27 10:36:09 +08:00
JW Wang 294fff9de7 Bug 1289976. Part 2 - Remove the IsShutdown() check from MediaDecoder::DumpDebugInfo() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: HU3ybjFZMsE

--HG--
extra : rebase_source : 15d9adb47be449fdaca6a37587e70ff4f1d013bf
2016-07-27 10:33:50 +08:00
JW Wang a9482dfc9c Bug 1289976. Part 1 - Remove the IsShutdown() check from MediaDecoder::ConstructMediaTracks(). r=kaku
1. ConstructMediaTracks() is called from ChangeState() when |mPlayState == PLAY_STATE_PLAYING|.
2. ConstructMediaTracks() is called from MetadataLoaded() which asserts |!IsShutdown()|.

MozReview-Commit-ID: 6OaPYcCOCii

--HG--
extra : rebase_source : 9db9e841fe8a0d797a39cd527abf4f4e95b67131
2016-07-27 10:31:14 +08:00
JW Wang 65db31d2a5 Bug 1289649 - HTMLMediaElement should clear mDecoder when XPCOM shutdown begins. r=gerald
MozReview-Commit-ID: A3ECReCgiD7

--HG--
extra : rebase_source : 452e156b9ecb449f311bd47f0afcc3a4bd03e10e
2016-07-27 10:26:21 +08:00
Alastor Wu 4bb0811eb6 Bug 1288971 - notify audio playback changed by media element's play(). r=baku
Notify audible-changing when resuming audio by MediaElement::play() instead of control interface.

MozReview-Commit-ID: 10a1npQ46Th

--HG--
extra : rebase_source : 16cce6782a132a2aab4ad66dc216d6237fc2ba9f
2016-07-29 19:26:56 +08:00
James Willcox aa17fe1d72 Bug 1286133 - Use Android VideoView to play HLS r=sebastian,jchen 2016-07-29 17:02:35 -05:00
Alastor Wu 0f54e0840d Bug 1282410 - part1 : open unsupported type media. r=cpearce 2016-07-29 17:02:31 -05:00
Mark Banner 9b96b9599c Backed out changeset 82d62650cfe4 (bug 1287827) for breaking tests 2016-07-29 18:17:15 +01:00
Mark Banner 37538ca14d Backed out changeset f5f1c014ca19 (bug 1287827) for breaking tests 2016-07-29 18:17:13 +01:00
Mark Banner 3dee065445 Bug 1287827 - Part 5. Remove Loop's special permissions for about:loopconversation from MediaManager. r=jib 2016-07-29 12:00:30 +01:00
Mark Banner f12f4ca9c9 Bug 1287827 - Part 4. Remove the special-case Loop CSP setting. r=mrbkap 2016-07-29 12:00:29 +01:00
Carsten "Tomcat" Book 8c47612fee merge mozilla-inbound to mozilla-central a=merge 2016-07-29 11:56:43 +02:00
Bobby Holley 7c2695a9d0 Bug 1290214 - Remove NS_ERROR for media queries and @font-face. r=emilio 2016-07-28 17:25:46 -07:00
Bobby Holley 81084cfef0 Bug 1290214 - Remove NS_ERROR in the case where we skip checking the stylesheet service. r=emilio 2016-07-28 17:25:44 -07:00
Bobby Holley b92154b20a Bug 1290214 - Stop asserting when we don't have enough information to use the servo backend. r=emilio
In practice I'm pretty sure these cases wouldn't have a content docshell anyway.
We probably don't need more robust machinery here, since eventually we'll just
make stylo pref-based for every new prescontext regardless of type.
2016-07-28 17:25:41 -07:00
Jeff Gilbert 0ee365e60a Bug 1289653 - Mark tests.
MozReview-Commit-ID: IWB8gBthP2v
2016-07-28 14:37:41 -07:00
Jeff Gilbert d6af553fb8 Bug 1289653 - Disallow null `pixels` in texSubImage. - r=mtseng
MozReview-Commit-ID: HgbJEhykEda
2016-07-28 14:37:41 -07:00
Jeff Gilbert 2d3a353980 Bug 1289652 - Disabled arrays don't change getVertexAttrib for SIZE,TYPE. - r=mtseng
MozReview-Commit-ID: 71RJlIFayNH
2016-07-28 14:33:38 -07:00
JW Wang 8d82fea425 Bug 1289683 - Prevent notifications from AudioOffloadPlayer after shutdown. r=sotaro
MozReview-Commit-ID: J4t4aYZyfVz

--HG--
extra : rebase_source : 16597bdf0f31264bbdb51764de06a99bb6ff8c95
2016-07-27 15:04:07 +08:00
Gerald Squelart 0ea69c7f48 Bug 1289668 - Report inter-keyframe telemetry - r=kamidphish
Use the new FrameStatistics members to report telemetry about inter-keyframe
timings.

MozReview-Commit-ID: 1ZWU2qpSWyC

--HG--
extra : rebase_source : f13fffc2bc81ad6090c3f494cc99e1d198f3256d
2016-07-27 15:43:01 +10:00
Gerald Squelart 2a787d2521 Bug 1289668 - Record inter-keyframe statistics - r=kamidphish
FrameStatisticsData can now store inter-keyframe information, which is
provided by the MediaFormatReader (based on live decoding).

MozReview-Commit-ID: HhBy6pgT6ZX

--HG--
extra : rebase_source : 6a072623e8a5b0f23b81307e8ea4b19a3e21b252
2016-07-26 09:36:55 +10:00
Gerald Squelart 374f22a566 Bug 1289668 - HTMLMediaElement uses video decoder's frame statistics - r=kamidphish
HTMLVideoElement can expose its thread-safe FrameStatistics object, so that
HTMLMediaElement can access more adequate data for its telemetry, without
having to use an intermediary (and potentially less accurate)
VideoPlaybackQuality object.

This will also help with accessing other/new FrameStatistics members later on.

MozReview-Commit-ID: AT7mEGy0zGr

--HG--
extra : rebase_source : 35bf6673cc0acd9d4e6e1a58c573749689614d43
2016-07-26 11:32:58 +10:00
Christoph Kerschbaumer 886e7cd571 Bug 1289085: CSP - Test referrer with no valid src. r=dveditz 2016-07-29 22:53:59 +02:00
Christoph Kerschbaumer ec59af86d9 Bug 1289085: CSP - Bail early if referrer directive has no valid src. r=dveditz 2016-07-31 07:57:22 +02:00
Carsten "Tomcat" Book 220e36cb8d Merge mozilla-central to mozilla-inbound 2016-07-30 16:23:21 +02:00
Reuben Morais 8884c73c7e Bug 1285378 - Remove dom.global-constructor.disable pref check from script namespace manager. r=jst 2016-07-30 10:42:12 -03:00
Thomas Wisniewski 6a1fb99d2b Bug 709991 - Fire onerror instead of throwing on network errors for async XHRs. r=bz 2016-07-30 00:24:56 -04:00
Gerald Squelart 7bea2e1262 Bug 1289668 - Refactor FrameStatistics writers to use Data struct - r=kamidphish
Decoders now use FrameStatisticsData to gather data for their frame-related
notifications. This will ease introducing new members later on.

MozReview-Commit-ID: DWdOSPX3JM

--HG--
extra : rebase_source : a3e05f34353a397d1c82b3f4d935c0864f90556e
2016-07-18 10:41:40 +10:00
Gerald Squelart 16ceda9794 Bug 1289668 - Use 64 bits to store FrameStatistics values - r=kamidphish
Decoders uses 64-bit values to count frames, so we should use the same type
in FrameStatistics.

Because VideoPlaybackQuality can only use 32 bits (as defined in W3C specs),
we need to ensure that imported FrameStatistics numbers can fit in 32 bits,
while keeping their ratios the same.

MozReview-Commit-ID: 3pUTGK0ekGv

--HG--
extra : rebase_source : 627fada111b51b8830fd38bf6d60a79b899ce603
2016-07-18 10:51:30 +10:00
Gerald Squelart 9448bd8536 Bug 1289668 - Refactor FrameStatistics - r=kamidphish
Move FrameStatistics' data into separate struct, so that it can more easily be
changed and passed around, outside of the lock-controlled FrameStatistics
object.

MozReview-Commit-ID: TfsMRJhVfQ

--HG--
extra : rebase_source : 8c4c6a23c8c2d6ff4272f9f918c9510326691148
2016-07-18 09:51:25 +10:00
Gerald Squelart 56c9933215 Bug 1289668 - FrameStatistics style - r=kamidphish
MozReview-Commit-ID: B9yEd7tqfAN

--HG--
extra : rebase_source : 3b1bfd11c604f9e57321c842f4893192ca9b77b5
2016-07-15 16:48:56 +10:00
Gerald Squelart 10c9db905a Bug 1289668 - VideoPlaybackQuality style - r=kamidphish
MozReview-Commit-ID: EorsgpmZM1S

--HG--
extra : rebase_source : cfaac027ac12b4a5e219b4eeb5b0360b5e464461
2016-07-15 16:48:26 +10:00
Gerald Squelart 8d5de8656a Bug 1289674 - Don't record video telemetry when there is no video - r=kamidphish
MozReview-Commit-ID: nJniysQfpM

--HG--
extra : rebase_source : 4d158a46f233dcefbbfc36a47a29af15be690f21
2016-07-27 16:26:45 +10:00
Jan-Ivar Bruaroey 44c9f33c25 Bug 1289857 - Fix MediaTrackConstraints.cpp to compile with --disable-webrtc again. r=mjf
MozReview-Commit-ID: GgVNQSbPCwf

--HG--
extra : rebase_source : ac3a7c53c3ac8c5b98e05b6d72ddb2badd58617a
2016-07-28 12:03:40 -04:00
Jan-Ivar Bruaroey abbd438d8f Bug 1286096 - Wire up audio getSettings(). r=padenot,smaug
MozReview-Commit-ID: KH6xcAnd3DX

--HG--
extra : rebase_source : a473d25cec56ee5bf2cd7b5114d7038e45d6a9d8
2016-07-16 15:33:54 -04:00
Jan-Ivar Bruaroey e2c982dd72 Bug 1286096 - Consider competing audio constraints as well. r=padenot
MozReview-Commit-ID: APPg2UBgNYo

--HG--
extra : rebase_source : 02e05f0e0677d80711a0d27902f17b3f31136db4
2016-07-15 19:55:59 -04:00
Ben Kelly 1ba8e28352 Bug 1288915 P2 Verify that synthetic download works with a Content-Encoding header set. r=jdm 2016-07-28 15:51:51 -04:00
Wes Kocher c7656c1da3 Backed out changeset c0bf6e0b8f1d (bug 1173199) for build bustage CLOSED TREE 2016-07-28 11:48:20 -07:00
Jan-Ivar Bruaroey 1f7f1269f6 Bug 1286096 - Move UpdateSingleSource pattern to MediaEngine base class for reuse. r=padenot
MozReview-Commit-ID: IJjZayOSxp4

--HG--
extra : rebase_source : de44566213623492982653c90793be9cceee539b
2016-07-13 16:07:03 -04:00
Jan-Ivar Bruaroey 9f23bcc615 Bug 1286096 - Move AllocationHandle used for cameras to MediaEngineSource base class to reuse for microphones. r=padenot
MozReview-Commit-ID: BcmlKnHhe0o

--HG--
extra : rebase_source : 45342801548033ddbb2c0e060a6c6685bcb910b9
2016-07-12 23:25:07 -04:00
Jan-Ivar Bruaroey 2982c3ee86 Bug 1286096 - Remove fakeTracks constraint. r=drno,smaug
MozReview-Commit-ID: I9ZsufufRYg

--HG--
extra : rebase_source : 6d3ace3a22ce34586da4899cc0f7b2727a5fc6e0
2016-07-11 19:27:43 -04:00
Jan-Ivar Bruaroey 36d85898ac Bug 1286096 - Enable width/height constraints on fake device. r=padenot
MozReview-Commit-ID: 1SPPbysZjqL

--HG--
extra : rebase_source : aa52d5d518fc1f52c81709c22212c892b0527d46
2016-07-11 16:52:20 -04:00
Jan-Ivar Bruaroey 6606fbb009 Bug 1286096 - Have MediaEngineDefaultVideoSource inherit from MediaEngineCameraVideoSource. r=padenot
MozReview-Commit-ID: KxT4HRaGe9

--HG--
extra : rebase_source : e1cd848912be7db9cb338bba9a19e1de46a2563f
2016-07-11 12:31:33 -04:00
James Andreou 3585e16752 Bug 1283281 - Remove PB Flag from DOMStorage. r=jdm 2016-06-29 14:01:00 +02:00
Jessica Jong 6f6b9ca3bc Bug 1281769 - Do not throw when getting selectionDirection/selectionStart/selectionEnd on input/textarea. r=smaug 2016-08-08 23:19:00 +02:00
Edgar Chen aa6fa99c93 Bug 1281670 - Keep reparsing style attribute if we had parsed it once. r=bz
MozReview-Commit-ID: 4TeWC3Oepe4

--HG--
extra : rebase_source : 8994e12ca2cabfa0e4df251c5c22cf3840c1ed4c
2016-08-08 18:29:11 +08:00
Ben Tian 6107aa70d5 Bug 1272297 - Do not check pattern validity while parser is creating this input element. r=smaug 2016-08-09 15:21:15 +08:00
Marcos Caceres 4b42312a6f Bug 1160200 - APNG can't be used with type switching. r=mcaceres, r=jrmuizel, r=johns 2016-08-09 22:15:00 +02:00
John Dai a14b337bab Bug 838954 - Add a newline in .innerHTML serialization of <pre> when first character is a newline. r=smaug 2016-08-08 23:55:00 +02:00
John Dai 3cacba17b7 Bug 838954 - Remove redundant trailing spaces. r=smaug 2016-08-03 19:49:00 +02:00
Thomas Wisniewski 1fbaa831cc Bug 826619 - Remove Canvas mozFillRule. r=mrbkap r=bas 2016-08-04 15:05:50 -04:00
Carsten "Tomcat" Book 4f6b9572f5 Merge mozilla-central to mozilla-inbound 2016-08-10 16:02:57 +02:00
Nicolas Silva be105fa438 Bug 1292870 - Record/replay clips and transforms properly in CanvasRenderingContext2D. r=Bas 2016-08-10 14:30:51 +02:00
Nicolas Silva 70353ca51d Bug 1292545 - Don't optimize away the canvas copy if clips are applied. r=ethlin 2016-08-10 14:30:48 +02:00
Nicolas Silva bb3580a385 Bug 1293693 - FillRect covering the entire canvas can skip copying the previous frame if the composite op is SOURCE, but not DEST_OUT. r=ethlin 2016-08-10 14:30:45 +02:00
Jonathan Kingston cf5d21b1f8 Bug 1173199 - Create preference to disable MathML. r=huseby, r=smaug
If the mathml.disabled preference is true, treat <math> and other MathML
elements as generic XML elements.

This patch disables the rendering code of MathML however preserves the
namespace so to reduce the breakage.

Original patch by: Kathy Brade <brade@pearlcrescent.com>

MozReview-Commit-ID: A2f2Q2b4eqR

--HG--
extra : rebase_source : 63bf465fa6ff62610d7ed16002a7d479b87df393
2016-06-28 15:24:48 +01:00
Ethan Lin c0b8ab7939 Bug 1287652 - Add crash test case. r=mchang
--HG--
extra : rebase_source : de4ebae4ca2e7981c1ad21e1ce7834df2dc81d89
2016-07-20 19:10:00 -04:00
Wes Kocher 5cc2b19359 Backed out 2 changesets (bug 1260599) for winxp mochitest gl bustage
Backed out changeset 4e066314768c (bug 1260599)
Backed out changeset d50028181044 (bug 1260599)
2016-07-28 10:53:22 -07:00
Lee Salzman 99a26ab433 Bug 1284578 - add crashtest. r=me 2016-07-28 13:38:50 -04:00
Lee Salzman c316de06c2 Bug 1284356 - add crashtest. r=me 2016-07-28 13:34:28 -04:00
Sebastian Hengst 5e128b818f Backed out changeset 41a51d368f38 (bug 1285036) for failing test browser_net_copy_as_curl.js. r=backout 2016-07-28 18:13:43 +02:00
Sebastian Hengst 8c31962656 Backed out changeset de078c2e0991 (bug 1285036) 2016-07-28 18:13:17 +02:00
Sebastian Hengst e6b4c7693b Backed out changeset 6e6d55b02d19 (bug 1285036) 2016-07-28 18:13:13 +02:00
Brad Lassey c99449c15a bug 1289670 - Show plugin activation icon when navigator.mimetypes is queried r=mrbkap 2016-07-27 17:45:48 -04:00
Carsten "Tomcat" Book 0026e79c41 Merge mozilla-central to mozilla-inbound 2016-07-28 17:44:09 +02:00
Carsten "Tomcat" Book 37be51f16a merge mozilla-inbound to mozilla-central a=merge 2016-07-28 17:43:03 +02:00
Carsten "Tomcat" Book e8726fe213 Backed out changeset d45c9f5c4bc8 (bug 1281223) for bustage on a CLOSED TREE 2016-07-28 13:35:02 +02:00
Cervantes Yu b7b5f41252 Bug 1281223 - Debug instrumentation for capturing accidental destruction of the ContentChild instance. r=billm
MozReview-Commit-ID: 5LozIBYXLeO

--HG--
extra : rebase_source : 512e6cde2a66fb12db9fe7a8abc099672e0f5dfe
2016-07-28 19:17:04 +08:00
Paul Adenot b4146d6b6d Bug 1289678 - Fix warning as errors on a CLOSED TREE. 2016-07-28 13:17:46 +02:00
Jessica Jong 67751356ee Bug 1289272 - Simplify the computation of step values for input type=date. r=smaug
--HG--
extra : rebase_source : 24bf85cff09e6ace2806778e9e5409756a598e57
2016-07-28 02:44:00 -04:00
Iris Hsiao f9707fb68a Backed out changeset 48d06bcb9c65 (bug 1273635) for Mochitest failures 2016-07-28 14:25:47 +08:00
Paul Adenot 0cb3352625 Bug 1289678 - Don't count audio stream creation failures when retrying on Telemetry. r=kinetik
When failing to create an audio stream, we fallback to a SystemClockDriver
marked as being a "fallback driver". When failing again to open an audio stream
after re-trying, we can check whether we came from a fallback driver, and not
report the failure again to telemetry.

MozReview-Commit-ID: FAdQ0pCtC3m
2016-07-27 15:18:17 +02:00
JW Wang 8e6ae76d98 Bug 1289334 - HTMLMediaElement::ResetConnectionState() should shut down the decoder. r=cpearce
MozReview-Commit-ID: 7IZ2Y4Da7xZ

--HG--
extra : rebase_source : 492b0caa52fca17d2c399c2f0e2c426c6f55872f
2016-07-26 16:37:45 +08:00
JW Wang a2a7e29ce7 Bug 1289301 - Remove the call to Shutdown() from MediaDecoder::NetworkError(). r=cpearce
MozReview-Commit-ID: EuDKW2KZQ9n

--HG--
extra : rebase_source : 7330327d6194a6fa45905d1ff52d258e58b96a4b
2016-07-26 14:33:16 +08:00
JW Wang e92dafa46f Bug 1289296 - Assert |!IsShutdown()| in MediaDecoder::NetworkError(). r=kaku
MozReview-Commit-ID: HL8piKSPU1B

--HG--
extra : rebase_source : ae6aa90016c734646aec7a1828dfcd02ba92cc96
2016-07-26 14:28:29 +08:00
JW Wang 4d7a72bc94 Bug 1289295 - Remove the call to Shutdown() from MediaDecoder::DecodeError(). r=cpearce
MozReview-Commit-ID: DcpaEFEsaWD

--HG--
extra : rebase_source : fd63ff2faa79911b9ccfeed55d9e7348674ed1dc
2016-07-26 14:18:47 +08:00
Daniel Holbert 6456eee1ba Bug 1288228 part 3: Add regression mochitest for this bug. r=jwatt
MozReview-Commit-ID: DOqPoTLU1MZ

--HG--
extra : rebase_source : cae10215a12c362317c5d4751e15724807b8c272
2016-07-27 16:14:24 -07:00
Ethan Lin 6ab3df37e7 Bug 1260599 - Change EXT_disjoint_timer_query mochitest status. r=mtseng
--HG--
extra : rebase_source : 1f2e1e83477d7baf8d35eafe342090a38c8eaef0
2016-07-26 12:51:32 +08:00
Ethan Lin 29ace485e1 Bug 1260599 - Enable EXT_disjoint_timer_query extension on ANGLE. r=jgilbert
--HG--
extra : rebase_source : debccc5664b65f568f3cb82f6434108bb9092045
2016-07-26 12:51:32 +08:00
Tim Taubert 77edbd02e0 Bug 1289330 - Check for success when calling ToKeyAlgorithm() r=bz 2016-07-28 10:21:23 +02:00
Sebastian Hengst f140568d4d Bug 1242165 - Disable another conformance/typedarrays webgl test due to spec changes to fix failing webgl tests (and requested by evilpie on IRC). r=me 2016-07-28 10:06:33 +02:00
Christoph Kerschbaumer caedb13ef1 Bug 1286472: Replace owner with triggeringPrincipal within docshell. r=bz 2016-07-28 09:20:41 +02:00
Xidorn Quan 132b526f3a Bug 991899 part 3 - Disable prefixed PointerLock API by default. r=smaug
Given that Blink has removed prefixed PointerLock API for quite a while
without receiving compatibility issue, I'd suggest we try dropping the
prefixed version directly.

We will either pref the prefixed API on if we see enough compatibility
issue, or remove the whole bunch of prefixed PointerLock API after the
unprefixed API reaches release channel without issues.

MozReview-Commit-ID: ACC69nqSBiH

--HG--
extra : source : 22791c53b6a94c3de4eb7f38823afce89b0419e4
2016-07-28 17:15:21 +10:00
Xidorn Quan 0aa8c340df Bug 991899 part 2 - Unprefix PointerLock tests. r=smaug
MozReview-Commit-ID: BPAuJWKZgBG

--HG--
extra : source : e8aea995c048039521246d2032a28e3b903c30c5
2016-07-28 17:15:21 +10:00
Xidorn Quan b83b9e7406 Bug 991899 part 1 - Add unprefixed API for PointerLock. r=smaug
MozReview-Commit-ID: 3af2D9IWI1Q

--HG--
extra : source : 527777bea747fb8ab363960e41b0a1ddb26d7749
2016-07-28 17:15:21 +10:00
Chris Peterson ddb3a5addb Bug 1289989 - Remove VS2013 workaround for VP8 test crash. r=cku 2016-07-27 23:52:09 -07:00
Chih-Yi Leu 266cc7eff8 Bug 1282874 - Move addEventListener into the first callback in test_gamepad_connect_events.html. r=qDot 2016-07-27 01:20:00 -04:00
James Cheng 240e465d99 Bug 1288320 - Define each keysystem string as specific identifier instead of placing some.keysystem everywhere. r=cpearce
MozReview-Commit-ID: 1bwPRhMOawu

--HG--
extra : amend_source : 7550352f178c0082484acdd342db05ed0dc02e23
extra : transplant_source : %96%C1%B9%8B%28%B0%96f%8AM%AA%13T%1E%3Bg%98%96%92%C1
2016-07-27 16:07:46 +08:00
Shih-Chiang Chien dde25f3864 Bug 1289292 - Shutdown session info while fail to establish control channel. r=smaug 2016-07-27 18:53:00 -04:00
Xidorn Quan a622a4ba48 Bug 1287706 part 7 - Add support of AddEventListenerOptions.once. r=smaug
MozReview-Commit-ID: BzuhPtNW29u

--HG--
extra : source : edb9d160b5f567c97b307b465f4a575f2210d5d4
2016-07-28 12:00:06 +10:00
Xidorn Quan 55d860ca4a Bug 1287706 part 6 - Separate notifying listener removal to an independent method. r=smaug
MozReview-Commit-ID: EE4fp4eqzqK

--HG--
extra : source : 51a979be13f77f84e69ea202ddb2838612b324c0
2016-07-28 12:00:06 +10:00
Xidorn Quan 54106b71e9 Bug 1287706 part 4 - Unify B2G device-type events to be handled in the same way as others device-type events. r=smaug
MozReview-Commit-ID: JHudlK595CV

--HG--
extra : source : c26fff27b9614817dd38d23f7cd8609f0d41cb58
2016-07-28 12:00:06 +10:00
Xidorn Quan 6ed5e7d57e Bug 1287706 part 3 - Make EventListenerHandler::Listener movable. r=smaug
MozReview-Commit-ID: F86qndZHNxB

--HG--
extra : source : 310aecf4285e01270ab639a4ada66c893e01ae77
2016-07-28 12:00:06 +10:00
Xidorn Quan 707f2d70a0 Bug 1287706 part 2 - Remove useless runtime check of EventListenerManager::Listener. r=smaug
MozReview-Commit-ID: 3XEfeF03Umx

--HG--
extra : source : de7346c106bd2716de7b3ab5068ef6604dd6d826
2016-07-28 12:00:06 +10:00
Xidorn Quan 31f5ebf083 Bug 1287706 part 1 - Make CallbackObjectHolder movable (and actually move-only). r=smaug
So that we can avoid unnecessary refcount changes.

MozReview-Commit-ID: 4Mk9SJTj6AS

--HG--
extra : source : c35643f76ef33b6cdce115c8de0dfae8abccd644
2016-07-28 12:00:06 +10:00
Ben Kelly d6ce89f9c9 Bug 1170543 P4 Don't active service worker until the previous active service worker is idle. r=asuth 2016-07-27 20:36:10 -04:00
Ben Kelly 1a8803ebd5 Bug 1170543 P3 Expose ServiceWorker idle thread state to ServiceWorkerManager. r=asuth 2016-07-27 20:36:10 -04:00
Ben Kelly 23604e56e7 Bug 1170543 P2 Explicitly track the idle KeepAliveToken separately. r=asuth 2016-07-27 20:36:10 -04:00
Ben Kelly 43550b2fa1 Bug 1170543 P1 Create separate KeepAliveTokens for service worker events and script evaluation. r=asuth 2016-07-27 20:36:10 -04:00
Daniel Holbert 9e983e1b6a Bug 1288228 part 2: When a DOMSVGLength is CC'd, remove it from tearoff table and drop its weak ref to wrapped val. r=jwatt
MozReview-Commit-ID: 74YJfLnRYg0

--HG--
extra : rebase_source : 762d182c092f52f4ed433179fcf2de095187565b
2016-07-21 11:11:37 -07:00
Daniel Holbert 543ecd97c3 Bug 1288228 part 1: Move cleanup code from DOMSVGLength destructor into a helper-function. r=jwatt
MozReview-Commit-ID: 8CQCZZP8NUn

--HG--
extra : rebase_source : 48e1311053c477c18af5b45172504ada4f752671
2016-07-21 10:49:38 -07:00
Thomas Wisniewski 16c863c9d6 Bug 1285036 - Part 9: Clean up the XHR send() API endpoints, and how nsIVariants are handled. r=baku
--HG--
extra : rebase_source : 6eb5919d4c4180c55089f0fd6dfcd728dbb52534
2016-07-21 00:36:26 -04:00
Thomas Wisniewski 978c16c644 Bug 1285036 - Part 8: Change XHR open() and related code to follow the spec more closely. r=baku
--HG--
extra : rebase_source : a40634c94d6a259a181028021b780140a7fdbf41
2016-07-20 13:02:36 -04:00
Thomas Wisniewski 468fef78cc Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku
--HG--
extra : rebase_source : 8d3491471156823c0f1c7c7adbcb0024494e13db
2016-07-27 16:03:42 -04:00
bechen f37d302b58 Bug 1281418 - Release and reload the vtt resource when the src attribute of TrackElement changed. r=rillian
MozReview-Commit-ID: B8wdOxP3HId

--HG--
extra : transplant_source : %85%F3R%10%D3h%C8tSN%12%09%B5%12%91%DBT%19t%14
2016-07-21 16:49:24 +08:00
bechen b13de09ea4 Bug 1281418 - Add testcase for changing the src of TrackElement. r=rillian
MozReview-Commit-ID: A7QB9ELEfp3

--HG--
extra : transplant_source : %FE%12%B9%98%847%E2%BF%9E%B8%7D%BDT%E3%7E%F0%90%1E%25i
2016-07-19 17:01:06 +08:00
Ben Kelly c8cef10a01 Bug 1228277 P2 Make skipWaiting() check the evaluating service worker script. r=asuth 2016-07-27 19:09:15 -04:00
Ben Kelly cc9a82558b Bug 1228277 P1 Track service worker scripts during evaluation in ServiceWorkerRegistrationInfo. r=asuth 2016-07-27 19:09:15 -04:00
Olli Pettay 811035a57c Bug 1289900 - DataTransferItem::mCachedFile leaks, r=khuey
--HG--
extra : rebase_source : 610259321f53ef77d9c81039bd30de9e2643e083
2016-07-28 00:37:12 +03:00
Jeff Gilbert 6502268813 Bug 1242165 - Disable conformance/typedarrays/data-view-test due to spec changes. 2016-07-28 00:24:17 +02:00
Geoff Brown 286d6d02fa backout f0d2679582bea4d7d74ea47d4b1f7f458b1bd359 (bug 1287720) for causing Android 4.3 opt mochitest-chrome application timeouts 2016-07-27 15:12:04 -06:00
Bobby Holley 55b3f93f9f Bug 1289624 - Clear servo data when nodes are removed from the tree. r=heycam 2016-07-27 13:34:57 -07:00
Bobby Holley 46c7fed6d0 Bug 1289624 - Switch to UniquePtr for managing ServoNodeData. r=heycam 2016-07-27 13:34:55 -07:00
Emilio Cobos Álvarez 11ac7c1d96 Bug 1288590: Rename nsAttrInfo to mozilla::dom::BorrowedAttrInfo. r=bholley
Unfortunately couldn't add all the debug checks that I'd want, since we can't
assert that is not safe to run script in quite a few places :(

MozReview-Commit-ID: 8m3Wm1WntZs
2016-07-27 11:18:33 -07:00
Emilio Cobos Álvarez ba64988f2f Bug 1288590: Use GetAttrInfoAt in nsXBLPrototypeBinding.cpp. r=bholley
MozReview-Commit-ID: EDqajfBFPra
2016-07-27 11:18:33 -07:00
Emilio Cobos Álvarez 16ed085072 Bug 1288590: Use GetAttrInfoAt in nsXBLBinding.cpp. r=bholley
MozReview-Commit-ID: Bm29ogNHXwR
2016-07-27 11:18:33 -07:00
Emilio Cobos Álvarez 5b1b25967b Bug 1288590: Use GetAttrInfoAt in nsXMLContentSerializer.cpp. r=bholley
MozReview-Commit-ID: 1mOIlXK8O5a
2016-07-27 11:18:33 -07:00
Emilio Cobos Álvarez 1f021d7738 Bug 1288590: Use GetAttrInfoAt in SVGUseElement.cpp. r=bholley
MozReview-Commit-ID: BXdOCztAm2k
2016-07-27 11:18:33 -07:00
Emilio Cobos Álvarez b3d22350d1 Bug 1288590: Use GetAttrInfoAt in nsXHTMLContentSerializer.cpp. r=bholley
MozReview-Commit-ID: 5f5RI9FEJse
2016-07-27 11:18:33 -07:00
Emilio Cobos Álvarez 28ee86f5de Bug 1288590: Use GetAttrInfoAt in nsContentUtils.cpp. r=bholley
MozReview-Commit-ID: 844XRlHiI7Y
2016-07-27 11:18:33 -07:00
Emilio Cobos Álvarez e54d13faa8 Bug 1288590: Add a function to get attribute info from an Element by index. r=bholley
MozReview-Commit-ID: AjgzhP3gwgV
2016-07-27 11:18:33 -07:00
Eric Rahm b6659dcf84 Bug 1289614 - Remove warnings from TabChild::{SetFocus,Blur}. r=smaug 2016-07-27 10:44:25 -07:00
Andrew McCreight e806f57820 Bug 1289136 - Fifth argument to XPCConvert::NativeInterface2JSObject() is always null. r=gabor 2016-07-27 10:11:40 -07:00
Kyle Machulis 6b02d1de30 Bug 1289315 - Tests for Iterable<> Union Types in WebIDL Interfaces; r=bz
MozReview-Commit-ID: 1co6k6YOPUI
2016-07-27 09:48:59 -07:00
Jonathan Chan bd2261bd38 Bug 1289315 - Fix union types for maplike/setlike/iterable in WebIDL parser; r=qdot
MozReview-Commit-ID: Bmn0CPfwUXZ
2016-07-27 09:48:59 -07:00
Bobby Holley 64639661c1 Bug 1289620 - Hook up initial styling. r=heycam
Aside from the parser-side hacks, this should subsume all the current scattered
logic in the stylo tree to handle initial styling.
2016-07-27 09:44:25 -07:00
John Dai 0ff1457b76 Bug 1274505 - Remove SVG-based custom element support. r=wchen
--HG--
extra : rebase_source : a2caaa0fc1a49ca989dafc9e73c55ad752b83752
2016-07-26 00:35:00 -04:00
Boris Zbarsky fb2eb08b4d Bug 1289179. IDBRequest::SetResultCallback should expose its script owner to active JS before entering its compartment. r=baku 2016-07-27 11:05:36 -04:00
Boris Zbarsky 3f84f0b441 Bug 1289129. When setting up an AutoJSAPI with a global, make sure to expose that global to active JS. r=mccr8 2016-07-27 11:05:36 -04:00
Boris Zbarsky 8617edc967 Bug 1288791 part 3. Ensure that FindAssociatedGlobal never returns a gray global. r=bkelly 2016-07-27 11:05:36 -04:00
Boris Zbarsky 5b840d9b96 Bug 1288791 part 2. Rename WrapNativeParent to FindAssociatedGlobal and update it to actually do that. r=bkelly 2016-07-27 11:05:36 -04:00
Boris Zbarsky 8e34004cf1 Bug 1288791 part 1. Rename the GetParentObject template bits to make it clearer what they're really doing: finding the associated global for an object's native. r=bkelly 2016-07-27 11:05:36 -04:00
Boris Zbarsky f65cc2b16c Bug 1289467 part 4. Make ForwardDeclarationBuilder error out if asked to forward-declare a templated type instead of spitting out nonsense that doesn't compile. r=qdot 2016-07-27 11:05:36 -04:00
Boris Zbarsky d39f976400 Bug 1289467 part 3. Skip forward-declaring types used by methods/attributes on maplikes/setlikes/iterables that we auto-generate an implementation for. r=qdot 2016-07-27 11:05:36 -04:00
Boris Zbarsky f9765094cb Bug 1289467 part 2. Skip example codegen for methods/attributes on maplikes/setlikes/iterables that we auto-generate an implementation for. r=qdot 2016-07-27 11:05:35 -04:00
Boris Zbarsky f7ef79ba7f Bug 1289467 part 1. Example codegen generation should print out which files it generated, so it's easy to examine them. r=qdot 2016-07-27 11:05:35 -04:00
Nicolas Silva a4ee782267 Bug 1289380 - Simplify PersistentBufferProviderShared. r=edwin 2016-07-27 16:50:20 +02:00
Carsten "Tomcat" Book bbf6621f7e Merge mozilla-central to mozilla-inbound 2016-07-27 16:38:35 +02:00
Carsten "Tomcat" Book 7293066753 merge mozilla-inbound to mozilla-central a=merge 2016-07-27 16:35:44 +02:00
Carsten "Tomcat" Book dbdbb9ddab merge fx-team to mozilla-central a=merge 2016-07-27 16:33:09 +02:00
Ben Kelly 6ce45a87c8 Bug 1289658 Make ExtendableMessageEvent.waitUntil() hold the service worker alive. r=asuth 2016-07-27 10:32:12 -04:00
Geoff Brown 7f273d755a Bug 1287720 - Enable dom/browser-element mochitest-chrome tests on Android; r=me 2016-07-27 07:47:56 -06:00