Commit Graph

666534 Commits

Author SHA1 Message Date
Alastor Wu
9bd4a96457 Bug 1568101 - part5 : implement encoding. r=jolin,jya
In order to encode video frame, we have to convert `webrtc::VideoFrame` to gecko's video data, and then send this YUV-based video data to the encoder.

The encoder won't return an encoded frame everytime when we call its `encode()`, so we have to wait until there are valid samples added to `mEncodedFrames`.

Then, convert the `MediaRawData` to `webrtc::EncodedImage` and provide an NAL entries list to indicate where the NALs are in the encoded bytes stream and how large they are. We would send those data back
to the consumer of the encoder via calling a callback function `OnEncodedImage()`.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 07:41:33 +00:00
Alastor Wu
86b6cfa0eb Bug 1568101 - part4 : implement a generic refcounting encoder interface. r=jya
`RefCountedWebrtcVideoEncoder` is a generic interface which supports refcounting, using that can ensure the encoder is always alive even if using it in an async task.

So now both `WebrtcGmpVideoEncoder` and `WebrtcMediaDataEncoder` would inherit from `RefCountedWebrtcVideoEncoder`.
We can use `WebrtcVideoEncoderProxy` to wrap them and return `WebrtcVideoEncoderProxy` for the use in the WebRTC pineline.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 08:03:15 +00:00
Alastor Wu
c636eac2d6 Bug 1568101 - part3 : implement initializing and releasing encoder. r=jolin
In this patch, we implement how to create a platform encoder, init an encoder and release it when we don't need it anymore.

In addition, as the encoder factory only supports h264 for now, so all configuration related to encoder would be h264 specific.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 07:52:11 +00:00
Alastor Wu
58ec457e76 Bug 1568101 - part2 : use a static pref to control the feature. r=jolin
Use a static pref to control this feature and turn it off by default.

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

--HG--
extra : moz-landing-system : lando
2019-08-08 23:38:21 +00:00
Alastor Wu
9fd259ee61 Bug 1568101 - part1 : implement a basic interface for WebrtcMediaDataEncoderCodec. r=jolin
Implement a basic interface for `WebrtcMediaDataEncoder`, which will only be used on OSX for encoding h264 only.

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

--HG--
extra : moz-landing-system : lando
2019-08-09 20:58:06 +00:00
John Lin
81f1bc6269 Bug 1571127 - p2: enhance unit test. r=jya
- animating input
- minor code cleanup

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

--HG--
extra : moz-landing-system : lando
2019-08-19 16:50:19 +00:00
John Lin
0951fc6fdd Bug 1571127 - p1: retain input image until CVPixelBuffer is released. r=jya
Input could be released during encoding if not retained.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 12:27:12 +00:00
Drew Willcoxon
52f2644d94 Bug 1574246 - Quantumbar: Don't collapse secondary text for search results when the title is empty. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D42419

--HG--
extra : moz-landing-system : lando
2019-08-20 12:23:20 +00:00
Thomas Nguyen
fe6a6a4285 Bug 1567940 Apply ReferrerInfo to Download and fix Go to Download Page button r=Gijs,dimi
In the old way, if referrer is ommited we will not be able to go to
download page. In that case, we should use originalReferrer in
ReferrerInfo object

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

--HG--
extra : moz-landing-system : lando
2019-08-20 16:22:44 +00:00
Jason Laster
009c63f073 Bug 1564168 - [jsdbg2] Debugger.prototype.enabled should be removed.
Differential Revision: https://phabricator.services.mozilla.com/D39414

--HG--
extra : moz-landing-system : lando
2019-08-19 21:47:05 +00:00
Botond Ballo
fafd7d38c6 Bug 1565525 - Clear layer transforms when a tab is moved from an APZ-enabled compositor to an APZ-disabled compositor. r=hsivonen
Depends on D42565

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

--HG--
extra : moz-landing-system : lando
2019-08-20 06:38:00 +00:00
Botond Ballo
629b3580ff Bug 1565525 - Modify MatrixMessage to carry a Maybe<Matrix>, so that a transform can be cleared by sending Nothing. r=hsivonen
Depends on D42564

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

--HG--
extra : moz-landing-system : lando
2019-08-20 06:37:05 +00:00
Botond Ballo
4232079a25 Bug 1565525 - Add helper functions to make working with Maybe<Matrix> easier. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42564

