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

15470 Коммитов

Автор SHA1 Сообщение Дата
John Lin a987fc3b69 Bug 1552607 - p2: check sample session ID when processing buffers. r=jya
Because IPC call runs asynchronously in both remote decoder process and
content process, ProcessOutput() for buffers prior to Flush() could be
scheduled to run after the flush promise is resolved, and Codec.queueInput()
could be preempted and processes prior sample after flush.
To help check the validness of buffers, a session ID increased by flush
is added to both RemoteDataDecoder and remote codec service and will be
passed through IPC. If the passed ID doesn't agree with current session
ID, it means the buffer doesn't belong to current session and should be
discard.

Differential Revision: https://phabricator.services.mozilla.com/D36382

--HG--
extra : moz-landing-system : lando
2019-07-02 18:12:44 +00:00
Andreas Pehrson 19c022c9e4 Bug 1405083 - Re-enable test_getUserMedia_basicScreenshare.html on linux64. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D36220

--HG--
extra : moz-landing-system : lando
2019-07-01 18:26:52 +00:00
Andreas Pehrson f4b4b49bee Bug 1560215 - Properly handle errors from VP8TrackEncoder::GetEncodedPartitions. r=bryce
In the particular case of this bug's crashtest, a dataavailable callback from
the track encoder was raised at a point when
VP8TrackEncoder::GetEncodedPartitions would not actually return any data.
This would make VP8TrackEncoder::GetEncodedTrack propagate the error and set the
recorder in an error state, and cancel any ongoing recordings.

VP8TrackEncoder::GetEncodedPartitions was changed in bug 1333341 to distinguish
end-of-stream from other, real, errors; but callsites were not updated.
This patch fixes the callsites.

Depends on D36509

Differential Revision: https://phabricator.services.mozilla.com/D36510

--HG--
extra : moz-landing-system : lando
2019-07-01 17:47:29 +00:00
Andreas Pehrson 2bfda55f1e Bug 1560215 - Accomodate extra async step added by RunOnGraph. r=padenot
It leads to a race with MediaRecorder::Session::Shutdown where the RunOnGraph
runner was dispatched to the graph before, but tries to dispatch to the encoder
thread after, the encoder thread had BeginShutdown() called on it.

Allowing the encoder thread dispatch to fail in this case is reasonable and
safe.

Depends on D36508

Differential Revision: https://phabricator.services.mozilla.com/D36509

--HG--
extra : moz-landing-system : lando
2019-07-02 12:03:34 +00:00
Andreas Pehrson 961162ffd8 Bug 1560215 - Add crashtest. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D36508

--HG--
extra : moz-landing-system : lando
2019-07-02 11:33:14 +00:00
Mihai Alexandru Michis 74781bb639 Backed out 2 changesets (bug 1552607) for causing checkstyle failures. CLOSED TREE
Backed out changeset 53a39e402451 (bug 1552607)
Backed out changeset 6385b8616d54 (bug 1552607)
2019-07-02 04:19:01 +03:00
Alastor Wu 01bd4dbcc7 Bug 1562353 - add CORS test. r=jya
This test is used to ensure that we shouldn't load CORS resource if server doesn't respond with correct CORS header.

In this situation, loading should be expected to fail.

Differential Revision: https://phabricator.services.mozilla.com/D36513

--HG--
extra : moz-landing-system : lando
2019-07-01 23:54:49 +00:00
John Lin 38358d2cf0 Bug 1552607 - p2: check sample session ID when processing buffers. r=jya
Because IPC call runs asynchronously in both remote decoder process and
content process, ProcessOutput() for buffers prior to Flush() could be
scheduled to run after the flush promise is resolved, and Codec.queueInput()
could be preempted and processes prior sample after flush.
To help check the validness of buffers, a session ID increased by flush
is added to both RemoteDataDecoder and remote codec service and will be
passed through IPC. If the passed ID doesn't agree with current session
ID, it means the buffer doesn't belong to current session and should be
discard.

Differential Revision: https://phabricator.services.mozilla.com/D36382

--HG--
extra : moz-landing-system : lando
2019-07-01 23:42:59 +00:00
Oana Pop Rus 30c64e1686 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-01 13:05:40 +03:00
Matt Woodrow 707fef1528 Bug 1562395 - Don't try to create sync handles in the RDD process. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D36433

--HG--
extra : moz-landing-system : lando
2019-07-01 07:58:26 +00:00
Coroiu Cristina 167403a1d1 Bug 1557901 - disable test_streams_element_capture.html on win and mac for frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D36430

--HG--
extra : moz-landing-system : lando
2019-06-30 08:55:14 +00:00
Nicholas Nethercote d839ef58db Bug 1562331 - Make media.* static prefs follow the naming convention. r=KrisWright
This also removes the following prefs, because they're unused:
- media.autoplay.allow-muted pref
- media.autoplay.blackList-override-default

