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

723026 Коммитов

Автор SHA1 Сообщение Дата
Jan-Ivar Bruaroey 66e25e78e0 Bug 1652884 - Be ready to mute cameras while mobile is in the background r=agi,pehrsons
(more work needed).

Differential Revision: https://phabricator.services.mozilla.com/D87539
2020-08-19 17:53:55 +00:00
Andreas Pehrson 6c5ce9547e Bug 1652884 - Make disabled tracks, that haven't seen a frame, black. r=jib
This affects HTMLMediaElement and MediaRecorder, which are the only implementors
of NotifyEnabledStateChanged.

This use case is going to become more common as users will be able to globally
mute cameras before requesting one. While muted, the camera is off and no frames
will flow. The old logic for showing disabled video tracks as black relied on a
frame appearing that could be turned black.

With this patch in this case we will create a frame if none has been seen yet,
and it will have a hardcoded size.

Differential Revision: https://phabricator.services.mozilla.com/D87128
2020-08-19 12:48:09 +00:00
Andreas Pehrson 751b31f054 Bug 1652884 - Add state for camera muting to MediaManager. r=jib
This allows newly created window listeners, in MediaManager instances where the
cameras have already been muted, to get the right state.

Differential Revision: https://phabricator.services.mozilla.com/D87127
2020-08-19 02:40:29 +00:00
Andreas Pehrson 262d04f090 Bug 1652884 - Make MediaPipelineTransmit listen for track enabled state changes from the graph. r=jib
Previously it listened for them on main thread, as notified by the
MediaStreamTrack it was transmitting directly. With this patch it
listens for them through the TrackListener in the graph, and will
get notified when any track prior to the MediaStreamTrack's main
track in the graph changes enabled state as well.

Depends on D86926.

Differential Revision: https://phabricator.services.mozilla.com/D86931
2020-08-19 02:40:10 +00:00
Andreas Pehrson a35c31b985 Bug 1652884 - Keep a disabled video track black until new frames arrive after enabling. r=jib
Before this patch, re-enabling a camera track would first render an old frame
(from when it got disabled), then when the camera has started anew, render the
new frames.

With the patch, the black frame from disabling remains until the camera has
started and is sending new frames.

Differential Revision: https://phabricator.services.mozilla.com/D86926
2020-08-19 11:41:58 +00:00
Andreas Pehrson 153f7d04e4 Bug 1652884 - Maintain direct listener disabled state also when adding/removing to source tracks.
r=karlt

This follows on the same logic ForwardedInputTrack is using.

Note that this patch was reviewed out of band at
https://phabricator.services.mozilla.com/D86925#inline-497307

Depends on D86925

Differential Revision: https://phabricator.services.mozilla.com/D87581
2020-08-19 11:42:13 +00:00
Andreas Pehrson 0764afe22d Bug 1652884 - Propagate disabled mode to consumer tracks in the graph. r=karlt
This enables a use case where MediaManager disables a MediaStreamTrack's input
track, and all listeners of NotifyEnabledStateChanged on the MediaStreamTrack's
main track will get notified.

There can be 1 input track for N MediaStreamTracks, so this simplifies how many
tracks will need to be tracked by MediaManager and explicitly disabled in the
graph.

Depends on D86072

Differential Revision: https://phabricator.services.mozilla.com/D86925
2020-08-19 12:11:38 +00:00
Jan-Ivar Bruaroey 13898b8081 Bug 1652884 - Mute new cam tracks on start when window has cameras UA muted, to avoid JS circumventing mute. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D86072
2020-08-19 14:18:54 +00:00
Jan-Ivar Bruaroey 7ea5227cb0 Bug 1652884 - Produce black on UA camera mute. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D86071
2020-08-19 14:03:35 +00:00
Jan-Ivar Bruaroey f5e002a857 Bug 1652884 - Rename MediaTrack::SetEnabled to SetDisabledTrackMode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D86070
2020-08-19 14:03:32 +00:00
Jan-Ivar Bruaroey f3fd0b5d66 Bug 1652884 - Test combination of disabling track & muting camera. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D84268
2020-08-19 14:03:26 +00:00
Jan-Ivar Bruaroey 67fdc2c0a2 Bug 1652884 - Test that mute/unmute track events fire from UA muting camera. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D84243
2020-08-19 14:03:17 +00:00
Jan-Ivar Bruaroey a27d031cb6 Bug 1652884 - Test browser muting/unmuting of camera. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D84223
2020-08-19 14:28:34 +00:00
Jan-Ivar Bruaroey 31c3ad60ff Bug 1652884 - Add observer messages to mute/unmute all camera tracks. r=pehrsons
Add UA (user agent) muting, a spec-supported feature that somewhat mirrors
track enabling/disabling, except only the browser controls it. The effect
on track sinks is additive: must be unmuted and enabled for there to be
output.