--HG--
extra : moz-landing-system : lando
2019-08-20 06:36:01 +00:00
Geoff Brown
fd801b55c9 Bug 1572794 - Add summary and filter-values regex to 'mach test-info report'; r=jmaher
Optional summary provides a convenient synopsis of matching tests. filter-values regex
was requested for in bug 1568638, like --filter-values='(?<!!)fission'.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 16:19:40 +00:00
André Bargull
4f14d3395a Bug 1574180 - Part 7: Update test262 exclusions. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D42159

--HG--
extra : source : 5bc09a0dde11f074c3d5abad0031887222dc5c8c
2019-08-16 20:21:06 +00:00
André Bargull
a3d57b3753 Bug 1574180 - Part 6: Update test262. r=khyperia
Update test262 to get the changes from <https://github.com/tc39/test262/pull/2299>.

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

--HG--
rename : js/src/tests/test262/language/statements/class/elements/prviate-accessor-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/private-accessor-is-visible-in-computed-properties.js
rename : js/src/tests/test262/language/statements/class/elements/prviate-method-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/private-method-is-visible-in-computed-properties.js
extra : source : de51f104550cb6838cc24ae198a28828ff8b384a
2019-08-16 20:20:17 +00:00
André Bargull
389967d506 Bug 1574180 - Part 5: Update test262 features list. r=khyperia
Depends on D42156

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

--HG--
extra : source : 69a6c6867bdee8c88418bba0e51ac5ee7ff2a137
2019-08-16 20:19:30 +00:00
André Bargull
c989d4ce91 Bug 1574180 - Part 4: Update comment for "name" property of TypeErrorThrower. r=khyperia
Depends on D42155

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

--HG--
extra : source : e2a74d92bdab90b336f5712f9039a827a635ad48
2019-08-16 20:19:23 +00:00
André Bargull
da28439836 Bug 1574180 - Part 3: Remove special-case for inferred empty name string. r=khyperia
An absent name and an empty string as the inferred name are now
indistinguishable, so we can remove the special case for empty strings in
ObjectEmitter.

Depends on D42154

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

--HG--
extra : source : 9d1a72c0bb0cb0f3350302187bd68ee013640d7a
2019-08-16 20:19:21 +00:00
André Bargull
4e76af3445 Bug 1574180 - Part 2: Assign "name" property for anonymous class expressions. r=khyperia
Default the "name" property of anonymous class expressions to the empty string
by removing the special case in `JSFunction::infallibleGetUnresolvedName()`.
With that change applied, `infallibleGetUnresolvedName()` never returns nullptr,
so we can remove nullptr handling in its callers. And additionally
`JSFunction::getUnresolvedName()` can be changed back to use `MutableHandleValue`
as its parameter, which also (re-)aligns the function with `getUnresolvedLength()`.

Depends on D42153

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

--HG--
extra : source : 721c8caa85e358e4ecc7943a30a9f9fda20cd753
2019-08-16 20:19:14 +00:00
André Bargull
2da2c57927 Bug 1574180 - Part 1: Use function closures instead of bound functions for cached getter functions. r=jorendorff
This ensures an empty string is used for the name and actually also matches
the spec since <https://github.com/tc39/ecma402/pull/208>.

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

--HG--
extra : source : 782ab98dcdc66444d76c0c2fd073f4cceb70e16f
2019-08-20 13:05:57 +00:00
Narcis Beleuzu
d27bf6c831 Backed out 7 changesets (bug 1574180) for jsreftest failures on resolve-element-function-name.js . CLOSED TREE
Backed out changeset 69a6c6867bde (bug 1574180)
Backed out changeset e2a74d92bdab (bug 1574180)
Backed out changeset 9d1a72c0bb0c (bug 1574180)
Backed out changeset 721c8caa85e3 (bug 1574180)
Backed out changeset 782ab98dcdc6 (bug 1574180)
Backed out changeset de51f104550c (bug 1574180)
Backed out changeset 5bc09a0dde11 (bug 1574180)

--HG--
rename : js/src/tests/test262/language/statements/class/elements/private-accessor-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/prviate-accessor-is-visible-in-computed-properties.js
rename : js/src/tests/test262/language/statements/class/elements/private-method-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/prviate-method-is-visible-in-computed-properties.js
2019-08-20 19:32:56 +03:00
Andrew McCreight
4797778437 Bug 1573958 - Fix browser_temporary_permissions.js to work with Fission. r=kmag
This test runs on a cross-process iframe, so some code has to get
moved into a call to SpecialPowers.spawn().

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

