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

232 Коммитов

Автор SHA1 Сообщение Дата
JW Wang a920cf49b3 Bug 1418219 - merge NotifyDataLength() and NotifyDataStarted(). r=bechen,gerald
MozReview-Commit-ID: g857eQ4YVK

--HG--
extra : rebase_source : 45e71baa300772442bba43f39eacefb571a523c9
extra : intermediate-source : d674e5a676212dae59b12e8173802be40de77bf7
extra : source : 21f73b0a0e59b7575794b317719abe7a39a984e0
2017-11-16 12:05:19 +08:00
JW Wang c5401dfc03 Bug 1418213 - always run MediaCacheStream::NotifyDataReceived() off the main thread. r=bechen,gerald
MozReview-Commit-ID: GBQ0lEf8rVI

--HG--
extra : rebase_source : cbcd69dd220c06e2e1cc0d12e33d23ce2f4e21ef
extra : intermediate-source : 9e304fc5f5ee0b4d44f0e54a4cb2a6a9fe90979d
extra : source : 1b29a7cde3c40ba3a35ee19eee63ad68e6d12176
2017-11-15 17:56:10 +08:00
JW Wang b3feb3794f Bug 1415090. P5 - remove MediaCacheStream::NotifyChannelRecreated(). r=bechen,gerald
NotifyDataEnded() runs off the main thread which might set mChannelEnded
wrongly after NotifyChannelRecreated reset it on the main thread.

We should reset the flags in NotifyDataStarted() which indicate a new load has begun.

MozReview-Commit-ID: Gi6PFXwMJqc

--HG--
extra : rebase_source : 85bb2c25a55cce4b3c3f023bf4c02fe5d1de7552
extra : source : 2f8c5518bf615f9190f87032568fc53037bc6fc1
2017-11-16 14:50:49 +08:00
JW Wang a2fd07c6c9 Bug 1415090. P4 - don't modify mResourceID off the main thread. r=bechen,gerald
There are some works to do when we allow a stream whose download ends abnormally
to continue sharing the resource:

1. Abort Read() when download error happens. We might still have a chance to
   get all the data successfully. However, it doesn't really matter since
   the stream data is incomplete and we will encounter decode errors sooner
   or later.
2. Update() needs to check mChannelEnded since an ended stream will not
   download data needed by other streams.

MozReview-Commit-ID: LGCecQ5rpzq

--HG--
extra : rebase_source : 17a91a1cfd145344c3c0a29b80665cb99ce20746
extra : source : 0947c12b035acc9fba02e89dc87b3a17f84cf2e5
2017-11-15 16:45:57 +08:00
JW Wang 187b5299fb Bug 1415090. P3 - run MediaCacheStream::NotifyDataEnded() off the main thread. r=bechen,gerald
Since NotifyDataEnded() run its code asynchronously, it is possible that a new
channel is created and NotifyDataStarted() is called before NotifyDataEndedInternal()
has a chance to run. We check the load ID to exit the function if necessary.

We also need to fix data races when running NotifyDataEndedInternal() off the
main thread in next patches.

MozReview-Commit-ID: IIAc7dxHike

--HG--
extra : rebase_source : 58e45f924058a986b8d86bfaeff2791ee8a5f4bc
extra : intermediate-source : b2a7fa7514723e214b8da40cfc0ec40b1de9a345
extra : source : 1ff93dc8f8c451b804133c780cedef2ee3d348e5
2017-11-10 15:06:39 +08:00
JW Wang 54de8d43d3 Bug 1415090. P2 - move the "reopen on error" code from ChannelMediaResource::OnStopRequest() to MediaCacheStream::NotifyDataEnded(). r=bechen,gerald
MozReview-Commit-ID: BA1tSk6ZqPS

--HG--
extra : rebase_source : 7434d1052be71bdb3cd24f430081fe57e86c4c6d
extra : intermediate-source : eef8f69c9c0f6e50d20ae9c7e46396d597eef425
extra : source : 95f24d107ce05b1b69e5a5f269c50670c7a31bf1
2017-11-10 14:40:22 +08:00
JW Wang 5a99c6b197 Bug 1417774 - remove unused MediaResource::Tell(). r=bechen
MozReview-Commit-ID: 3qlP4sSh9kM

--HG--
extra : rebase_source : 4002fec6f8c43abb640f9206cd715f3ecb02b373
2017-11-15 17:18:52 +08:00
JW Wang ecbca6c33e Bug 1416643. P2 - always access mDidNotifyDataEnded within the lock. r=bechen,gerald
MozReview-Commit-ID: 3us659lCEZE

--HG--
extra : rebase_source : 9deace7a2e83ae42132f593bb7c638c5e2977638
2017-11-15 15:24:26 +08:00
JW Wang b88c401e49 Bug 1416643. P1 - remove checks for mDidNotifyDataEnded/mNotifyDataEndedStatus from IsAvailableForSharing(). r=bechen,gerald
We will need to modify these members off the main thead while IsAvailableForSharing()
is a main thread only function.

InitAsClone() will return an error if the original stream ends abnormally.

MozReview-Commit-ID: 1qRyboca2YZ

--HG--
extra : rebase_source : 4617a911a1de052833bd0085b883a8ae4d639c7d
2017-11-15 15:14:21 +08:00
JW Wang 3f7e23ff46 Bug 1416085 - use Span<> to replace low level pointer arithmetic in Read(). r=bechen,gerald
MozReview-Commit-ID: 6l7cG2Xn0R7

--HG--
extra : rebase_source : ce80c480f03cfbe170a7c5340cbac526aa4f7a23
extra : intermediate-source : f02f1542258668ea47203a51f807ece6429f0ace
extra : source : 28c38703128e47ee7808e68550d7fca9b2558d0a
2017-11-03 16:56:58 +08:00
JW Wang 406e41ed03 Bug 1412737. P2 - Read() should return only when enough bytes are read or EOS/error is encountered. r=bechen,gerald
This will remove the need to retry reading for the callers.

Note since data is usually downloaded faster than being consumed, we don't
benefit much in reading data from a partial block in the memory. Chances are
we still need to wait for the block to commit to the cache so the reader can
continue. So we change the code to always read data from the cache or from
the last block when it is completed (reaching EOS).

This change allows up to somewhat optimize NotifyDataReceived() which won't
have to wake up readers if no blocks are committed to the cache.

