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

722950 Коммитов

Автор SHA1 Сообщение Дата
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
Ted Campbell 1585781cef Bug 1659107 - Factor out XDRSourceExtent method. r=arai
This will be reused by the Stencil XDR code later.

Differential Revision: https://phabricator.services.mozilla.com/D87071
2020-08-19 22:26:46 +00:00
Ted Campbell 3790ec21f7 Bug 1659107 - Move js::SourceExtent to SharedStencil.h. r=arai
This data structure is the same between ScriptStencil and BaseScript forms so
it belongs in SharedStencil.h. Avoid pulling in CompileOptions.h by passing
lineno/column explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D87070
2020-08-19 22:26:42 +00:00
Michael Kaply 67918a825e Bug 1293458 - Add the ability to fetch bookmarks by parent GUID. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D86585
2020-08-19 21:52:32 +00:00
Emma Malysz 61e739f4eb Bug 1653389, show error if page range input is invalid r=fluent-reviewers,sfoster,flod
Matches scale naming format.

Differential Revision: https://phabricator.services.mozilla.com/D87396
2020-08-19 22:17:03 +00:00
Emma Malysz d5e112fc03 Bug 1653389, validate page range setting r=sfoster,mstriemer,fluent-reviewers,flod
Creates two input elements for the start and end range.

Differential Revision: https://phabricator.services.mozilla.com/D85349
2020-08-19 22:17:00 +00:00
Chun-Min Chang bb6528a673 Bug 1658982 - P2: mach vendor rust r=cubeb-reviewers,kinetik
Depends on D87618

Differential Revision: https://phabricator.services.mozilla.com/D87619
2020-08-19 21:22:23 +00:00
Chun-Min Chang 7d7fad9888 Bug 1658982 - P1: Update cubeb-coreaudio to 91a7bb5 r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D87618
2020-08-19 21:22:20 +00:00
James Teh 9a38047a36 Bug 1659641: Remove redundancy from the label for the video controls volume slider. r=fluent-reviewers,Gijs
The fact that this control is a slider is communicated through its role.
Having the word "slider" in the label is thus redundant and results in unnecessary verbosity for screen reader users.

Differential Revision: https://phabricator.services.mozilla.com/D87401
2020-08-19 21:57:06 +00:00
James Teh 5038ab2404 Bug 1496851 part 3: Don't expose the buffering bar as a progress bar for a11y. r=MarcoZ,fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D87220
2020-08-19 21:56:45 +00:00
James Teh eb7b38c282 Bug 1496851 part 2: Improve a11y of the position scrubber in the video controls. r=MarcoZ,fluent-reviewers,Gijs
1. Label it.

2. Expose the position and duration as its value text.
    The raw numeric value exposed previously wasn't meaningful to users.

3. Hide the progressBar for a11y.
    While the scrubber and progressBar are visually combined, they are exposed as entirely separate controls for a11y.
    As well as duplicating information, progress bars are automatically reported by screen readers even if they aren't focused, which intrudes on the audio being played.

4. Remove tabindex="-1" on the progressBar.
    A progress element isn't focusable by default.
    tabindex="-1" makes it programmatically focusable (but not tabbable).
    This isn't interactive, so there's no reason for this to be programmatically focusable.
    Moreover, this is now aria-hidden and aria-hidden elements should never be focusable.

Differential Revision: https://phabricator.services.mozilla.com/D87400
2020-08-19 21:56:32 +00:00
James Teh 65f7ebfae4 Bug 1496851 part 1: Enable videocontrols to use Fluent. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D87399
2020-08-19 21:56:17 +00:00
James Teh 3f51028817 Bug 1659625: Expose DOMLocalization interface to UA widgets. r=zbraniecki,smaug
This is needed in order for UA widgets to use Fluent.

Differential Revision: https://phabricator.services.mozilla.com/D87389
2020-08-18 11:29:08 +00:00
Kirk Steuber b641fbf577 Bug 1658711 - Ensure that the PostUpdate task is called reliably r=mhowell
The PostUpdate task must always be called as the unelevated user, even if we didn't use the service, in order to ensure that we register the WDBA. Additionally, the PostUpdate task should always be run synchronously so that the elevated and unelevated PostUpdate tasks are guaranteed to run in order. This is important since the elevated PostUpdate unregisters the task and the unelevated PostUpdate re-registers it.

Differential Revision: https://phabricator.services.mozilla.com/D87509
2020-08-18 22:40:28 +00:00
Bogdan Tara 30eb420e4a Backed out 14 changesets (bug 1652884) for test_peerConnection_trackDisabling.html failures CLOSED TREE
Backed out changeset f83951453e94 (bug 1652884)
Backed out changeset fc697986d538 (bug 1652884)
Backed out changeset 20a10128b5e1 (bug 1652884)
Backed out changeset c99c32323c76 (bug 1652884)
Backed out changeset 991e8975f03d (bug 1652884)
Backed out changeset 9e9511e32cdd (bug 1652884)
Backed out changeset 605c1ac3081a (bug 1652884)
Backed out changeset dd6edf636659 (bug 1652884)
Backed out changeset 74a2f5a9eea2 (bug 1652884)
Backed out changeset b9f419aed12d (bug 1652884)
Backed out changeset 84e82e25929f (bug 1652884)
Backed out changeset 876dbad27af5 (bug 1652884)
Backed out changeset 8f60e3af2a19 (bug 1652884)
Backed out changeset de7537bda499 (bug 1652884)
2020-08-20 01:13:29 +03:00
James Willcox 1ea4dc253d Bug 1633322 - Consider content handling for `onTouchEventForResult` r=geckoview-reviewers,botond,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D86384
2020-08-19 21:31:46 +00:00
Botond Ballo 176a6fb1f9 Bug 1633322 - Add an input block callback facility to allow senders of input events to receive a delayed notification of whether the event was processed by the root APZC. r=kats
This facility is only implemented for in-process senders of
input events (i.e. not for GPU process setups).