--HG--
extra : moz-landing-system : lando
2019-08-20 16:14:05 +00:00
Brindusan Cristian
746dfe8e6f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-08-20 19:11:43 +03:00
Brindusan Cristian
e39319dacc Merge inbound to mozilla-central. a=merge
--HG--
rename : devtools/client/debugger/src/utils/workers.js => devtools/client/debugger/src/utils/threads.js
2019-08-20 19:06:08 +03:00
Paul Zuehlcke
a05cee34df Bug 1574130 - Updated ControlCenter.jsm to use SitePermissions principal methods. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42474

--HG--
extra : moz-landing-system : lando
2019-08-20 12:14:32 +00:00
Frédéric Wang
926e8f6c74 Bug 1575167 - Export MathML mathcolor, mathbackground and displaystyle reftests to WPT. r=emilio
These are only file renaming, metadata/comments addition, changing the way
Ahem is included and other minor formatting changes. The MathML tests itself
are not modified.

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

--HG--
rename : layout/reftests/mathml/displaystyle-1-ref.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-011-ref.html
rename : layout/reftests/mathml/displaystyle-1.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-011.html
rename : layout/reftests/mathml/displaystyle-2-ref.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-012-ref.html
rename : layout/reftests/mathml/displaystyle-2.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-012.html
rename : layout/reftests/mathml/displaystyle-3-ref.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-013-ref.html
rename : layout/reftests/mathml/displaystyle-3.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-013.html
rename : layout/reftests/mathml/displaystyle-4-ref.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-014-ref.html
rename : layout/reftests/mathml/math-display-ref.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-015-ref.html
rename : layout/reftests/mathml/math-display.html => testing/web-platform/tests/mathml/relations/css-styling/displaystyle-015.html
rename : layout/reftests/mathml/mathbackground-1-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathbackground-001-notref.html
rename : layout/reftests/mathml/mathbackground-2-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathbackground-002-notref.html
rename : layout/reftests/mathml/mathbackground-3-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathbackground-003-notref.html
rename : layout/reftests/mathml/mathbackground-4-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathbackground-004-notref.html
rename : layout/reftests/mathml/mathcolor-1-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathcolor-001-notref.html
rename : layout/reftests/mathml/mathcolor-2-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathcolor-002-notref.html
rename : layout/reftests/mathml/mathcolor-3-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathcolor-003-notref.html
rename : layout/reftests/mathml/mathcolor-4-ref.xml => testing/web-platform/tests/mathml/relations/css-styling/mathcolor-004-notref.html
extra : moz-landing-system : lando
2019-08-20 11:26:44 +00:00
Paul Zuehlcke
619584035d Bug 1574110 - Updated tabbrowser.js SitePermissions call to use principal. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42321

--HG--
extra : moz-landing-system : lando
2019-08-20 12:29:26 +00:00
Micah Tigley
34b2328e68 Bug 1572825 - Add telemetry for tracker "Learn More" links. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D41977

--HG--
extra : moz-landing-system : lando
2019-08-20 12:38:08 +00:00
Paul Zuehlcke
f568195330 Bug 1574124 - Updated PermissionUI.jsm to use SitePermissions principal methods. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42337

--HG--
extra : moz-landing-system : lando
2019-08-20 12:15:00 +00:00
André Bargull
f2c31db645 Bug 1574180 - Part 5: Update test262 features list. r=khyperia
Depends on D42156

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

--HG--
extra : moz-landing-system : lando
2019-08-16 20:19:30 +00:00
André Bargull
6449cb3bd4 Bug 1574180 - Part 4: Update comment for "name" property of TypeErrorThrower. r=khyperia
Depends on D42155

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

--HG--
extra : moz-landing-system : lando
2019-08-16 20:19:23 +00:00
André Bargull
2900da90f1 Bug 1574180 - Part 3: Remove special-case for inferred empty name string. r=khyperia
An absent name and an empty string as the inferred name are now
indistinguishable, so we can remove the special case for empty strings in
ObjectEmitter.

Depends on D42154

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

--HG--
extra : moz-landing-system : lando
2019-08-16 20:19:21 +00:00
André Bargull
5e05a4da7e Bug 1574180 - Part 2: Assign "name" property for anonymous class expressions. r=khyperia
Default the "name" property of anonymous class expressions to the empty string
by removing the special case in `JSFunction::infallibleGetUnresolvedName()`.
With that change applied, `infallibleGetUnresolvedName()` never returns nullptr,
so we can remove nullptr handling in its callers. And additionally
`JSFunction::getUnresolvedName()` can be changed back to use `MutableHandleValue`
as its parameter, which also (re-)aligns the function with `getUnresolvedLength()`.

Depends on D42153

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