MozReview-Commit-ID: KwgNSOawuAE

--HG--
extra : rebase_source : af29b9f5d8b7ee1ed41bda5d23e1e94209e323b7
extra : intermediate-source : 863cb113d20b9cc1222de001bacbefa7eb8ac5c1
extra : source : 09683d9ffe477c27164769dc93e9eb9ee0af21bd
2017-11-01 16:53:29 +08:00
JW Wang d0f5f6b094 Bug 1412737. P1 - improve error handling. r=bechen,gerald
MozReview-Commit-ID: 776P80x63y8

--HG--
extra : rebase_source : 4737175f074e546d8e667f99829079855f55f119
extra : intermediate-source : 610e5fa2452c58f2e6d4a973210342c6be71d90d
extra : source : 719772d4b77154b419e501eabbf466a679325720
2017-10-31 14:54:13 +08:00
JW Wang 1e7878c69a Bug 1415069 - Add a member to ChannelMediaResource to remember seekability of the channel. r=bechen,gerald
So it doesn't need to call mCacheStream.IsTransportSeekable() which needs to
take the lock and might block the main thread.

MozReview-Commit-ID: 99QVcSxzjCz

--HG--
extra : rebase_source : be71b065ce0334987efbfb67a5cf010ab0373d80
extra : source : 2de3f0baf1475e8ae3228a33cf4cf139cf923c37
2017-11-07 14:26:10 +08:00
JW Wang c51610e0e4 Bug 1415766. P2 - move Seek() to private and tighten up some assertions. r=bechen,gerald
MozReview-Commit-ID: BBsXqKUrOi1

--HG--
extra : rebase_source : 1b785f50254ba824037b983896fc40e91eff801a
extra : intermediate-source : 6971ed66e78c4e1956bf0e382a04c1c8816dbaf8
extra : source : 6590c3f4691e9730858689839a5eb7b7143ceafb
2017-11-02 14:46:24 +08:00
JW Wang cd5164d38d Bug 1415766. P1 - we never pass anything other than NS_SEEK_SET to Seek(). r=bechen,gerald
MozReview-Commit-ID: AgvapCwwSpr

--HG--
extra : rebase_source : 2ba05b44f228c3d9a9440202c024abbd5487282f
extra : intermediate-source : f2ec0fec7c544171e7567beed322349dfb8e59a8
extra : source : 8e34a87b250f800897a761d2ccd408959007d02b
2017-11-02 14:26:24 +08:00
JW Wang f9f14101f3 Bug 1415397 - use Span<> to replace low level pointer arithmetic in ReadFromCache(). r=bechen,gerald
MozReview-Commit-ID: HH6KXtMfSIJ

