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

722986 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard 34ffcfae65 Bug 1660107 - Set proper mimetype. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D87677
2020-08-20 01:29:48 +00:00
Mark Striemer 25d8e7dcb2 Bug 1660061 - Update print preview using the preview browser r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D87655
2020-08-20 03:24:46 +00:00
Cosmin Sabou d54210d490 Backed out changeset 4d700219feab (bug 1571247) for xpcshell failures on test_getMIMEInfo_pdf.js. CLOSED TREE 2020-08-20 06:20:21 +03:00
Mark Striemer 862e95da94 Bug 1660023 - Remember Save to PDF as last used printer r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D87605
2020-08-19 21:55:20 +00:00
Bogdan Tara 48d00fff60 Backed out changeset ebf8dfa204ea (bug 1658299) for test_printer_default_settings.html failures CLOSED TREE 2020-08-20 05:36:37 +03:00
Tom Prince 02890a5a1a Bug 1658468: Only run system-symbols-upload tasks on cron; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D86663
2020-08-11 01:50:41 +00:00
Mike Hommey 072e615263 Bug 1658515 - Upgrade cctools-port and libtapi. r=dmajor
This brings support for tbd-v4, used in SDK 11.0.

Differential Revision: https://phabricator.services.mozilla.com/D86689
2020-08-18 13:27:07 +00:00
Jan-Ivar Bruaroey 3afcb44f61 Bug 1652884 - Temporarily disable test_peerConnection_trackDisabling.html over bug 1660144 r=karlt
Depends on D87539

Differential Revision: https://phabricator.services.mozilla.com/D87679
2020-08-20 01:55:12 +00:00
Jan-Ivar Bruaroey bd2c7c692d 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-20 01:55:12 +00:00
Andreas Pehrson c25001fab6 Bug 1652884 - Make disabled tracks, that haven't seen a frame, black. r=jib
This affects HTMLMediaElement, MediaRecorder and RTCPeerConnection, which are
the 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.

Depends on D87127

Differential Revision: https://phabricator.services.mozilla.com/D87128
2020-08-19 22:18:30 +00:00
Andreas Pehrson c61e904628 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 22:18:33 +00:00
Andreas Pehrson 71c232e8df 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 22:18:37 +00:00
Andreas Pehrson 4ce501e4b4 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 22:18:40 +00:00
Andreas Pehrson 4e2a09e78c Bug 1652884 - Maintain direct listener disabled state also when adding/removing to source tracks. r=karlt
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 22:18:22 +00:00
Andreas Pehrson 976bac9b62 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 22:18:44 +00:00
Jan-Ivar Bruaroey 2c20af2dc7 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 22:17:58 +00:00
Jan-Ivar Bruaroey ece4d97b2f Bug 1652884 - Produce black on UA camera mute. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D86071
2020-08-19 22:18:01 +00:00
Jan-Ivar Bruaroey c27b3d3a89 Bug 1652884 - Rename MediaTrack::SetEnabled to SetDisabledTrackMode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D86070
2020-08-19 22:18:04 +00:00
Jan-Ivar Bruaroey 50f3635eb9 Bug 1652884 - Test combination of disabling track & muting camera. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D84268
2020-08-19 22:18:07 +00:00
Jan-Ivar Bruaroey c79d3ea44b 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 22:18:11 +00:00
Jan-Ivar Bruaroey 6c76cfdfca Bug 1652884 - Test browser muting/unmuting of camera. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D84223
2020-08-19 22:18:15 +00:00
Jan-Ivar Bruaroey 27cba52636 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 22:18:19 +00:00
alwu 9014bab5e1 Bug 1620686 - request longer test time for 'browser_media_control_non_eligible_media.js'. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D87538
2020-08-19 12:48:41 +00:00
Bogdan Tara bb53c52f1f Backed out changeset f3e168f314be (bug 1604331) for rust.MP4Metadata failures CLOSED TREE 2020-08-20 05:05:05 +03:00
Bogdan Tara 7925255be6 Backed out changeset a4a25c487d34 (bug 1622995) for disable_controls_reposition.html failures CLOSED TREE 2020-08-20 05:03:21 +03:00
alwu 4d32542e6d Bug 1659064 - resolve promise after element leaves fullscreen. r=bryce
Resolve promise after elements leaves fullscreen to ensure the function works as its naming.

Differential Revision: https://phabricator.services.mozilla.com/D87540
2020-08-19 13:37:42 +00:00
Botond Ballo 14424bce96 Bug 1659636 - Use the effective scroll offset and zoom in NotifyUpdateScreenMetrics. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D87666
2020-08-20 01:16:14 +00:00
Botond Ballo 326d32c3bd Bug 1659636 - Fix CompositorBridgeParent.h include in AsyncCompositionManager.h. r=kats
Being in gfx/layers/composite, AsyncCompositionManager.h does not
get to include CompositorBridgeParent.h (which is in gfx/layers/ipc)
as simply '#include "CompositorBridgeParent.h"'.