--HG--
extra : moz-landing-system : lando
2019-08-16 20:19:14 +00:00
André Bargull
cc009c6b87 Bug 1574180 - Part 1: Use function closures instead of bound functions for cached getter functions. r=jorendorff
This ensures an empty string is used for the name and actually also matches
the spec since <https://github.com/tc39/ecma402/pull/208>.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 13:05:57 +00:00
André Bargull
361e8143de Bug 1574180 - Part 6: Update test262. r=khyperia
Update test262 to get the changes from <https://github.com/tc39/test262/pull/2299>.

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

--HG--
rename : js/src/tests/test262/language/statements/class/elements/prviate-accessor-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/private-accessor-is-visible-in-computed-properties.js
rename : js/src/tests/test262/language/statements/class/elements/prviate-method-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/private-method-is-visible-in-computed-properties.js
extra : moz-landing-system : lando
2019-08-16 20:20:17 +00:00
André Bargull
a54376e8fa Bug 1574180 - Part 7: Update test262 exclusions. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D42159

--HG--
extra : moz-landing-system : lando
2019-08-16 20:21:06 +00:00
Kirk Steuber
a10a13a1c4 Bug 1569388 - Don't overwrite real error codes with cancel codes when removing BITS jobs r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D41805

--HG--
extra : moz-landing-system : lando
2019-08-19 22:36:55 +00:00
Chris Muldoon
9dc25e00c8 Bug 1574366 - Remove flexbox from .node.object.node for better formatting. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D42440

--HG--
extra : moz-landing-system : lando
2019-08-20 15:39:53 +00:00
Dão Gottwald
26f3378b01 Bug 1561533 - Increase quantumbar input size on focus and visually integrate the view. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D42149

--HG--
extra : moz-landing-system : lando
2019-08-20 15:14:25 +00:00
Perry Jiang
4d1b5b9a5c Bug 1552945 - Start Service Workers in the parent process with parent-intercept. r=asuth,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D32492

--HG--
extra : moz-landing-system : lando
2019-08-20 15:21:11 +00:00
Perry Jiang
7753ae42bf Bug 1552945 - Send push events to ServiceWorkerRegistrationActor's active Service Worker r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D31906

--HG--
extra : moz-landing-system : lando
2019-08-20 15:21:02 +00:00
Perry Jiang
cbf68e6857 Bug 1552945 - Merge ServiceWorkerRegistrationFronts and ServiceWorker WorkerTargetFronts on their IDs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D31905

--HG--
extra : moz-landing-system : lando
2019-08-20 15:20:54 +00:00
Perry Jiang
4d21c36f04 Bug 1552945 - Expose a ServiceWorker's WorkerPrivate's ID on its ServiceWorkerFront. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D31904

--HG--
extra : moz-landing-system : lando
2019-08-20 15:20:47 +00:00
Perry Jiang
a7ce0c3b9e Bug 1552945 - Allow a WorkerPrivate's creator to set its ID. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D31903

--HG--
extra : moz-landing-system : lando
2019-08-20 15:20:40 +00:00
Brian Hackett
3281985555 Bug 1573970 - Pause on debugger statements when using web replay, r=loganfsmyth.
Differential Revision: https://phabricator.services.mozilla.com/D42243

--HG--
extra : moz-landing-system : lando
2019-08-20 15:16:18 +00:00
Nan Jiang
0ce65ed8c4 Bug 1575228 - Bump the holdback group to 5% for extended triplets rollout r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D42652

--HG--
extra : moz-landing-system : lando
2019-08-20 15:12:24 +00:00
Paul Zuehlcke
f230f7f918 Bug 1574105 - Updated browser-addons.js SitePermissions call to use principal. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42318

--HG--
extra : moz-landing-system : lando
2019-08-20 12:13:32 +00:00
Razvan Caliman
2df504c779 Bug 1575186 - Ensure Shape Path Editor can be toggled for basic shapes with default values. r=pbro
The patch for [Bug 1559796](https://bugzilla.mozilla.org/show_bug.cgi?id=1559796) has changed the computed value for the default `circle()` basic shape (no coordinates). It now reflects the approach used with default `ellipse()` basic shape (no coordinates), thus addressing the issue with inconsistency raised in Bug 1521508.

The change means the Shape Path Editor's parsing of `circle()` and `ellipse()` need to account for the missing "closest-side" default radius. This patch addresses this need and introduces a test to check whether the Shape Path Editor successfully triggers for basic shapes with default values.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 13:59:07 +00:00
Sebastian Streich
db893cf0d7 Bug 1561056 - Pass CSP on Link-drop r=ckerschb,Gijs,farre
***
Fix linux build

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

--HG--
extra : moz-landing-system : lando
2019-08-20 12:43:02 +00:00