--HG--
extra : rebase_source : 4d08fa14e2e218ad3e6b45ef240f3ced75321bd4
extra : intermediate-source : 6c2577bd71024ad031a86836c9c604bfef726b5a
extra : source : 1f0e76b45b7d89bcc10d59e302fe4b08e87cc96c
2017-11-02 11:36:56 +08:00
Sebastian Hengst c99d035f00 Backed out changeset 3e95c596ad5b (bug 1415397) because backed out (bug 1412737 depended on it. a=backout on a CLOSED TREE 2017-11-08 19:31:20 +02:00
Narcis Beleuzu b3eba51148 Backed out 4 changesets (bug 1412737)for frequent Windows talos-g4 timeouts. a=RyanVM
Backed out changeset 13b3569d56c4 (bug 1412737)
Backed out changeset b8ae4f1e89c9 (bug 1412737)
Backed out changeset dd35b8813ca1 (bug 1412737)
Backed out changeset 29e511fbcd62 (bug 1412737)
2017-11-08 18:52:15 +02:00
JW Wang f53f02fb3e Bug 1415397 - use Span<> to replace low level pointer arithmetic in ReadFromCache(). r=bechen,gerald
MozReview-Commit-ID: HH6KXtMfSIJ

--HG--
extra : rebase_source : a6fe803e3e89a0f89c225e2415a233a945a6a716
extra : intermediate-source : 8c37409d77f675c89fd9b2fb276aa80c57d4eb7f
extra : source : 1f0e76b45b7d89bcc10d59e302fe4b08e87cc96c
2017-11-02 11:36:56 +08:00
JW Wang a3d7fa09ea Bug 1412737. P4 - wake up readers only when we have blocks committed to the cache. r=bechen,gerald
Per P2 changes, a reader will always read data from the cache or from the last
block in the memory. NotifyDataReceived() will be slightly more efficient
if we don't wake up readers unnecessarily when there are no new blocks committed
to the cache.

MozReview-Commit-ID: 3UWHbvtEUmu

--HG--
extra : rebase_source : d8c97d275ca5df7deb56447ef55092ac3d110e7f
extra : source : 8acc253fb322c4b6defb03bbc5489b5b1877f375
2017-11-06 14:17:35 +08:00
JW Wang f851f90063 Bug 1412737. P2 - Read() should return only when enough bytes are read or EOS/error is encountered. r=bechen,gerald
This will remove the need to retry reading for the callers.

Note since data is usually downloaded faster than being consumed, we don't
benefit much in reading data from a partial block in the memory. Chances are
we still need to wait for the block to commit to the cache so the reader can
continue. So we change the code to always read data from the cache or from
the last block when it is completed (reaching EOS).

This change allows up to somewhat optimize NotifyDataReceived() which won't
have to wake up readers if no blocks are committed to the cache.

MozReview-Commit-ID: KwgNSOawuAE

--HG--
extra : rebase_source : dcf61b2c43a7c030a0265979d75d18c63a3c41d0
extra : intermediate-source : 62e5895d3684b6fd00df7703156af5ea1f08bef3
extra : source : 09683d9ffe477c27164769dc93e9eb9ee0af21bd
2017-11-01 16:53:29 +08:00
JW Wang 7b251a2f79 Bug 1412737. P1 - improve error handling. r=bechen,gerald
MozReview-Commit-ID: 776P80x63y8

--HG--
extra : rebase_source : f2384a13f09e3606a7ee705ad3400afd1de738ba
extra : intermediate-source : e57ec5337931951f45b8a922c603e96088cf6ef9
extra : source : 719772d4b77154b419e501eabbf466a679325720
2017-10-31 14:54:13 +08:00
JW Wang 605a0bdc18 Bug 1414709 - use Span<> to replace low level pointer arithmetic in MediaCacheStream::NotifyDataReceived(). r=bechen,gerald
MozReview-Commit-ID: KIwws0qiCVK

--HG--
extra : rebase_source : 3e50c2047703b01f006cfec65c4b0667b47906af
extra : intermediate-source : fbb2cf22b5028b57762ce7e7e9f56526ad5e9727
extra : source : 4bfb8f2ed2afb6f74cae0caf34dd34b0a818a45a
2017-11-01 23:20:11 +08:00
JW Wang 8adc7a5bd8 Bug 1375772 - don't evict the block which is in the current cached range. r=cpearce
Evicting the block will result in a gap in the current cached range starting
from mStreamOffset to mChannelOffset. Then we have
|GetCachedDataEndInternal(mStreamOffset) < mChannelOffset| and MediaCache
will open a new channel to fill the gap which is bad.

This is exactly the issue described in bug 1347174 where we limit the readahead
size to prevent the problem above from happening.

However bug 1347174 is indeed a workaround instead of a fix. It works around
the issue by suspending the download before the cache is full and has to evict
some blocks to allow new data to come in.

We should let MediaCache suspend the channel if it is full or evict played
blocks if possible.

MozReview-Commit-ID: HuUsZLdHGuh

--HG--
extra : rebase_source : cdd9bdb5bc63589550bafd49f6e313244037d8dd
extra : intermediate-source : 90aaf942dfbfdff98ef3df412ed49141f3f50e55
extra : source : fc8bc1c456677b92884c80ecfe4d5074a610f81a
2017-11-02 18:12:20 +08:00
JW Wang 0dc60230e2 Bug 1411808. P3 - InitAsClone() shouldn't call |mMediaCache->OpenStream(this)| until initialization is done. r=gerald
We don't want MediaCache to use a half-initialized stream.

MozReview-Commit-ID: LjPLOYwy0Wd

--HG--
extra : rebase_source : a52a23fc6dce2a87ef2829254dcabe8176b2c28c
extra : intermediate-source : eb9c3d068ff4c3496831d80398012daebe8a5d52
extra : source : d980eb79f7a5219651ef710630cdf6dc3bd96195
2017-10-26 11:13:38 +08:00
JW Wang 68005e8e16 Bug 1411808. P2 - don't call mClient->IsSuspended() off the main thread in Update(). r=gerald
By mirroring the suspend status of the client, Update() is able to make
decisions on reading streams without calling mClient->IsSuspended().

MozReview-Commit-ID: G4gS2VGiMjj

--HG--
extra : rebase_source : bcdc1010fce47965c999df61666983c87e189670
extra : intermediate-source : 9dd8cfb80e29677e8cae866b2326dfb0aec5b6ae
extra : source : d20f640bf99478c9ba581e4979ec8091ef94e0f3
2017-10-24 11:25:41 +08:00
JW Wang 8b79428eb0 Bug 1411808. P1 - run Update() loops off the main thread. r=gerald
Note we will fix bugs required to run Update() off the main thread
in the following patches.

MozReview-Commit-ID: CYwT5kDjD9R

--HG--
extra : rebase_source : edef59353b5f56d5aecb6d58f5cc2a8dfb09c317
extra : intermediate-source : 995a34fb6af54d3f4ad2de479d7777860a957f98
extra : source : 8d86a14f877cf83584cf1e57020568037a35154a
2017-10-23 17:12:07 +08:00
JW Wang df96a8bd16 Bug 1412205 - MediaCacheStream::Read() should update mStreamOffset before releasing the monitor. r=gerald
MediaCache::Update() depends on mStreamOffset to make decision whether to
read streams or not. It is important to update mStreamOffset before releasing
the monitor so Update() won't make wrong decisions based on the stale value.

MozReview-Commit-ID: 40jUk5xd6GR

--HG--
extra : rebase_source : 40f4a64d0b66886b3a12c374f1bda874f8853750
extra : intermediate-source : 20ad1ad39a1e0c128ffd16e3fa669c9db1bb9c98
extra : source : 04f82ee89d93d5c008e51746c9686b4298e5f44f
2017-10-27 13:56:46 +08:00
JW Wang 0f871ec228 Bug 1411803 - ensure MediaCache is deleted on the main thread. r=gerald
MozReview-Commit-ID: 4JzTyyPF1uT

--HG--
extra : rebase_source : 5ea6f6636c531a59dd303809c2124757aed6b5d4
extra : source : ef39a9de8d4e36776b97277e74007ceed86e3c89
2017-10-24 10:32:47 +08:00
JW Wang c94f001983 Bug 1412181 - add a proxy to be registered with ClearOnShutdown() to clear MediaCache::sThread. r=gerald
MozReview-Commit-ID: 9SXSKTP9Twb

--HG--
extra : rebase_source : 1cec3d8e307c980e2634fdc43ff9333833cb5547
extra : source : 2fa3d4a310a6e5765ee51cd3115013434d4662e5
2017-10-27 11:38:53 +08:00
JW Wang 48defae102 Bug 1411805 - Update() needs to read some prefs off the main thread. r=gerald
MediaPrefs is our friend.

MozReview-Commit-ID: 3lz5oqUR9R9

--HG--
extra : rebase_source : 31efaf14c29182b00451705b189772aac23acd34
extra : source : 7e9c68fd5fa241fc1d015b352935c2efd0daa1e8
2017-10-24 10:13:30 +08:00
JW Wang 8715833c55 Bug 1411504. P7 - don't change mChannelOffset in MediaCache::Update(). r=gerald
This is a fix to P3.

Since seek is performed asynchronously by CacheClientSeek(), it is possible
for OnStopRequest() to come before Seek(). Changing mChannelOffset will
cause MediaCacheStream::NotifyDataEnded() to update mStreamLength incorrectly.

mChannelOffset should only be changed in response to channel activities such
as NotifyDataStarted() and NotifyDataReceived().

However, if MediaCache::Update() calls CacheClientSeek() without updating
mChannelOffset, next Update() might make a wrong decision and call CacheClientSeek()
again which is bad. So we add a member mSeekTarget to track if there is a pending
seek on which the stream reading decisions will be made.

MozReview-Commit-ID: VWP0vdlEYM

--HG--
extra : rebase_source : ea0d85bcbcc5d14f1554ebff3d10981a5b17e18a
extra : source : 339b9323b583849ac88e39da19670f6b26772877
2017-10-25 09:37:58 +08:00
JW Wang 8bd1a52d6a Bug 1411504. P6 - acquire the lock for the entire scope of Update(). r=gerald
For it is not safe to access mStreams without the lock off the main thread.

MozReview-Commit-ID: DjVlhxgjVj5

--HG--
extra : rebase_source : b584fe59712430acd4528e6b6cd01ae86dc5761f
extra : source : d7fd550934bfe6967638e42acb076882611792dd
2017-10-24 09:04:06 +08:00
JW Wang a1a46cc301 Bug 1411504. P5 - handle CacheClientNotifySuspendedStatusChanged/QueueSuspendedStatusUpdate off the main thread. r=gerald
MozReview-Commit-ID: 7Wc1tvd3S6x

--HG--
extra : rebase_source : ac9c1da29b4b395c75ced50efc3210f90add4710
extra : source : f4c901cfc7a7510f4ff161406e35d60229e86b98
2017-10-24 10:00:23 +08:00
JW Wang 1196be8421 Bug 1411504. P4 - handle CacheClientResume/CacheClientSuspend off the main thread. r=gerald
MozReview-Commit-ID: GRbcNo7KtKH

--HG--
extra : rebase_source : 030c8808c7702dc8792b22250e3d414154014615
extra : source : 60d50a2829cde9ff2879270f983e23092ca9f426
2017-10-24 09:38:34 +08:00
JW Wang 7a1b18c3ec Bug 1411504. P3 - handle CacheClientSeek off the main thread for we will run Update() off the main thread. r=gerald
MozReview-Commit-ID: 7eavgwkTXx0

--HG--
extra : rebase_source : 26c5c1675281612e2753549839acb73f735b7bc8
extra : source : 42efd7bd8db58c5c42cc266d90100a7ec250ac15
2017-10-24 09:23:12 +08:00
JW Wang c4b8566c71 Bug 1411504. P2 - merge NotifyDataStarted() and SetTransportSeekable(). r=gerald
SetTransportSeekable() is always called after NotifyDataStarted().
This is slightly more efficient for we don't acquire the lock twice.

MozReview-Commit-ID: 9myolomriIQ

--HG--
extra : rebase_source : f33c3be978edacf45d8144af43f45c8ad5e7b53e
extra : source : 2cefaeb1adae7238b77d5e2d1287ae0d96d9f671
2017-10-23 17:00:57 +08:00
JW Wang 1efcf7c612 Bug 1411504. P1 - always require MediaCache to have a thread to run Update() loops. r=gerald
MozReview-Commit-ID: AYVWuN9CU55

--HG--
extra : rebase_source : 0149e330533b96426bdc7817586df8bd85ec1d03
extra : source : c191b4aa350672a4b3c614a2ea5494cdcca71faf
2017-10-23 16:51:17 +08:00
JW Wang da256ca76e Bug 1411476. P5 - dump debug info for ChannelMediaResource. r=gerald
MozReview-Commit-ID: GjdtrlNb948

--HG--
extra : rebase_source : 248f4926435118ddc8baa0f901c5e4ec3f699c64
2017-10-25 13:57:39 +08:00
JW Wang 09ecf06972 Bug 1406328 - shut down the MediaCache thread in ShutdownThreads phase. r=gerald
To avoid leaks caused by Dispatch() failures. See comment 0 for the detail.

MozReview-Commit-ID: 3lYxQNj1GPl

--HG--
extra : rebase_source : 8df990476a49544b475df39be789e3cb27853609
extra : intermediate-source : 012f42a1a9d46b0dafa31ca03da1c2bc4fc76d2e
extra : source : c6acb9362de9ab8d130104aaf102de2ecb27dc8f
2017-10-06 17:41:21 +08:00
Sebastian Hengst 6c8164a609 Backed out changeset 3ceb919e7e82 (bug 1406328) for build bustage at dom/media/MediaCache.cpp:301: 'ShutdownPhase' has not been declared. r=backout 2017-10-09 09:07:01 +02:00
JW Wang 31d4e49bd9 Bug 1406328 - shut down the MediaCache thread in ShutdownThreads phase. r=gerald
To avoid leaks caused by Dispatch() failures. See comment 0 for the detail.

MozReview-Commit-ID: 3lYxQNj1GPl

--HG--
extra : rebase_source : 3ea4958ba21e691f83dbdf36fd820e597d6c5d68
extra : intermediate-source : 012f42a1a9d46b0dafa31ca03da1c2bc4fc76d2e
extra : source : c6acb9362de9ab8d130104aaf102de2ecb27dc8f
2017-10-06 17:41:21 +08:00
JW Wang b2cbe2833f Bug 1405962. P1 - give MediaCache a thread on which we will run data callbacks from the HTTP channel. r=gerald
MozReview-Commit-ID: Av7bFGx9SW

--HG--
extra : rebase_source : 296a6137ee63328e11eb11a8ee3430979cf8e5a8
extra : intermediate-source : 9634a9cd63e188799fe691cfe7108a173db503d5
extra : source : 43860a593eb810088adac150c0fa85cf8133ce17
2017-09-13 16:51:12 +08:00
Chris Pearce 56d3b01075 Bug 1405697 - Move SEEK_VS_READ_THRESHOLD to where it's used. r=jwwang
It's only used in MediaCache.cpp, so it may as well be defined there.

MozReview-Commit-ID: HcA499xFOUg

--HG--
extra : rebase_source : f25c30d6e9be10549af80d5dfa963ef66abac576
2017-10-04 16:55:50 +02:00
JW Wang ad01d1a091 Bug 1404771. P2 - always access mThrottleReadahead within the lock. r=gerald
So it is easier to run Update() loops off the main thread in the future.

MozReview-Commit-ID: LdxzQf6B3GK

--HG--
extra : rebase_source : 157984edf8ea08270fe61376e67183715b5bd4d4
extra : intermediate-source : f4045ce626977d392c799fae8f3d4f19efe3039f
extra : source : 778256b7055f4a470889eeae063660595d34337f
2017-09-20 16:37:32 +08:00
JW Wang 1ed6e3a966 Bug 1404771. P1 - fix the comment of mStreamLength. r=gerald
mStreamLength is always accessed within the lock. So it is safe to read/write
mStreamLength on all threads.

MozReview-Commit-ID: 9zJ2cwRrL5L

--HG--
extra : rebase_source : 10f282aa1c2fce2b9c0f431afb85e9d8ec7fab74
extra : intermediate-source : 38cac3d9015404aa3d1ddfd438ac57bd915fa0a7
extra : source : 60594740401732695f12f5f5232fa0f8e6681111
2017-09-20 16:29:46 +08:00
JW Wang 4ead787594 Bug 1401471. P4 - always access mChannelOffset within the cache monitor. r=gerald
MozReview-Commit-ID: KIQU3PrBUj1

--HG--
extra : rebase_source : 5b012b8ace153124a1f2f158efeaad9057927dd4
extra : intermediate-source : d5219d074f525e614164e7c3076a9df695c55e6c
extra : source : 8f07a48d4ac13162add83cce8677322e148d6f74
2017-09-20 16:23:21 +08:00
JW Wang 184fd3f455 Bug 1401471. P3 - store the seek target in StreamAction so we won't need to read mChannelOffset outside the cache monitor. r=gerald
MozReview-Commit-ID: Kkbs3WbSBVm

--HG--
extra : rebase_source : ee6e4119850c854c5a25bef841ffc555daa54fd1
extra : intermediate-source : 30a8f473342993067788911da6f0b999e3a5f9ce
extra : source : d0f1cd9ce8a3d12b63e198c8c8349823eb4b7dcd
2017-09-20 16:20:56 +08:00
JW Wang bfbcdad5a4 Bug 1401471. P2 - remove SEEK_AND_RESUME. r=gerald
MozReview-Commit-ID: ACdp3wVuurb

--HG--
extra : rebase_source : 0050aea48b07b406a84d8b33ebcd9bbf33c6c94e
extra : intermediate-source : 7efbc9605b94bfc93b660e673690625dd7ee74a2
extra : source : 315382f4c613b80d6f315c7dd7a36dada99b9d27
2017-09-20 16:16:07 +08:00
JW Wang 8de2a1f57f Bug 1401471. P1 - make StreamAction a struct so we can associate data with each action in the future. r=gerald
MozReview-Commit-ID: A0ZpunJgNYm

--HG--
extra : rebase_source : 3061d04f6e44d8a818ec08d59b0365b3baac5da1
extra : intermediate-source : 907b58682e04f5ee18256d5b85eae0662b83f727
extra : source : 2b76eb41fe275e65833d65a2217955e5761ad994
2017-09-20 16:12:31 +08:00
Phil Ringnalda 4627ae77ed Backed out 4 changesets (bug 1401471) because it depends on 1401461 which is being backed out
Backed out changeset 6a2c85349226 (bug 1401471)
Backed out changeset 554875cb6a2e (bug 1401471)
Backed out changeset f871c6aa4d90 (bug 1401471)
Backed out changeset ff9dbb6a6692 (bug 1401471)

MozReview-Commit-ID: 80kxfUqbik4
2017-09-21 20:29:08 -07:00
JW Wang eace06432d Bug 1401471. P4 - always access mChannelOffset within the cache monitor. r=gerald
MozReview-Commit-ID: KIQU3PrBUj1

--HG--
extra : rebase_source : 8984d39f5b0b29fe3233c96e5431e8641dd918fd
extra : source : 8f07a48d4ac13162add83cce8677322e148d6f74
2017-09-20 16:23:21 +08:00
JW Wang 105690ac8c Bug 1401471. P3 - store the seek target in StreamAction so we won't need to read mChannelOffset outside the cache monitor. r=gerald
MozReview-Commit-ID: Kkbs3WbSBVm

--HG--
extra : rebase_source : f77d564715998591fd91aa824906cdd90b7abdbe
extra : source : d0f1cd9ce8a3d12b63e198c8c8349823eb4b7dcd
2017-09-20 16:20:56 +08:00
JW Wang 0a4181eb82 Bug 1401471. P2 - remove SEEK_AND_RESUME. r=gerald
MozReview-Commit-ID: ACdp3wVuurb

--HG--
extra : rebase_source : 1553881dc5cf0e17f5175f0c02388666f43bdaa2
extra : source : 315382f4c613b80d6f315c7dd7a36dada99b9d27
2017-09-20 16:16:07 +08:00
JW Wang 3ed737a3b8 Bug 1401471. P1 - make StreamAction a struct so we can associate data with each action in the future. r=gerald
MozReview-Commit-ID: A0ZpunJgNYm

--HG--
extra : rebase_source : f76432a674e4535cd09a928b7151b9d530528909
extra : source : 2b76eb41fe275e65833d65a2217955e5761ad994
2017-09-20 16:12:31 +08:00
JW Wang 1c84dd5856 Bug 1400155 - early return from NotifyDataReceived() when the stream is already closed. r=gerald
See comment 3 for the detail. We can't assert !mClosed since NotifyDataReceived()
could be called after the stream is closed.

MozReview-Commit-ID: 4pTfjABdl9B

--HG--
extra : rebase_source : d7d8b38268f3f54242dd728fe5fd0ada17d6ee48
extra : source : 713510f4087b38f0d447529dbf601f19b3a89eae
2017-09-19 15:32:54 +08:00
JW Wang 472ab4804d 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

--HG--
extra : rebase_source : 58e6d3fe40ec7a549cabc70b30db8006b49c0563
2017-09-20 11:41:08 +08:00
JW Wang 20c0330a15 Bug 1400166. P1 - move re-initialization code to Flush() for it is confusing to call Init() twice. r=gerald
MozReview-Commit-ID: 6KolHyGkqXo

--HG--
extra : rebase_source : 98ee1e8a4bebde33149e2dd6d8d0469be7ca11e9
2017-09-18 10:52:17 +08:00
Andrea Marchesini 5f79fe9d48 Bug 1388125 - Move ChannelMediaResource to separate files, r=jya 2017-09-18 13:33:49 +02:00
Andrea Marchesini 3ad3aaae76 Bug 1388125 - Move FileMediaResource to separate files, r=jya 2017-09-18 13:31:08 +02:00
JW Wang 93ecd70b5b Bug 1399751. P2 - pass a block index to FindBlockForIncomingData() so it doesn't depend on mChannelOffset. r=gerald
MozReview-Commit-ID: 7VltaDyxndl

--HG--
extra : rebase_source : 09516f6379bb5f0e6e949e150cc74d373a889464
2017-09-14 10:42:54 +08:00
JW Wang a00d1e2c0a Bug 1399751. P1 - pass a block index to AllocateAndWriteBlock() so it doesn't depend on mChannelOffset. r=gerald
MozReview-Commit-ID: EJmxrE5X6nA

--HG--
extra : rebase_source : 0d89f6e1de8082ebe0fa3a20c1c8d2e34d4e1982
2017-09-14 10:39:06 +08:00
JW Wang 7f866dd54e Bug 1399372 - update the principal only once per OnDataAvailable() call. r=cpearce
MozReview-Commit-ID: BWyDmKglWsl

--HG--
extra : rebase_source : a9563cf9c04e462dc4c80779b8a587f420bb5499
extra : intermediate-source : 9d12fff4917b308011d37de8172f8f5036308271
extra : source : 4150f78ba66d820509b0bae87cc47e39c2f4ade1
2017-08-29 17:57:00 +08:00
JW Wang fbbf253722 Bug 1398711. P2 - write to mClosed only when the cache monitor is held. r=gerald
This fixes the data race when Seek() read mClosed off the main thread.

MozReview-Commit-ID: GO7Kk5VgVpg

--HG--
extra : rebase_source : e29353aea1e077e30fd284a80a56472d6772e9e1
extra : intermediate-source : 20a5860220a6eb54616cbe059afdaebc81e07e1f
extra : source : 0722d581e2d03eb140ea722527975534471c31b5
2017-09-08 17:46:56 +08:00
JW Wang 7a2d2e198c Bug 1395855. P1 - remove ChannelMediaResource::mOffset so we have less data race to worry about. r=cpearce
We have MediaCacheStream::mChannelOffset to keep the download positon.
We don't need 2 variables for the same purpose.

MozReview-Commit-ID: IpnEJWuA9A9

--HG--
extra : rebase_source : 8e720d878c12555d0a5528167c183ddb881b249e
extra : source : 623cf4cc3ab5ad0d9d263bac05a58699b3577277
2017-09-08 15:09:37 +08:00
JW Wang 0fd21f3cb8 Bug 1398659. P12 - remove unused MediaCacheStream::mHasHadUpdate. r=gerald
MozReview-Commit-ID: 98Nhi924Jip

--HG--
extra : rebase_source : f70d17d516f16b5959d8fd41e40f354843c02b04
extra : source : 9f4cf1dfc0a8588f96f2b1f7934ba5d9e5a4fbca
2017-09-08 15:46:53 +08:00
JW Wang 6dcbfcbee7 Bug 1398659. P4 - remove unused code and add some assertions. r=gerald
MozReview-Commit-ID: LRgF9qjdMXz

--HG--
extra : rebase_source : af8b8bb4272c9be0f0ab8b51356362e9676c7076
extra : intermediate-source : 640d38acf9d3cf4aa583c67fc20ea487c849a570
extra : source : 0faec6a6b214ce4d5ca59ac2b098d4a5bfe4470b
2017-09-05 17:39:57 +08:00
JW Wang b8f562f05e Bug 1398659. P1 - tighten up the assertions in InitAsClone(). r=gerald
We also make it return void since it now always succeeds.

MozReview-Commit-ID: H1oQWoguEzF

--HG--
extra : rebase_source : b5c6714832bed6fceb80c4afcdf4a590cc7dc567
extra : intermediate-source : 01aa9da848391bbf0b39f8dca874c0234f3202fb
extra : source : af04510d8603ffe407069ef342fdb4d3bca33509
2017-09-05 17:28:14 +08:00
Phil Ringnalda c0f8dd917a Backed out 3 changesets (bug 1395017) for frequent failures in test_video_crossorigin.html
Backed out changeset 438657f4637d (bug 1395017)
Backed out changeset 243ef641e6c3 (bug 1395017)
Backed out changeset 78625f947f69 (bug 1395017)

MozReview-Commit-ID: DeBaUOPQrAD
2017-09-05 22:39:50 -07:00
JW Wang 07961dc53c Bug 1395017. P3 - always dispatch a task to run UpdatePrincipal() even when CacheClientUpdatePrincipal() already runs in the main thread. r=cpearce
When MediaCacheStream::NotifyDataReceived() runs off the main thread,
there is no guarantee that the principal will be updated before the new
data is observable to the consumer because the principal can only be
updated on the main thread while the consumer can access the data off
the main thread.

To make the code simpler, we always dispatch a task to run UpdatePrincipal()
even when CacheClientUpdatePrincipal() already runs in the main thread.

This also avoid the deadlock because ChannelMediaResource::UpdatePrincipal()
will never run with the cache monitor held.

MozReview-Commit-ID: 9CdrJnaV0hl

--HG--
extra : rebase_source : 128d54f4583199e7bfa8c72895583ab7fb668706
extra : intermediate-source : c2310f99bdc7529f1e1c67edbb8274b20b679cb2
extra : source : b6cc234d83e7b18ab69502af78d27ce5eda3b350
2017-08-30 11:42:25 +08:00
JW Wang 3da879e10c Bug 1395017. P2 - assert ResourceStreamIterator should either run in the main thread or with the lock held. r=cpearce
MozReview-Commit-ID: Jm9alyQFFtA

--HG--
extra : rebase_source : 7e9c880d6d1f30440ea1ddb65db57b0d6503c186
extra : intermediate-source : d30bc071a565283823be5fbd27c59da0242e8c18
extra : source : 1f69aab306347acce8e4d927c6315658a8af7a3b
2017-08-30 11:26:01 +08:00
JW Wang eef07d01d2 Bug 1395017. P1 - dispatch a task to the main thread to update the principal when necessary. r=cpearce
MozReview-Commit-ID: BWyDmKglWsl

--HG--
extra : rebase_source : 5931a534ac880828a03a39afda87402c2b81dbbc
extra : intermediate-source : fc38148a0fb851d714da7ed477c8232a327daac0
extra : source : 4150f78ba66d820509b0bae87cc47e39c2f4ade1
2017-08-29 17:57:00 +08:00
JW Wang 07c73f15a7 Bug 1394724. P4 - merge MediaCacheStream::Close() and CloseInternal(). r=cpearce
MozReview-Commit-ID: Fo43lKYPA0m

--HG--
extra : rebase_source : b9f82c410c842c9ad6ad6d0eb04d22fdd0dcaed9
extra : source : b28530622cf885d5e6f987300333a9bf62edf615
2017-08-29 16:46:42 +08:00
JW Wang 14d7dd5668 Bug 1394724. P3 - fix data race in reading mClosed in MediaCacheStream::NotifyDataReceived(). r=cpearce
1. mCacheStream.Close() should happen after CloseChannel() to avoid data race
   in reading mClosed in MediaCacheStream::NotifyDataReceived().
2. MediaCache::Update() and CloseStreamsForPrivateBrowsing() should call
   ChannelMediaResource::Close() to ensure mCacheStream.Close() happens
   after CloseChannel().

MozReview-Commit-ID: 1o3yPbm3Gy6

--HG--
extra : rebase_source : 0a39af9ae228bdf4098ad16793bb6eccd15c3ec7
extra : source : f4b6deb231be5915dc42318ec22d850d20562b0e
2017-08-29 16:41:17 +08:00
JW Wang af3ce851d6 Bug 1388612. P1 - remove MediaResource::EnsureCacheUpToDate(). r=gerald
This is a workaround to fix bug 687972. It should be OK now to remove
it since we have fix bug 1108960  where MediaCache failed to run the
update loop to update the suspend status of the stream.

MozReview-Commit-ID: MbInehhScs

--HG--
extra : rebase_source : 94345a00af31834db8b9858cdf5a9e889044156a
extra : source : 70f626894c3a15c8077f70425a97004478caa9e1
2017-08-09 16:07:53 +08:00
Bevis Tseng a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Gerald Squelart fd79ed9c4e Bug 1379091 - Let block cache tell MediaCache its block use limit - r=cpearce
MozReview-Commit-ID: 5ZCD3NoeYEP

--HG--
extra : rebase_source : 0fe76cfa6b15053dc5cf2b392c5d649e6888e6c6
2017-07-10 10:23:02 +12:00
Gerald Squelart eebc1367f0 Bug 1378518 - Use offset-to-block utilities to check MediaCache offset ranges - r=jwwang
MozReview-Commit-ID: 8IsctoABVrb

--HG--
extra : rebase_source : 85d6b405c78207bee730f9482b784e22a063f473
2017-07-06 15:42:56 +12:00
Gerald Squelart dc59f14eff Bug 1378518 - Better MediaCache GetMaxBlocks() computation - r=jwwang
Retrieve pref from MediaPrefs, which is more efficient than
Preferences::GetInt().

Also refactored computations to avoid unnecessary type conversions.

MozReview-Commit-ID: Ii27lthRRNI

--HG--
extra : rebase_source : d1ea46060cd2c35b7fd07a191184c0318187c080
2017-07-06 16:12:58 +12:00
Gerald Squelart 3faa7098b0 Bug 1374441 - Backed out bug 1374173 (MediaCacheStream Seek&Read refactoring) - r=jwwang
Bug 1374173 seems to be the cause of all MediaCache intermittent assertion
failures. It's not an important bug, so let's back-out and verify that
intermittents disappear.

MozReview-Commit-ID: 2X8iW1hWu99

--HG--
extra : rebase_source : e22443a5b9d5ba9a6ce4b126953a880e8e469cd2
2017-06-23 13:18:07 +12:00
Jean-Yves Avenard 10d2da1b08 Bug 1374596: P7. Fix includes as per coding style. r=padenot
MozReview-Commit-ID: 5WfOWcOoxg0

--HG--
extra : rebase_source : 988c09623e83a0d9188d9ff5d705314e2c43e756
2017-06-20 17:56:55 +02:00
Gerald Squelart 39907d6bb8 Bug 1374173 - SeekInternal is only used to SEEK_SET - r=jwwang
So its code can be simplified by removing the code doing other operations.

MozReview-Commit-ID: 32g7lp2XLNE

--HG--
extra : rebase_source : 23846b37c73a9dd2b5770e86254f4a07f21def53
2017-06-13 16:13:33 +12:00
Gerald Squelart 07609a56a6 Bug 1374173 - Make MediaCacheStream::Seek and Read internal - r=jwwang
MozReview-Commit-ID: 9tPETuUYDrV

--HG--
extra : rebase_source : d4b5371851f69eb645602b09970c04f13f44f76c
2017-06-13 15:57:46 +12:00
Gerald Squelart 4a3a84f39f Bug 1371882 - Remove unneeded MediaCache::mContentLength - r=cpearce
Now that MediaCache doesn't use the content length to decide which block cache
to use, and can know it's the file-backed MediaCache (to reset the pointer,
and for telemetry purposes), we don't need to store mContentLength anymore.