Fire mute/unmute events on JS, and observably set track.muted independent
of track.enabled (reusing existing infrastructure already in use by
RTCPeerConnection tracks).

Low-level: add mDeviceMuted and SetMutedFor() modeled after mDeviceEnabled
and SetEnabledFor() as parallel device state for both camera and microphone for
symmetry and maintenance.

High-level: Only expose messages to mute/unmute camera at the moment, since
that is what is immediately required for Android in bug 1564451.

Differential Revision: https://phabricator.services.mozilla.com/D84222
2020-08-19 14:03:09 +00:00
Simon Giesecke cfd7d0ea9c Bug 1659923 - Avoid unnecessary copies around Base64Encode. r=xpcom-reviewers,necko-reviewers,froydnj,valentin
This also adds some more variants of Base64Encode and Base64EncodeAppend.

Differential Revision: https://phabricator.services.mozilla.com/D87559
2020-08-19 17:45:16 +00:00
Severin 85f182245d Bug 1659860 - pref on pmgr doorhanger updates in non-nightly;r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D87519
2020-08-19 17:34:04 +00:00
Sam Foster 39bbdaf2ce Bug 1653607 - Add margins, color mode controls to the print UI. r=emalysz,fluent-reviewers,mstriemer,flod
* New PrintSettingSelect element for the margin and color-mode picker
* The destination-picker and color-mode picker now extend the PrintSettingSelect
* Drive-by change to have numCopies info use the PrintSettingNumber for consistency & code reuse
* Margin presets are retrieved from a defaultSettings object which is the settings for the current printer without the user pref values

Differential Revision: https://phabricator.services.mozilla.com/D86849
2020-08-19 17:23:18 +00:00
Cosmin Sabou 20b4e6503e Backed out changeset 621e0372d5a8 (bug 1659219) for mochitest failures on test_autofill_https_downgrade.html. CLOSED TREE 2020-08-19 20:40:50 +03:00
Henrik Skupin de474a283e Bug 1654628 - [marionette] Port WebDriver:SwitchToFrame and WebDriver:SwitchToParentFrame to JSWindowActor. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D84708
2020-08-19 17:24:24 +00:00
Henrik Skupin 7dad18b103 Bug 1654628 - [marionette] Ease handling of browsing contexts and current window. r=marionette-reviewers,maja_zf
With this patch a couple of changes are made to generally make it easier
to handle browsing contexts, and the current window. Basically this includes:

Since bug 1652932 landed the driver class keeps a reference
to the currently selected browsing context in content. As such
there is no need anymore to retrieve it from the framescript
each and every time. As side-effect this also removes the
async requirement and makes code better to read.

Similar handling for the browsing context exists for chrome scope,
which is also cached now, and no longer has to be retrieved via
the current window. With specifically this change "getCurrentURL"
for chrome scope correctly reports the location of the top-browsing
context, and not from the current one.

In the early days of Marionette a feature has been added to
work with embedded xul:browser elements. Those elemenets outside
of the tab browser have been tracked with "curFrame". Given that
until now there wasn't a single case to handle that, and the
code path is basically untested, it will be removed for now.

