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

63539 Коммитов

Автор SHA1 Сообщение Дата
Gerald Squelart 9e967498fe Bug 1368837 - MediaResourceIndex::ReadAt tries to cache last-read block - r=cpearce
This is the core of this bug:
- We try to read past the end of the requested range, and save a block-full of
cached data. ("Block" is a memory range, with an alignment and size being a
power of two, to match existing caching happening in MediaCache and
FileBlockCache, and to play nice with the memory allocator.)
- If part of a requested read touches the existing cache, we can just read from
the cache, which means we don't involve any of the locking and IOs that normal
reads use.

The small extra work needed to cache more data in some reads is largely offset
by all the lock&IO-heavy reads that we can subsequently avoid.

UncachedReadAt, which is used internally by CachedReadAt, is left public
because it could be useful if the caller knows for sure that a particular read
is isolated.

(Note: The printfs, and comparison code in ReadAt, will be removed in later
patches. Also the block size will be later controlled by a pref.)

MozReview-Commit-ID: GFiaP5Io7Hf

--HG--
extra : rebase_source : 2bebcdb7854989b55f2026e92338a00ac29a5376
2017-05-30 14:59:30 +12:00
Gerald Squelart 0c6f6f491f Bug 1368837 - WaveTrackDemuxer should copy the MediaResource* instead of a whole MediaResourceIndex - r=cpearce
When the WaveTrackDemuxer is given a MediaResourceIndex, it's only really
interested in the MediaResource pointer, so we should just pass that, and
WaveTrackDemuxer can construct its own MediaResourceIndex from it.

Also, MediaResourceIndex will become non-copyable soon.

MozReview-Commit-ID: H0VGSxpAGkP

--HG--
extra : rebase_source : 174422a9b3add0bc18b671e2613476cc1a97c0bb
2017-05-30 21:42:22 +12:00
Gerald Squelart 5c90401225 Bug 1368837 - MockMediaResource should fread individual bytes - r=cpearce
`fread(buf, count, 1, f)` meant that exactly one object of size `count` could
be read.
Changing that to `fread(buf, 1, count, f)` now reads up to `count` size-1
objects (aka bytes) up to `count` and returns that number of bytes read, which
is usually what we want from a read, i.e. as much as possible even if it's less
than requested.

MozReview-Commit-ID: 3Lgvws19SFd

--HG--
extra : rebase_source : e5b89a7073d2a5a0365c6fe6aa938bd17cf37935
2017-05-26 15:15:14 +12:00
Gerald Squelart 9f7cafca97 Bug 1368837 - MockMediaResource::GetCachedDataEnd should return the offset if out of range - r=cpearce
If the requested cached-data offset is out of range, we should just return the
same offset, as it signals that the actual cached range is 0 bytes, without
having to deal with -1.

MozReview-Commit-ID: D0rXO0S0mss

--HG--
extra : rebase_source : 39784ff39d12d416358a181f0245ec2129c6992d
2017-05-29 15:13:15 +12:00
Gerald Squelart 8a1db77ea6 Bug 1368837 - Implement SourceBufferResource::GetCachedDataEnd - r=cpearce
MediaResourceIndex caching requires GetCachedDataEnd and ReadFromCache.
Implementing SourceBufferResource::GetCachedDataEnd is trivial, as it's just a
buffer from 0 to GetLength(), so if the requested cached-data offset is inside
the buffer, we can just return the total length as known cached data.

MozReview-Commit-ID: 1DO0PzDnjQp

--HG--
extra : rebase_source : e7a652622221c04e77dc3a3b7707f22e1db25599
2017-05-29 14:51:08 +12:00
Gerald Squelart de558d5c2b Bug 1368837 - BufferMediaResource::GetCachedDataEnd should return aOffset when out of cache - r=cpearce
MozReview-Commit-ID: 6EEXSUxShLp

--HG--
extra : rebase_source : 0264ad9e86ad7c6ed63626d71317f80780e16b87
2017-06-01 11:30:14 +12:00
Gerald Squelart 861a99455f Bug 1368837 - Document that MediaResource::GetCachedDataEnd should return aOffset when out of cache - r=cpearce
MozReview-Commit-ID: JKeuEAjIRxr

--HG--
extra : rebase_source : 93e2883833d47626f8d3abce4a151d93c0c106f1
2017-06-01 11:29:49 +12:00
Chris Pearce 29bb4271d4 Bug 1368583 - Adjust MediaEMENoCodecsDeprecatedWarning string to make it clearer. r=flod
MozReview-Commit-ID: Gm6CtEq2LVC