MozReview-Commit-ID: KjxarKFe9WK

--HG--
extra : rebase_source : e2cb397c6d5e37a8390479f4245255ef52265483
2017-06-15 17:32:26 +12:00
Gerald Squelart 2f8acfe718 Bug 1371882 - MemoryBlockCache is responsible for tracking the combined size of all its buffers - r=cpearce
MemoryBlockCache won't allow initializing, or growing an existing buffer,
above the limit (min of 'media.memory_caches_combined_limit_kb' or
sysmem*'media.memory_caches_combined_limit_pc_sysmem'/100).

MozReview-Commit-ID: 6MkwFp2eeth

--HG--
extra : rebase_source : 17345f6fe9f00fddfbef87090665afccaabb2cf5
2017-06-15 17:10:54 +12:00
Gerald Squelart 319f8220ec Bug 1371882 - Let GetMediaCache decide which block cache to use - r=cpearce
This allows a fallback to the file-backed MediaCache, if a MemoryBlockCache
could not be created and initialized (which may happen in the next patch,
where MemoryBlockCache will take care of not using more than
MediaMemoryCachesCombinedLimit).

MediaCache::Init() is not needed anymore, as its only work was to initialize
its block cache.

MozReview-Commit-ID: ItAdOPuxEvt

--HG--
extra : rebase_source : 08461d61b8d738edb8c2088bca4e33213b8ae4e1
2017-06-15 16:32:06 +12:00
Gerald Squelart 5a0a2a8c04 Bug 1371882 - MediaCache::Flush reinitializes block cache instead of recreating it - r=cpearce
This saves from destruction&re-construction efforts, makes the flushing less
prone to first-initialization failures.
And it will allow moving the choice of block cache outside of MediaCache::Init.