Differential Revision: https://phabricator.services.mozilla.com/D36396

--HG--
extra : rebase_source : 0570540496302b3efedadf4d5115ee5422d5c279
2019-06-28 14:09:05 +10:00
Andreas Pehrson 1abbf5c0b9 Bug 1558890 - Give more leeway to VideoFrameConverterTest::ClearFutureFramesOnJumpingBack. r=dminor
This does two things:
- Makes times relative to current time, with the only constraint that not a
  whole second may pass after the first frame, since that will trigger the
  same-frame timer.
- Changes asserts to use TimeDuration instead of TimeStamp for understandable
  logs.

This has proven needed on some macosx machines.

Differential Revision: https://phabricator.services.mozilla.com/D36217

--HG--
extra : moz-landing-system : lando
2019-06-27 20:14:41 +00:00
Matt Woodrow 89a62c3ee9 Bug 1561178 - Initialize gfxVars in the RDD process. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D36001

--HG--
extra : moz-landing-system : lando
2019-06-28 07:08:43 +00:00
Matt Woodrow f07980eb66 Bug 1561178 - Shutdown video bridge for all processes that might be using it. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D36000

--HG--
extra : moz-landing-system : lando
2019-06-28 06:33:00 +00:00
Matt Woodrow 3e1eacd221 Bug 1561178 - Create a VideoBridge connection from the RDD process to the parent process. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D35969

--HG--
extra : moz-landing-system : lando
2019-06-28 06:32:43 +00:00
Matt Woodrow cf1e91357b Bug 1561178 - Use Endpoints for VideoBridge construction, and support the possibility that there are multiple at the same time. r=jya
In the future we're going to want VideoBridge connections from the RDD process into both the parent process and the GPU process.
This does the preparation work for unifying the way we create VideoBridges (using Endpoints, required for cross-process connections),
and detects which one to use based on where the video will be composited.

Differential Revision: https://phabricator.services.mozilla.com/D35968

--HG--
extra : moz-landing-system : lando
2019-06-28 07:00:41 +00:00
Matt Woodrow 603b696fd5 Bug 1561178 - Make passing a TextureFactoryIdentifier optional, and pass one whenever we can. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D35965

--HG--
extra : moz-landing-system : lando
2019-06-28 06:32:16 +00:00
Matt Woodrow 4e1238f4f8 Bug 1561178 - Combine the two video RecvOutput methods and switch based on the descriptor type. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D35964

--HG--
extra : moz-landing-system : lando
2019-06-28 06:31:59 +00:00
Boris Zbarsky 2a6bd5b432 Bug 1350254 part 10. Switch RTCCertificate to [Serializable]. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D35724

--HG--
extra : moz-landing-system : lando
2019-06-25 06:49:06 +00:00
Boris Zbarsky a136313b5e Bug 1350254 part 7. Consolidate ReadString/WriteString helpers for structured serialization. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D35721

--HG--
extra : moz-landing-system : lando
2019-06-25 06:48:33 +00:00
Daniel Varga de3b8e8e10 Backed out 6 changesets (bug 1561178) for profile guided optimization build fail in artifacts\\profdata.tar.xz. On a CLOSED TREE
Backed out changeset 2150f683f8a8 (bug 1561178)
Backed out changeset 059c79722bcb (bug 1561178)
Backed out changeset 6f206fecaa56 (bug 1561178)
Backed out changeset d449e8c96753 (bug 1561178)
Backed out changeset 557f55a90c8a (bug 1561178)
Backed out changeset e1521d8fbe90 (bug 1561178)

--HG--
extra : amend_source : b0fc184cfb6d03af977f9f633def4d265dd74bce
2019-06-27 08:19:28 +03:00
Matt Woodrow 6686b244bd Bug 1561178 - Initialize gfxVars in the RDD process. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D36001

--HG--
extra : moz-landing-system : lando
2019-06-27 01:29:59 +00:00
Matt Woodrow 78f658db68 Bug 1561178 - Shutdown video bridge for all processes that might be using it. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D36000

--HG--
extra : moz-landing-system : lando
2019-06-27 01:29:45 +00:00
Matt Woodrow 3737930be6 Bug 1561178 - Create a VideoBridge connection from the RDD process to the parent process. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D35969

--HG--
extra : moz-landing-system : lando
2019-06-27 01:29:25 +00:00
Matt Woodrow 9c0b625ec4 Bug 1561178 - Use Endpoints for VideoBridge construction, and support the possibility that there are multiple at the same time. r=jya
In the future we're going to want VideoBridge connections from the RDD process into both the parent process and the GPU process.
This does the preparation work for unifying the way we create VideoBridges (using Endpoints, required for cross-process connections),
and detects which one to use based on where the video will be composited.