--HG--
extra : rebase_source : c9818b52926cb9d2eb47905c333e79eb96dd518a
2017-06-01 08:12:24 +12:00
Ryan VanderMeulen 242f4b304d Merge m-c to autoland. a=merge
CLOSED TREE
2017-05-31 20:50:21 -04:00
Ryan VanderMeulen b2f44e5181 Merge inbound to m-c. a=merge 2017-05-31 20:25:52 -04:00
Fernando Jimenez Moreno e85ff5cb1b Bug 1365674 - stylo: Simulate compute value failure for dom/animation mochitests. r=hiro
MozReview-Commit-ID: 8flMLuW2vZP

--HG--
extra : rebase_source : 572ddece88644de63930468f532c31d37167f017
2017-05-30 10:24:08 +02:00
Chris H-C b92d148caa Bug 1367110 - Expose XHRMT's ErrorCode to chrome JS. r=baku
This is presently only relevant for XHRMT, so XHRWorker will just report that
everything's a-ok for now.

As noted inline, the permanence of this measure is to be evaluated in
Firefox 60 in bug 1368540.

MozReview-Commit-ID: 6gkTyZO388g

--HG--
extra : rebase_source : d85ec4181c9bd935f8e419d8d450fd17eb5e1837
2017-05-24 08:52:15 -04:00
Chris H-C 83e4d76955 Bug 1367110 - Make XHRMainThread's mErrorLoad more descriptive. r=baku
There are at least four ways XHRMT can error on load.

Let's be specific about it.

MozReview-Commit-ID: EOml2fcd1XD

--HG--
extra : rebase_source : 7f484f04e2dd6f219911408e7af152f85d4776a9
2017-05-24 08:44:38 -04:00
Sebastian Hengst fd03aa5bc8 Backed out changeset 4e283b54baa6 (bug 1358223) for build bustage on Android at dom/ipc/ContentChild.cpp:21. r=backout 2017-05-31 21:34:13 +02:00
Alex Gaynor d27dc0ba0b Bug 1358223 - Part 1 - On Windows and macOS hardcode the minimum content sandbox level at 1. r=bobowen,haik,jimm
If the "security.sandbox.content.level" preference is set to a value less than
1, all consumers will automatically treat it as if it were level 1. On Linux and
Nightly builds, setting the sandbox level to 0 is still allowed, for now.

MozReview-Commit-ID: 9QNTCkdbTfm

--HG--
extra : rebase_source : cd5a853c46a5cd334504b339bef8df30a3cabe51
2017-05-12 17:04:42 -04:00
Alex Gaynor 39f34ea898 Bug 1358223 - Part 1 - On Windows and macOS hardcode the minimum content sandbox level at 1. r=bobowen,haik,jimm
If the "security.sandbox.content.level" preference is set to a value less than
1, all consumers will automatically treat it as if it were level 1. On Linux and
Nightly builds, setting the sandbox level to 0 is still allowed, for now.

MozReview-Commit-ID: 9QNTCkdbTfm

--HG--
extra : rebase_source : 1a26ffc5b9f80e6df4c37c23f506e907ba44053a
2017-05-12 17:04:42 -04:00
Alex Gaynor 1bc2391571 Bug 1358227 - Removed the MOZ_ALLOW_WEAKER_SANDBOX environment variable; r=jimm
The Flash sandbox (which is the only thing this variable is used for) is stable
at this point, and for testing purposes we still have MOZ_DISABLE_NPAPI_SANDBOX.

MozReview-Commit-ID: 6sxb1tx7oA9

--HG--
extra : rebase_source : d960c5a7afb04b90f098516f955b5fd00628b6a8
2017-05-31 12:28:06 -04:00
Kearwood Gilbert eb3becc0b0 Bug 1362213 - Implement chrome-only API to manage VR sessions r=daoshengmu,kanru,smaug
- Added new chrome-only webidl methods to be used by browser UI and WebExtensions
- Implemented bitmasked group visibility for VR sessions to enable switching
  between chrome and regular content presentations.
- Implemented throttling mechanism to avoid runaway, unthrottled render loops
  for VR sessions that are hidden by group visibility bitmasks or due to
  lower level platform VR events, such as during the Oculus
  "Health and Safety Warning".
- Simplified the PVRManager IPC protocol while extending it to support
  VR session groups and later WebVR content performance profiling API's.
