Commit Graph
16 Commits
Author SHA1 Message Date
Gerald Squelart 4807caf4cf Bug 1403753 - Added missing #includes in some dom/media files - r=SingingTree
MozReview-Commit-ID: I5c81uRGkyi
2017-09-28 11:34:05 +13:00
Yoshi Huang a0632ce656 Bug 1376971 - Part 4: query loadingprincipal in HTMLMediaElement. r=baku
Query loadingprincipal attribute on the media part.
2017-09-26 12:41:27 +08:00
JW Wang fed064d441 Bug 1401461. P2 - don't call mChannelStatistics.AddBytes() if the data is from an old channel. r=gerald
MozReview-Commit-ID: GIVwoGpo43R
2017-09-20 14:41:17 +08:00
JW Wang 303b81f559 Bug 1401461. P1 - protect access to ChannelMediaResource::Listener::mResource. r=gerald
MozReview-Commit-ID: 6G1x7cXNvAq
2017-09-20 14:37:18 +08:00
Phil Ringnalda f65ca21a92 Backed out 2 changesets (bug 1401461) for being the wrong patches
Backed out changeset 20a0000f97bc (bug 1401461)
Backed out changeset e3c36a62b5b1 (bug 1401461)

MozReview-Commit-ID: BJeIuoGJwjb
2017-09-21 20:29:39 -07:00
JW Wang a9dbcfe8e3 Bug 1401461. P2 - don't call mChannelStatistics.AddBytes() if the data is from an old channel. r=gerald
MozReview-Commit-ID: GIVwoGpo43R
2017-09-20 14:41:17 +08:00
JW Wang 122dc93385 Bug 1401461. P1 - protect access to ChannelMediaResource::Listener::mResource. r=gerald
MozReview-Commit-ID: 6G1x7cXNvAq
2017-09-20 14:37:18 +08:00
Sebastian Hengst e0e40924e5 Backed out changeset 0ceb7e5789f4 (bug 1401461) for leaking in mochitest run on Windows 7 debug. r=backout 2017-09-21 11:16:40 +02:00
Sebastian Hengst b98735e310 Backed out changeset ddfa978c27f7 (bug 1401461) 2017-09-21 11:15:57 +02:00
JW Wang 7164a1e893 Bug 1401461. P2 - don't call mChannelStatistics.AddBytes() if the data is from an old channel. r=gerald
MozReview-Commit-ID: GIVwoGpo43R
2017-09-20 14:41:17 +08:00
JW Wang cd9b0b6927 Bug 1401461. P1 - remove ChannelMediaResource::Listener::Revoke(). r=gerald
See comment 0 for the rationale. We check |aRequest != mResource->mChannel|
to know if a new channel is being loaded and the call should be aborted.

MozReview-Commit-ID: 6G1x7cXNvAq
2017-09-20 14:37:18 +08:00
JW Wang 09a882ebd4 Bug 1401460 - update principals in OnStartRequest(). r=gerald
See comment 0 for the rationale.
The principal will not change after OnStartRequest().

MozReview-Commit-ID: K2HyWBBzGmC
2017-09-20 14:23:59 +08:00
JW Wang a3ee1e12ce Bug 1399760. P3 - keep ID of the loading channel so we check whether the data callback is from an old channel. r=gerald
The load ID works as follows:
1. A load ID is passed to MediaCacheStream::NotifyDataStarted()
   when loading a new channel.
2. Each MediaCacheStream::NotifyDataReceived() call is also associated
   with a load ID from which the data is received.
3. If |mLoadID != aLoadID| tests to be true in NotifyDataReceived(), it means
   the data is from an old channel and should be discarded.
4. MediaCache::Update() reset mLoadID for the stream before calling
   CacheClientSeek() to prevent data from the old channel from being
   stored to the wrong position.

MozReview-Commit-ID: 9kBoublLlln
2017-09-20 11:41:08 +08:00
JW Wang 24b8a46521 Bug 1399760. P2 - ensure mCacheStream.NotifyDataStarted() is always called in OnStartRequest(). r=gerald
This keeps us in a good shape that NotifyDataStarted() is always called
before subsequent NotifyDataReceived() calls. This is also required by P3
where we need to set the loadID before NotifyDataReceived().

MozReview-Commit-ID: 9TPodkMM4EH
2017-09-20 11:30:03 +08:00
JW Wang 0bff581649 Bug 1399760. P1 - remove the CopySegmentToCache() member function. r=gerald
MozReview-Commit-ID: 3D9RiK3PJUf
2017-09-20 11:12:48 +08:00
Andrea Marchesini d17869c26b Bug 1388125 - Move ChannelMediaResource to separate files, r=jya 2017-09-18 13:33:49 +02:00