Differential Revision: https://phabricator.services.mozilla.com/D79931
2020-08-19 21:31:47 +00:00
Botond Ballo 6a80e2975c Bug 1633322 - Turn APZEventResult::mHandledByRootApzc into a Maybe. r=kats,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D79930
2020-08-18 21:14:32 +00:00
Botond Ballo 619b447463 Bug 1633322 - Combine APZEventResult::mTargetIsRoot and mHitRegionWithApzAwareListeners into a single flag. r=kats,geckoview-reviewers,snorp
GeckoView uses these flags for the same purpose: to determine
whether or not to allow certain effects, such as pull to refresh
or dynamic toolbar movement, that should be limited to cases
where an event manipulates the root scrollable.

In a subsequent patch, we will enhance the API between APZ and
GeckoView such that in cases where we don't know for sure whether
an event will manipulate the root scrollable until it is
dispatched to content, we tell GV the answer asynchronously.
This is easier if there is only one flag to report.

Differential Revision: https://phabricator.services.mozilla.com/D79929
2020-08-18 21:14:35 +00:00
Kevin Jacobs d343e2c8e6 Bug 1655105 - land NSS NSS_3_56_BETA1 UPGRADE_NSS_RELEASE, r=jcj
2020-08-19  Kevin Jacobs  <kjacobs@mozilla.com>

	* tests/libpkix/certs/PayPalEE.cert:
	Bug 1659792 - Update libpkix tests with unexpired PayPal cert. r=jcj

	The in-tree `PayPalEE.cert `expired today. This patch replaces it
	with a current copy that expires on 12 Jan 2022.

	CI breakage before patch: https://treeherder.mozilla.org/#/jobs?repo
	=nss&revision=2890f342de631bf6774ac747515a8b5736e20d3f CI with the
	fix applied: https://treeherder.mozilla.org/#/jobs?repo=nss-
	try&revision=bd28f21d8acbcb15502bd4fc606fc9c0ed09c810

	[52c965eaffa1] [NSS_3_56_BETA1]

2020-08-18  Kevin Jacobs  <kjacobs@mozilla.com>

	* tests/interop/interop.sh:
	Bug 1659814 - Pull updated tls-interop for dependency fix. r=jcj

	[70376af425ae]

	* automation/release/nspr-version.txt:
	Bug 1656519 - NSS 3.56 should depend on NSPR 4.28. r=kaie

	[2890f342de63]

Differential Revision: https://phabricator.services.mozilla.com/D87648
2020-08-19 21:02:09 +00:00
Agi Sferro 6c2e9aa154 Bug 1660049 - Broadcast application-{background,foreground} to content processes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87646
2020-08-19 20:46:29 +00:00
Nika Layzell a60ef2778d Bug 1660091 - Lock fission.autostart on Android, r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D87654
2020-08-19 20:47:29 +00:00
Rob Lemley 8841e58687 Bug 1659385 - Only build defaultagent localization file if required. r=mhowell
Keep L10n repacks from trying to include defaultagent_localized.ini when it's
not needed. Thunderbird L10n repacks fail because this file is not present.

Differential Revision: https://phabricator.services.mozilla.com/D87622
2020-08-19 18:52:03 +00:00
Jan-Ivar Bruaroey b0175d3263 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 19:30:59 +00:00
Andreas Pehrson 6c6ea99dac 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 20:35:36 +00:00
Andreas Pehrson 5c9f35a9e6 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 19:30:57 +00:00
Andreas Pehrson 1fcd058234 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 19:30:56 +00:00
Andreas Pehrson c33a60774c 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 19:30:55 +00:00
Andreas Pehrson 19d29b33b2 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 19:30:59 +00:00
Andreas Pehrson bf9cda4197 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 19:30:55 +00:00
Jan-Ivar Bruaroey 26ccfce366 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 19:30:51 +00:00
Jan-Ivar Bruaroey 4943c93806 Bug 1652884 - Produce black on UA camera mute. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D86071
2020-08-19 19:30:51 +00:00
Jan-Ivar Bruaroey 9aec15aa0d Bug 1652884 - Rename MediaTrack::SetEnabled to SetDisabledTrackMode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D86070
2020-08-19 19:30:50 +00:00
Jan-Ivar Bruaroey 085f0fe3e1 Bug 1652884 - Test combination of disabling track & muting camera. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D84268
2020-08-19 19:30:49 +00:00
Jan-Ivar Bruaroey 14d93f2803 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 19:30:48 +00:00
Jan-Ivar Bruaroey 5a903e491c Bug 1652884 - Test browser muting/unmuting of camera. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D84223
2020-08-19 19:30:47 +00:00
Jan-Ivar Bruaroey 56ba99fa77 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 19:30:46 +00:00