Differential Revision: https://phabricator.services.mozilla.com/D87665
2020-08-20 01:15:51 +00:00
Botond Ballo 9fd7a44c13 Bug 1659636 - Fix variable naming. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D87664
2020-08-20 01:15:38 +00:00
Agi Sferro fcb9b12423 Bug 1634504 - Remove deprecated registerWebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87512
2020-08-20 01:15:00 +00:00
Ting-Yu Lin a594ed407c Bug 1633031 Part 3 - Remove unused parameters from DoFlexLayout(), ComputeMainSize(), and ComputeCrossSize(). r=dholbert
We do the flex algorithm by assuming the available block-size is
unconstrained. Thus, we can remove `availableBSizeForContent` and
`aStatus` passing to DoFlexLayout(), ComputeMainSize(), and
ComputeCrossSize().

Differential Revision: https://phabricator.services.mozilla.com/D87109
2020-08-19 21:10:48 +00:00
Ting-Yu Lin 290f578f8a Bug 1633031 Part 2 - Add reftests for fragmenting multi-line column-oriented flex containers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D87108
2020-08-19 21:22:34 +00:00
Ting-Yu Lin 7cb8492735 Bug 1633031 Part 1 - Stop considering available block-size when wrapping flex lines in multi-line column-oriented flex container. r=dholbert
Although this goes against the suggestion of the sample algorithm in the
spec, this brings the layout of the multi-line column-oriented flex
container in paginated context closer to the layout with no
fragmentation. This also matches Google Chrome's behavior.

Tweak flexbox-unbreakable-child-2.html so that it matches the rendering
as of this patch. Change the height of `.muticol` and the removal of
border in `flexContainer` to let two flex items fit exactly into the
flex container's height, making reference easier to write.

Differential Revision: https://phabricator.services.mozilla.com/D87107
2020-08-19 21:10:01 +00:00
Jeff Gilbert 0d33c47098 Bug 1656545 - Range cannot support nullptr with non-zero length. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87528
2020-08-20 00:33:52 +00:00
Erik Nordin 851b8f7c70 Bug 1658299 - Part 1: Add createDefaultSettings() to nsIPrinter for CUPS r=jwatt,emilio,geckoview-reviewers,owlish
This patch adds a createDefaultSettings() method to nsIPrinter to
initialize a default print settings object specific to that printer.
It implements the functionality for Linux and macOS but adds only stubs
for Windows.

Differential Revision: https://phabricator.services.mozilla.com/D87125
2020-08-20 00:23:59 +00:00
Gijs Kruitbosch 872ba72cf7 Bug 1571247 - don't default to the jfif extension for image/jpeg files as suggested by the Windows registry, r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D87371
2020-08-20 00:25:18 +00:00
Bogdan Tara 789e572738 Backed out changeset c209cb1c0341 (bug 1658146) for browser_resources_network_events.js failures CLOSED TREE 2020-08-20 03:17:05 +03:00
Bogdan Tara 6d322bffe4 Backed out 5 changesets (bug 1633322, bug 1634504) for touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset 3f866663b0aa (bug 1634504)
Backed out changeset 953d128f4c51 (bug 1633322)
Backed out changeset 84454fa520be (bug 1633322)
Backed out changeset 1aa6be497177 (bug 1633322)
Backed out changeset 9be548b05e86 (bug 1633322)
2020-08-20 03:01:02 +03:00
Bogdan Tara a904137456 Backed out changeset 0327b662a05f (bug 1659674) for nsStorageStream related central bustage CLOSED TREE 2020-08-20 02:58:41 +03:00
Gerald Squelart 5601ec576f Bug 1659901 - Rework profiler's TLS accesses - r=mstange
To ensure correct usage of TLSs in the profiler, they are now better encapsulated so that:
- init() is called once and its result is cached. (TLSREGISTEREDThread::Init() doesn't need proof of the PSLock, because it's using thread-safe function-static initializers.)
- get() and set() always init() as needed, or in some particular cases strongly assert that init() was successful.

Also, a null-check was missing in profiler_init_threadmanager().

Depends on D87588

Differential Revision: https://phabricator.services.mozilla.com/D87589
2020-08-19 18:26:32 +00:00
Gerald Squelart 2a9a115783 Bug 1657174 - Added more (un)registration TLS assertions - r=mstange
Assertions are also clarified with messages, to better distinguish the same tests in different locations.