- Removed the last WebVR related sync IPC call.


MozReview-Commit-ID: BMEIPyYeEbq

--HG--
extra : rebase_source : 47d3682cad3d913504175b7d4c3e9d992236f097
2017-05-08 16:01:36 -07:00
Sebastian Hengst 08fa09ee69 Backed out changeset 9983ac05d7d1 (bug 1367110) for eslint failures in TelemetrySend.jsm (must use doublequotes). r=backout 2017-05-31 21:02:59 +02:00
Sebastian Hengst 0c1ac2aec4 Backed out changeset 1b93ec532890 (bug 1367110) 2017-05-31 21:02:11 +02:00
Jean-Yves Avenard 7ac281a2f6 Bug 1368856: initialize variable. r=rillian
There's no way to verify locally the while loop will execute and set the return value, so we get an uninitialized variable warning.

Initialize it at declaration time to failure, relying on the later code to override with success.

Actually, it doesn't matter what we initialize it to, since the while loop will never terminal if GetNextPacket somehow returns success without pushing a new packet onto the sample array. But this silences the warning.

MozReview-Commit-ID: 20rh1OGpR1E

--HG--
extra : rebase_source : 599a6d1bf0d38077bddfcec975e514eb8e5ee67e
2017-05-31 09:53:03 +02:00
Brad Werth ad0c130afa Bug 1355675 Part 4: Add tests of Element::getTransformTo... methods. r=mattwoodrow
MozReview-Commit-ID: JQzJ3AZqNC

--HG--
extra : rebase_source : d353b9b574c434a074298d9d2826cfe91311bb4c
2017-05-25 16:01:06 -07:00
Brad Werth b4e5c552de Bug 1355675 Part 3: Add some Chrome-only getTransformTo... methods to Element. r=mattwoodrow,smaug
MozReview-Commit-ID: 5H2DXKJzE8H

--HG--
extra : rebase_source : a5089158676586e94ac1c8528dd052d52973c869
2017-05-30 09:42:25 -07:00
Brad Werth 78f283d086 Bug 1355675 Part 2: Extend DOMMatrixReadOnly to allow instantiation with a Matrix4x4. r=mattwoodrow
MozReview-Commit-ID: AHTABgGe0Or

--HG--
extra : rebase_source : f1f30c64e16008d7702c4629f8d16ae610ebe1db
2017-05-09 14:29:42 -07:00
Chris H-C 4b7c69cdd1 Bug 1367110 - Expose XHRMT's ErrorCode to chrome JS. r=baku
This is presently only relevant for XHRMT, so XHRWorker will just report that
everything's a-ok for now.

As noted inline, the permanence of this measure is to be evaluated in
Firefox 60 in bug 1368540.

MozReview-Commit-ID: 6gkTyZO388g

--HG--
extra : rebase_source : d85ec4181c9bd935f8e419d8d450fd17eb5e1837
2017-05-24 08:52:15 -04:00
Chris H-C 40857e0ec3 Bug 1367110 - Make XHRMainThread's mErrorLoad more descriptive. r=baku
There are at least four ways XHRMT can error on load.

Let's be specific about it.

MozReview-Commit-ID: EOml2fcd1XD