MozReview-Commit-ID: 8vSunM3rRkL

--HG--
extra : rebase_source : d244c9ff0cb34f9b2171e5f5848501cc1d71d2bc
2017-06-15 16:12:30 +12:00
Gerald Squelart 732f34fc15 Bug 1371882 - MediaCache is now ref-counted - r=cpearce
MediaCacheStreams have owning shared pointers to their MediaCache, and
a MediaCache owns itself while an update is in flight.
A non-owning pointer `gMediaCache` is only used by GetMediaCache and
~MediaCache to manage the one file-backed MediaCache.

MozReview-Commit-ID: AQHuXWGrKt6

--HG--
extra : rebase_source : f256e20080b8701f87418209aa42c5a0fe3f5239
2017-06-15 15:02:25 +12:00
Gerald Squelart 16c8e8bc32 Bug 1371882 - Remove MediaBlockCacheBase::Close() - r=cpearce
The only external use of Close was always followed by an implicit destruction
(by resetting the RefPtr), so we don't need to expose it, and it can be done
from the destructor.

FileBlockCache keeps its Close() function for internal use.
Also, FileBlockCache::mIsOpen is redundant, as it's true iff mThread is not
null.

MozReview-Commit-ID: LV7YVrwJvGG

--HG--
extra : rebase_source : 23decadf249b9e63190b3e19d81edc4a090afcef
2017-06-15 14:10:05 +12:00
Gerald Squelart ac5fcad310 Bug 1371882 - Avoid MemoryBlockCache when combined sizes > 'media.memory_caches_combined_limit_...' - r=cpearce
Don't go over the lowest of 'media.memory_caches_combined_limit_kb'
(kilobytes) or 'media.memory_caches_combined_limit_pc_sysmem' (percents of
system memory).