Assertions should now cover all cases:
- NEW: After registering a thread in the profiler with `CorePS::AppendRegisteredThread`, the TLS should be set to that thread.
- NEW: If `profiler_register_thread` is called again, the TLS should still be set to that thread.
- When `profiler_unregister_thread` is first called, the TLS should still be set to that thread (that's the assertion currently trigering this bug 1657174),
- NEW: When `profiler_unregister_thread` is first called and after we remove the thread with `CorePS::RemoveRegisteredThread`, the TLS should now be null.
- If `profiler_unregister_thread` is called again (or with a never-registered thread), the TLS should be null.

This is a further exploratory patch for bug 1657174, this will not prevent crashes, but hopefully it should give a bit more information, at least a smaller range in which the possible presumed registration/TLS race happens.

Differential Revision: https://phabricator.services.mozilla.com/D87588
2020-08-19 17:49:12 +00:00
Agi Sferro b5e6b3f840 Bug 1634504 - Remove deprecated registerWebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87512
2020-08-19 22:59:22 +00:00
John Lin 8f8f4bf7a7 Bug 1604331 - read source buffer only when necessary. r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D59966
2020-08-18 02:54:00 +00:00
Hiroyuki Ikezoe 50f539d050 Bug 1657550 - Rewrite nsDocumentViewer::PrintPreviewScrollToPage. r=emilio
This change consists of;

1) Use switch statement for the given PrintPreview Navigation type.
2) Simply iterate over the children of nsPageSequenceFrame for
   PRINTPREVIEW_GOTO_PAGENUM
3) Use GetCurrentSheetFrameAndPageNumber for PRINTPREVIEW_PREV_PAGE and
   PRINTPREVIEW_NEXT_PAGE so that it should now match
   printPreviewCurrentPageNumber
   (that means the edge case where the current scroll position is in
    the gap between pages has been fixed by this change)
4) Scroll to the position where the target frame is positioned at the center of
   the print preview scroll port in the cases of PRINTPREVIEW_PREV_PAGE,
   PRINTPREVIEW_NEXT_PAGE and PRINTPREVIEW_GOTO_PAGENUM

4) is a bit debatable but it can be now easily modified by changing
ComputeScrollPositionFrameAtCenter later if it turns out the current way is not
reasonable.

Differential Revision: https://phabricator.services.mozilla.com/D87548
2020-08-19 22:50:54 +00:00
Hiroyuki Ikezoe 1f301a0a87 Bug 1657550 - Make GetCurrentPageNumberInPrintPreview return the current sheet frame along with the current page. r=emilio
We need the current sheet frame for PRINTPREVIEW_NEXT_PAGE and
PRINTPREVIEW_PREV_PAGE cases.

Differential Revision: https://phabricator.services.mozilla.com/D87547
2020-08-19 22:50:39 +00:00
Hiroyuki Ikezoe 692b6393c2 Bug 1657550 - Factor out the function to get the current page number in the print preview. r=emilio
We have to use the logic in the function for
nsDocumentViewer::PrintPreviewScrollToPage in subsequent changes.

Differential Revision: https://phabricator.services.mozilla.com/D87546
2020-08-19 22:50:29 +00:00
Hiroyuki Ikezoe ce091f13c6 Bug 1657550 - Preserve x-axis scroll position on printPreviewScrollToPage call in any cases. r=emilio
That's what we've done for PRINTPREVIEW_PREV_PAGE, PRINTPREVIEW_NEXT_PAGE
and PRINTPREVIEW_GOTO_PAGENUM.

Differential Revision: https://phabricator.services.mozilla.com/D87545
2020-08-19 22:50:15 +00:00
Hiroyuki Ikezoe 8c4b16591d Bug 1657550 - Use `scrollTopMax` position for PRINTPREVIEW_END. r=emilio
I suppose PRINTPREVIEW_END doesn't mean the last page.

Differential Revision: https://phabricator.services.mozilla.com/D87544
2020-08-19 22:50:05 +00:00
Hiroyuki Ikezoe 3a5eb8feb0 Bug 1657550 - Copy nsDocumentViewer::PrintPreviewScrollToPage for the old print preview UI. r=emilio
So that we can keep using the logic in the old print preview UI.

For the new print preview UI, the original PrintPreviewScrollToPage will be
modified gradually in subsequent changes.

Differential Revision: https://phabricator.services.mozilla.com/D87543
2020-08-19 22:51:07 +00:00
James Teh 13aed820dc Bug 1622995: Expose video controls to a11y even when visually hidden. r=MarcoZ,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D87403
2020-08-19 10:32:04 +00:00