Differential Revision: https://phabricator.services.mozilla.com/D35968

--HG--
extra : moz-landing-system : lando
2019-06-27 01:29:15 +00:00
Matt Woodrow 99b0d9c73f Bug 1561178 - Make passing a TextureFactoryIdentifier optional, and pass one whenever we can. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D35965

--HG--
extra : moz-landing-system : lando
2019-06-27 01:28:56 +00:00
Matt Woodrow 0cb406eeb5 Bug 1561178 - Combine the two video RecvOutput methods and switch based on the descriptor type. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D35964

--HG--
extra : moz-landing-system : lando
2019-06-27 01:28:47 +00:00
Mihai Alexandru Michis cc9e91253e Backed out 2 changesets (bug 1528031) for causing crashtests to time out. CLOSED TREE
Backed out changeset 27ce9b212d26 (bug 1528031)
Backed out changeset 0a18aa212ee6 (bug 1528031)
2019-06-27 05:45:20 +03:00
Jan-Ivar Bruaroey 8fd4637236 Bug 1528031 - Update tests to work with [SecureContext] navigator.mediaDevices. r=pehrsons,smaug
Differential Revision: https://phabricator.services.mozilla.com/D35970

--HG--
extra : moz-landing-system : lando
2019-06-26 18:15:50 +00:00
Andreas Pehrson 1151ab349e Bug 1547899 - Add crashtest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D35320

--HG--
extra : moz-landing-system : lando
2019-06-26 09:18:38 +00:00
Paul Adenot e100119b87 Bug 1429847 - Promote audio threads to real-time priority before locking down the sandbox. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D34888

--HG--
extra : moz-landing-system : lando
2019-06-21 19:49:10 +00:00
Paul Adenot 356d945008 Bug 1429847 - Promote the GraphRunner thread. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D32499

--HG--
extra : moz-landing-system : lando
2019-06-21 19:51:22 +00:00
Jan-Ivar Bruaroey 79e118fb86 Bug 1552571: Optimize GetUserMediaWindowListener's source listener iteration and ownership. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D31687

--HG--
extra : moz-landing-system : lando
2019-06-20 16:43:21 +00:00
Andreas Pehrson 755d2fbfa4 Bug 1556696 - Only fail the VideoFrameConverter out-of-buffers assert if we dropped 100 frames in a row. r=dminor
Five buffers is evidently not enough to ensure we don't run out.
What we really want the assert for is that we are not leaking buffers so that
they never recycle, while also keeping memory usage down. This achieves that
by allowing for 100 frames to drop before failing the out-of-buffers assert.

Differential Revision: https://phabricator.services.mozilla.com/D35324

--HG--
extra : moz-landing-system : lando
2019-06-20 15:19:01 +00:00
Edwin Gao 8361aefc97 Bug 1555454 - migrate mochitest-media to macosx1014 and turn off permafail tests r=gbrown,jmaher
Changes:
- rebalance chunk
- turn off three tests that are nearly permafail

Differential Revision: https://phabricator.services.mozilla.com/D34932

--HG--
extra : moz-landing-system : lando
2019-06-20 04:10:29 +00:00
Paul Adenot 7bcb7bb6a6 Bug 1553215 - Implement the correct behaviour for MediaStreamAudioSource. r=karlt,pehrsons
It should pick and lock to the right track, regardless of if it's still in the
MediaStream.

The test fix is because we don't expose tracks until the HTMLMediaElement has
loaded loading I think.

This alignes with a couple spec changes:
- https://github.com/WebAudio/web-audio-api/issues/264
- https://github.com/WebAudio/web-audio-api/pull/1829/files

and also throws when no valid track are found in the MediaStream, either because
it's all video tracks or because it has no tracks.

Differential Revision: https://phabricator.services.mozilla.com/D32176

--HG--
extra : moz-landing-system : lando
2019-06-19 23:06:33 +00:00
Paul Adenot 266b9570eb Bug 1056706 - Reenable a couple tests on Android. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D35289

--HG--
extra : moz-landing-system : lando
2019-06-19 22:15:25 +00:00
Byron Campen [:bwc] d8c9380ddf Bug 1550177 - Part 4: Simplify ICE gathering state change callback stuff. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D30994

--HG--
extra : moz-landing-system : lando
2019-06-19 16:55:10 +00:00
Byron Campen [:bwc] aa3e2db076 Bug 1550177 - Part 2: Remove a stack-unwind, and simplify signal handling considerably. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D30992