Added more logging around creation/destruction of MediaCaches.

MozReview-Commit-ID: Cdz4ycyn1RR

--HG--
extra : rebase_source : 63168234f186c3ef9c0289a189a647d67d8526a4
2017-06-12 15:42:26 +12:00
Gerald Squelart 2f4776d6e2 Bug 1371882 - MediaCache uses MemoryBlockCache when content length is known - r=cpearce
MozReview-Commit-ID: 35A4Vc95NtB

--HG--
extra : rebase_source : 8cae198053b6b5ec062137176b8eba377f5bcc83
2017-06-09 18:56:34 +12:00
Gerald Squelart b3828d2355 Bug 1371882 - Rename MediaCache::mFileCache to mBlockCache - r=cpearce
Because blocks may not necessarily be held in files anymore.

MozReview-Commit-ID: 2GNc7B5w2Jt

--HG--
extra : rebase_source : 4ceda80ca6736b159d8b726cdcfb8d7f74cf8529
2017-06-14 17:01:46 +12:00
Gerald Squelart 98f4458011 Bug 1371882 - Virtualize FileBlockCache's API into MediaBlockCacheBase - r=cpearce
MozReview-Commit-ID: Eya0RWiyiEP

--HG--
rename : dom/media/FileBlockCache.h => dom/media/MediaBlockCacheBase.h
extra : rebase_source : e4e847924e2df5bf0e7f2b7e92068fc104ca9bb6
2017-06-09 14:26:22 +12:00
Gerald Squelart 527c7d3dee Bug 1371882 - If content length <= 'media.memory_cache_max_size', use a discrete memory-backed MediaCache - r=cpearce
MozReview-Commit-ID: HH1R6LjKkxb