Differential Revision: https://phabricator.services.mozilla.com/D84707
2020-08-19 13:43:52 +00:00
Mark Striemer 5c558250f9 Bug 1660013 - Include .pdf extension when saving as PDF on macOS and linux r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D87602
2020-08-19 16:33:29 +00:00
Gijs Kruitbosch 3bf91e4532 Bug 1440677 - accept spaces and tabs in Content-Disposition header filename parameters because all the other browsers do, r=annevk,valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D87130
2020-08-19 16:10:20 +00:00
Tom Tung f3e1fbf443 Bug 1609625 - Align the name of key for TimeStamp errors; r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D87610
2020-08-19 16:33:09 +00:00
Tim Huang 587066cac4 Bug 1659762 - Extend telemetry probe 'tracking_protection_shield' to release channel. r=chutten,xeonchen
Differential Revision: https://phabricator.services.mozilla.com/D87465
2020-08-19 07:56:53 +00:00
Agi Sferro 52adf9f9c4 Bug 1659553 - Define charset in all mobile html tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87340
2020-08-19 16:20:23 +00:00
Michael Cooper ff83a641c9 Bug 1659842 - Make normandy.liveTelemetry accessible from consolidated targeting r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D87521
2020-08-19 10:31:51 +00:00
Tom Tung e116198cc4 Bug 1609625 - Deal with recorded time duration if it across sleep/wake; r=dom-workers-and-storage-reviewers,sg,janv
Depends on D83305

Differential Revision: https://phabricator.services.mozilla.com/D83524
2020-08-18 07:31:24 +00:00
Tom Tung 93f8af72df Bug 1609625 - Remove the probe for tracking time duration on initializing repositories and add a probe for tracking time duration on loading quota; r=dom-workers-and-storage-reviewers,sg,janv
Depends on D83304

Differential Revision: https://phabricator.services.mozilla.com/D83305
2020-08-18 07:53:15 +00:00
Jan Varga 246bfa7db7 Bug 1659962 - Add additional MOZ_ARG_* macros; r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D87579
2020-08-19 14:31:40 +00:00
Jan Varga 8773058b99 Bug 1659909 - ToResultInvoke should also work with RefPtr/nsCOMPtr on win32; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D87556
2020-08-19 14:34:06 +00:00
Mark Striemer d7e93fa211 Bug 1659463 - Include spin button for print zoom setting r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D87344
2020-08-19 14:18:42 +00:00
Jamie Nicol 456abf2772 Bug 1647797 - Add geckoview-junit tests for onPaintStatusReset. r=agi,geckoview-reviewers
Add test paintStatusReset() to ContentDelegateTest, which asserts that
onPaintStatusReset() is called after GeckoSession.setActive(false).

Add test capturePixelsSessionDeactivatedActivated() to ScreenshotTest, which
asserts that capturePixels() is successful if called when the session is
deactivated then reactivated, after waiting for the onPaintStatusReset() and
onFirstContentfulPaint() callbacks.

Differential Revision: https://phabricator.services.mozilla.com/D87463
2020-08-19 15:25:26 +00:00
longsonr e3b924526e Bug 1659783 - Fix use pointing to image elements r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D87571
2020-08-19 15:25:39 +00:00
Julian Descottes b34da59978 Bug 1642295 - Stop and start resource listening when switching targets r=ochameau
Depends on D86964

Differential Revision: https://phabricator.services.mozilla.com/D86965
2020-08-19 15:27:22 +00:00
Julian Descottes 8aecb1e6df Bug 1642295 - Enable server side resource watching by default r=ochameau
Depends on D86963

Just for reference for now, since this is incompatible with target switching.

Differential Revision: https://phabricator.services.mozilla.com/D86964
2020-08-19 14:08:40 +00:00
Julian Descottes 09373e81c9 Bug 1642295 - Do not check property order in WebConsole stub tests r=nchevobbe
Depends on D86962

Differential Revision: https://phabricator.services.mozilla.com/D86963
2020-08-19 14:08:39 +00:00
Julian Descottes e9bb161639 Bug 1642295 - Fold clearCachedMessage from ConsoleServiceListener into WebConsoleActor r=nchevobbe
Depends on D86961

Differential Revision: https://phabricator.services.mozilla.com/D86962
2020-08-19 14:08:37 +00:00
Julian Descottes 3507a935c3 Bug 1642295 - Fix shouldHandleMessage signature in platform-message DevTools resource r=nchevobbe
Depends on D86960

Differential Revision: https://phabricator.services.mozilla.com/D86961
2020-08-19 14:08:36 +00:00
Julian Descottes 2703786741 Bug 1642295 - Add missing Cu import in devtools/server/actors/object/utils.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86960
2020-08-19 14:08:36 +00:00
Jamie Nicol 54ed855193 Bug 1647797 - Add GeckoView API to listen for when contentful paint status has been reset. r=geckoview-reviewers,agi,esawin
Android-components listens to the GeckoView callback onFirstContentfulPaint to
track whether a contentful paint has occured, in order to decide when to
thumbnail a tab. Currently this gets fired once per tab.