--HG--
extra : moz-landing-system : lando
2019-06-19 16:54:45 +00:00
Byron Campen [:bwc] 8ab44cf270 Bug 1550177 - Part 1: Remove some duplicate webidl enums. r=mjf,smaug
Differential Revision: https://phabricator.services.mozilla.com/D30991

--HG--
extra : moz-landing-system : lando
2019-06-19 16:54:38 +00:00
alwu c7b361e5b5 Bug 1556079 - part1 : hide cue if we can't find a good place to put it fully inside the rendering area. r=heycam
According to the spec 7.2.10.17 [1], if we have tried both direction and there is no place to put the cue inside the rendering area without overlapping with other cues or the boundary of rendering area, then we have to discard all CSS boxes, which means that we should not display this cue.

[1] https://www.w3.org/TR/webvtt1/#processing-cue-settings

Differential Revision: https://phabricator.services.mozilla.com/D33729

--HG--
extra : moz-landing-system : lando
2019-06-14 00:26:54 +00:00
Andreea Pavel 733e1e26a8 Bug 1405083 - add missing bracket on a CLOSED TREE 2019-06-15 14:55:28 +03:00
Andreea Pavel 6c4da765c5 Bug 1405083 - disabled test_getUserMedia_basicScreenshare.html on linux64 r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D35127

--HG--
extra : moz-landing-system : lando
2019-06-15 11:24:01 +00:00
Andreea Pavel 8c09b0389f Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/util/OnboardingStringUtil.java => mobile/android/base/java/org/mozilla/gecko/util/OnboardingResources.java
rename : toolkit/components/normandy/test/browser/addons/normandydriver-1.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-a-1.0/manifest.json
rename : toolkit/components/normandy/test/browser/addons/normandydriver-2.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-a-2.0/manifest.json
rename : toolkit/components/normandy/test/browser/addons/normandydriver-1.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-b-1.0/manifest.json
2019-06-15 12:54:47 +03:00
Haik Aftandilian d302444d67 Bug 1498742 - Part 2 - Start the GMP sandbox earlier during process startup r=jya,cpearce
Change the Mac GMP process launch to include sandboxing params on the command line to allow the sandbox to be started earlier during GMP process launch. Content, extension, and RDD processes have already been changed to start the sandbox earlier.

Update GMPProcessParent to override GeckoChildProcessHost methods used to construct sandboxing parameters. Pass the plugin path as a sandbox parameter so that the sandbox rules can whitelist the plugin directory which is now read after the sandbox is enabled in the plugin process. On development builds, pass "testingReadPath" params so directories needed during automated tests can be whitelisted.

Update Mac sandboxing code to detect GMP sandbox params on the command line and enable the sandbox with additional arguments needed for early sandbox start.

Allow reverting to the old implementation by setting security.sandbox.gmp.mac.earlyinit to false.

Differential Revision: https://phabricator.services.mozilla.com/D34085

--HG--
extra : moz-landing-system : lando
2019-06-14 22:55:27 +00:00
Dorel Luca fb616d00a6 Backed out 2 changesets (bug 1498742) for OSX build bustages. CLOSED TREE
Backed out changeset f6da94d90350 (bug 1498742)
Backed out changeset 4f3e83d8de59 (bug 1498742)
2019-06-15 00:13:05 +03:00
Haik Aftandilian c0874f2dba Bug 1498742 - Part 2 - Start the GMP sandbox earlier during process startup r=jya,cpearce
Change the Mac GMP process launch to include sandboxing params on the command line to allow the sandbox to be started earlier during GMP process launch. Content, extension, and RDD processes have already been changed to start the sandbox earlier.

Update GMPProcessParent to override GeckoChildProcessHost methods used to construct sandboxing parameters. Pass the plugin path as a sandbox parameter so that the sandbox rules can whitelist the plugin directory which is now read after the sandbox is enabled in the plugin process. On development builds, pass "testingReadPath" params so directories needed during automated tests can be whitelisted.

Update Mac sandboxing code to detect GMP sandbox params on the command line and enable the sandbox with additional arguments needed for early sandbox start.

Allow reverting to the old implementation by setting security.sandbox.gmp.mac.earlyinit to false.

Differential Revision: https://phabricator.services.mozilla.com/D34085

--HG--
extra : moz-landing-system : lando
2019-06-14 20:12:01 +00:00
Mark Banner 201255ab84 Bug 1558485 - Turn on ESLint for all of dom/ disabling most of the failing rules. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D34761

--HG--
extra : moz-landing-system : lando
2019-06-13 20:21:46 +00:00
Mark Banner c51c2a8807 Bug 1558822 - Fix more issues related to shadowing of variables in dom/ code. r=perry
Differential Revision: https://phabricator.services.mozilla.com/D34760

--HG--
extra : moz-landing-system : lando
2019-06-14 18:04:01 +00:00