--HG--
extra : rebase_source : 2ce35a504c6709624bc7d161003b8331f6f25d1e
2017-06-09 23:15:04 +12:00
Gerald Squelart d86f260baa Bug 1371882 - Move MEDIACACHESTREAM_NOTIFIED_LENGTH telemetry collection to MediaCacheStream::Init - r=cpearce
The initial telemetry collection was done in NotifyDataLength() because that
was the first point where the length was introduced; but some extra code was
needed to ensure that were collecting the first length.
Now that this initial length is passed directly to Init(), we can report that
number instead.
In the "worst" case, it will actually be a bit more correct about what we
initially wanted to report, i.e., the initial length given by the HTTP
response header; and it's what we really want to know, now that we are using
this number to make a decision about which MediaCache to use.

MozReview-Commit-ID: 11Th8pensZt

--HG--
extra : rebase_source : 97a6d2dcbfad6c9b37819bfe6471baff2ec7e335
2017-06-12 14:27:46 +12:00
Gerald Squelart 9c6ad7eb88 Bug 1371882 - MediaCacheStream::Init forwards the known content length to the MediaCache factory - r=cpearce
This will give enough information (for now) for GetMediaCache to decide whether
to use the (one global shared) file-backed MediaCache, or a discrete memory-
backed MediaCache.
(Note that GetMediaCache doesn't use this length yet in this patch.)

MozReview-Commit-ID: 5B2E3sIsc4k

--HG--
extra : rebase_source : 940e782665bf2c3640bbe7389fca02ea7c1482cd
2017-06-08 15:59:43 +12:00
Gerald Squelart 023730a1ca Bug 1371882 - Make gMediaCache private inside MediaCache, to avoid misuse - r=cpearce
MozReview-Commit-ID: 6MyKmG7DNaG

--HG--
extra : rebase_source : 0e26d2e405166de8f0160a78faf4cf52fd68fa9e
2017-06-08 17:12:13 +12:00
Gerald Squelart 703d03eb67 Bug 1371882 - Delay MediaCache destruction if update queued - r=cpearce
MozReview-Commit-ID: LIjZFUIrTtX

--HG--
extra : rebase_source : a17ee8d9eb1c32c19e92b4a0ca71a037f32c8459
2017-06-08 16:45:21 +12:00
Gerald Squelart 420fc822c0 Bug 1371882 - Removed unnecessary `gMediaCache->` from MediaCache member functions - r=cpearce
MozReview-Commit-ID: BKjH9hfoL5g

--HG--
extra : rebase_source : d83836ad127895197fba32cd69d282fe9b1c27df
2017-06-08 16:20:37 +12:00
Gerald Squelart d63ca8dd12 Bug 1371882 - MediaCacheStream::mInitialized is redundant, mMediaCache is non-null after initialization - r=cpearce
MozReview-Commit-ID: 6VIPMLmzuEP

--HG--
extra : rebase_source : 80df4e3bda168660812d420e26c6117c7ccc4b88
2017-06-09 13:48:06 +12:00