--HG--
extra : rebase_source : 7f484f04e2dd6f219911408e7af152f85d4776a9
2017-05-24 08:44:38 -04:00
Ryan VanderMeulen b9fe830aa0 Merge inbound to m-c. a=merge
CLOSED TREE
2017-05-31 14:32:55 -04:00
Carsten "Tomcat" Book 05cf62c272 Backed out changeset a311d7c6ce20 (bug 1363975) 2017-05-31 17:00:08 +02:00
Christoph Kerschbaumer 405ca89e21 Bug 1363975 - Have loadOneTab() provide the correct triggeringPrincipal. r=gijs,smaug 2017-05-31 15:46:58 +02:00
Carsten "Tomcat" Book eb742c507d Merge mozilla-central to mozilla-inbound 2017-05-31 14:23:37 +02:00
Carsten "Tomcat" Book 1a0d9545b9 merge mozilla-inbound to mozilla-central a=merge 2017-05-31 11:28:43 +02:00
Tim Taubert 3bf090160d Bug 1333140 - Collect telemetry about (non-)HTTPS usage of crypto.subtle r=keeler data-r=bsmedberg 2017-05-31 10:35:37 +02:00
Bevis Tseng b5230ddca8 Bug 1363318 - Part 3: Label FetchDriver. r=baku 2017-05-16 18:27:01 +08:00
Bevis Tseng 024ff96b5b Bug 1363318 - Part 2: Label FetchBody. r=baku 2017-05-16 18:12:24 +08:00
Bevis Tseng 93f8ac4e38 Bug 1363318 - Part 1: Label FetchSignalProxy. r=baku
Replace the use of NS_DispatchToMainThread, NS_ReleaseOnMainThread with WorkerPrivate->MainThreadEventTarget().
2017-05-16 16:59:29 +08:00
Andrea Marchesini 61a3ace45c Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 5 - WorkerHolder, r=smaug
WorkerHolder must be released after the migration.
2017-05-31 07:41:11 +02:00
Andrea Marchesini 6287e1d209 Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 4 - monitoring child processes, r=smaug 2017-05-31 07:41:11 +02:00
Andrea Marchesini 794e8ca46d Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 3 - tests, r=smaug 2017-05-31 07:41:10 +02:00
Andrea Marchesini 1ec87785af Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 2 - callback stored, r=smaug 2017-05-31 07:41:10 +02:00
Andrea Marchesini dd8eddb26f Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 1 - actor migration, r=smaug 2017-05-31 07:41:10 +02:00
Andrea Marchesini 4943943130 Bug 1366316 - Separate thread for IPCBlobInputStream actors - part 0 - comments, r=smaug 2017-05-31 07:41:10 +02:00
Markus Stange e2336b07a8 Bug 1330185 - Use a top-level PProfiler protocol to control the profiler in other processes. r=billm,njn
MozReview-Commit-ID: EROfGuYQ6a0

--HG--
extra : rebase_source : be0aa1b9c7963882e8e7d47964f2da5b670ab10a
extra : intermediate-source : e6f368f2d8741f2a9655b288d49b59fbbd6b90b7
extra : source : 51cdc2541486d5ddf2d385ec0459a9ec38b8775b
2017-05-30 15:06:14 -04:00
Alfredo Yang e6b2ddf4c2 Bug 1364872 - take zero tolerance of decoding error in debug and playback test. r=jya
MozReview-Commit-ID: 9DYBfyIvGvk

--HG--
extra : rebase_source : 81c85e2f271110fe85f94fb687a60820fc37f0fa
2017-05-24 15:25:09 +08:00
Alastor Wu 5db65a6f2c Bug 1367980 - don't release decoder in complete state on Fennec. r=jwwang
On Android, the life cycle of graphic buffer is equal to Android's codec, and
it would be released immediately if we shutdown the decoder.

Since the buffer has been release, the memory we access is totally meaningless.
The result is we would render the black image on the screen.

In addition, I suspect this issue might be one of the root cause which results
in lots of timeout for media mochitest, so I would like to land this patch first,
and then do the follow-up in bug1367983.

MozReview-Commit-ID: 5eZph6MItZs

--HG--
extra : rebase_source : 99036cd087bf758c8a70be686c40fa2d84d7f6c1
2017-05-26 15:42:20 +08:00
Andrea Marchesini f9b3992646 Bug 1368941 - Remove gonk specific code from ProcessPriorityManager, r=gsvelto 2017-05-31 21:23:52 +02:00
Andrea Marchesini c3889f808d Bug 1368955 - Split URL.cpp in URLMainThread.{cpp,h} and URLWorker.{cpp,h}, r=qdot
--HG--
rename : dom/url/URL.cpp => dom/url/URLMainThread.cpp
rename : dom/url/URL.cpp => dom/url/URLMainThread.h
rename : dom/url/URL.cpp => dom/url/URLWorker.cpp
rename : dom/url/URL.cpp => dom/url/URLWorker.h
2017-05-31 21:18:56 +02:00
Andrea Marchesini d7289f085d Bug 1368950 - Remove URL Constructor with a URL base argument, r=qdot 2017-05-31 21:18:19 +02:00
Andrea Marchesini 4c5700d3ed Bug 1369010 - Remove dead code in ContentParent.{cpp,h}, r=qdot 2017-05-31 21:17:24 +02:00
Andrea Marchesini d3f074c19a Bug 1368065 - Add a test for WebSocket and non-ascii char, r=qdot 2017-05-31 21:16:42 +02:00
Andrea Marchesini da7aba03b1 Bug 1368712 - Get rid of nsIBrowserElementAPI.{set,get}Visible, r=kanru 2017-05-31 21:15:23 +02:00