However, when the GeckoSession is paused, we clear cached resources in the
compositor. This means that when the session is resumed, the compositor does not
have the necessary information to render the page (such as painted content
buffers, or the webrender display list). Because android-components attempts to
capture a new thumbnail immediately upon resuming, it ends up capturing a blank
thumbnail.

To fix this, add a new callback onPaintStatusReset() which is invoked when the
cached resources are cleared. Android-components can listen for this to be
informed when the contentful paint is no longer visible. It can then wait until
the subsequent contentful paint occurs before capturing the thumbnail.

Differential Revision: https://phabricator.services.mozilla.com/D87341
2020-08-19 15:24:14 +00:00
Dão Gottwald f5c045a279 Bug 1659745 - Fix history shortcut icon color. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D87568
2020-08-19 14:53:49 +00:00
Ricky Stewart d7122f80af Bug 1659836 - Don't log to telemetry for `mach create-mach-environment` r=mhentges,froydnj
`mach create-mach-environment` is what installs `glean_sdk` to the `mach` `virtualenv`. `create-mach-environment` runs on the system Python and we can't assume the system Python has `glean_sdk` installed.

Differential Revision: https://phabricator.services.mozilla.com/D87507
2020-08-19 14:03:46 +00:00
Simon Giesecke 0541f523d9 Bug 1659679 - Unify overflow handling in Base64.cpp encoding functions. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87461
2020-08-19 10:52:25 +00:00
Simon Giesecke 9352526320 Bug 1659674 - Change BulkWrite to return mozilla::Result. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87419
2020-08-19 14:39:03 +00:00
Simon Giesecke 55a58f0a61 Bug 847347 - Ensure that FileReader::GetAsDataURL does not trigger a release-mode assertion failure on large files. r=jstutte,froydnj
We avoid going through Substring which imposes a limit on the string length of
INT32_MAX and failing a MOZ_RELEASE_ASSERT otherwise.

This adds a new `Base64EncodeAppend` function that takes 8-bit char input and
produces 16-bit char output, and appends to an existing string, which is what
we need here to avoid doing a large copy. Base64EncodeHelper is generalized
to accomodate for that.

So in addition to fixing the defect, this also optimizes performance and
memory usage.

Differential Revision: https://phabricator.services.mozilla.com/D87413
2020-08-19 08:11:42 +00:00
Narcis Beleuzu d556294b23 Backed out changeset 07e51bfc3436 (bug 1633710) for xpcshell failure on test_permissions.js CLOSED TREE 2020-08-19 18:00:21 +03:00
pbz ba9d385d5f Bug 1659841 - Fixed title visibility test for commonDialog prompts on osx. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D87575
2020-08-19 14:28:44 +00:00
Rob Wu e668856070 Bug 1655190 - Always include third-party cookies in downloads r=Gijs,baku
The internal Download API and the downloads API for extensions trigger
download requests on behalf of users. These should be considered
first-party requests, and therefore not be restricted by sameSite cookie
restrictions or tracking protection.

This patch has two components:

- Ensure that triggeringPrincipal is always the system principal, to
  make sure that `BasePrincipal::IsThirdPartyChannel` returns false
  when called by `CookieCommons::IsSameSiteForeign`.

  The extension API implementation was the only consumer of the
  Download API where triggeringPrincipal wasn't the system principal
  (because loadingPrincipal is a moz-extension:-URI since bug 1579911).

- Set `channel.forceAllowThirdPartyCookie` to true, so that cookies are
  always included in download requests even if the preference
  `network.cookie.cookieBehavior` is 1 (aka BEHAVIOR_REJECT_FOREIGN).

Differential Revision: https://phabricator.services.mozilla.com/D87359
2020-08-19 11:07:37 +00:00
Narcis Beleuzu 0e759593c7 Backed out changeset 1b7eb33c8ec9 (bug 1656296) for bc failure on browser_test_mixed_content_download.js . CLOSED TREE 2020-08-19 16:39:33 +03:00
Sebastian Streich 4343b0f4b5 Bug 1633710 - Replace principal.uri.prepath with principal.prepath r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D82916
2020-08-19 12:58:46 +00:00