Commit Graph

820052 Commits

Author SHA1 Message Date
Nika Layzell
f8c70c2d00 Bug 1800295 - Delete the Viaduct XPCOM interface, r=chutten,markh
This XPCOM interface was being initialized and used, and was unnecessary.
This patch removes it completely to simplify things, initializing
viaduct during xpcom startup instead. This is done rather than keeping
it lazy and tied to FOG startup, as the implementation just sets a
static atomic to a function pointer.

This makes no changes to anything which actually uses viaduct, which is
done through the previously mentioned static atomic.

Differential Revision: https://phabricator.services.mozilla.com/D162010
2022-11-14 22:46:11 +00:00
Mike Conley
b4b972abd7 Bug 1782203 - Add tests for the new Pin to Toolbar context menu item. r=willdurand,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161338
2022-11-14 22:41:10 +00:00
Mike Conley
1d27abe6b1 Bug 1782203 - Unbreak existing context menu tests for Unified Extensions UI mode. r=willdurand,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161337
2022-11-14 22:41:09 +00:00
Mike Conley
f12b95a7e7 Bug 1782203 - Add context menu items for pinning and unpinning addon buttons to the toolbar. r=willdurand,extension-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D161200
2022-11-14 22:41:09 +00:00
William Durand
1f63599506 Bug 1777484 - Enhance extension widgets in the unified extensions panel. r=rpl,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D161168
2022-11-14 22:41:08 +00:00
Geoff Brown
828b7b654d Bug 1800121 - Bump mozsystemmonitor to version 1.0.1; r=releng-reviewers,hneiva
Main differences from 1.0.0 are bug 1800055 and bug 1587715.

Differential Revision: https://phabricator.services.mozilla.com/D162033
2022-11-14 22:14:10 +00:00
Emilio Cobos Álvarez
2e7fa64ab1 Bug 1800133 - Difference in appUnitsPerDevPixel only matter when there's a clip chain. r=gfx-reviewers,gw
We might get unnecessary cache misses otherwise.

Depends on D161884

Differential Revision: https://phabricator.services.mozilla.com/D161888
2022-11-14 21:56:36 +00:00
Geoff Brown
a68fd4ff43 Bug 1800055 - Improve error handling in mozsystemmonitor and enable multiprocessing in some mozharness scripts; r=jmaher
The python multiprocessing module normally uses sys.executable to launch a new process. For some of our Windows test tasks, this does not work -- the launch fails with a FileNotFoundError. Calling multiprocessing.set_executable() with the configured python executable resolves this issue. I've limited this change to Windows and to the mozharness scripts known to have this problem: raptor, talos, and desktop_unittest.

While I'm here, I've also improved the exception handling in mozsystemmonitor, hoping to get better diagnostics and more sensible behavior if similar exceptions occur in future.

Differential Revision: https://phabricator.services.mozilla.com/D162022
2022-11-14 21:53:58 +00:00
Emilio Cobos Álvarez
1d9c5ef3d0 Bug 1800379 - Fix layout of network settings description with long text. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D161969
2022-11-14 21:44:12 +00:00
Mark Banner
300b106cea Bug 1800247 - Replace incorrect uses of two-argument Cu.reportError with console.error or equivalent (PictureInPictureChild.sys.mjs). r=pip-reviewers,niklas
Differential Revision: https://phabricator.services.mozilla.com/D161924
2022-11-14 21:27:47 +00:00
Mark Banner
47eab692fd Bug 1800247 - Replace incorrect uses of two-argument Cu.reportError with console.error or equivalent (RemoteSecuritySettings.jsm). r=keeler
Depends on D161922

Differential Revision: https://phabricator.services.mozilla.com/D161923
2022-11-14 21:27:47 +00:00
Mark Banner
eb858c768b Bug 1800247 - Replace incorrect uses of two-argument Cu.reportError with console.error or equivalent (AboutProtectionsParent.sys.mjs). r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D161922
2022-11-14 21:27:46 +00:00
Csoregi Natalia
ad773a278e Merge mozilla-central to autoland on a CLOSED TREE 2022-11-14 23:53:19 +02:00
Iulian Moraru
a4f75c98f2 Backed out 2 changesets (bug 1798621) for causing assertion failures on TableAccessible.cpp. CLOSED TREE
Backed out changeset acb437fb6aac (bug 1798621)
Backed out changeset fae2f0fc8cff (bug 1798621)
2022-11-14 23:45:30 +02:00
Iulian Moraru
707bbcff6a Backed out 7 changesets (bug 1798960) for causing bc failures on browser_startup_content_subframe.js.
Backed out changeset 37160a6f6d6e (bug 1798960)
Backed out changeset 955c6861b6df (bug 1798960)
Backed out changeset d4d687020c42 (bug 1798960)
Backed out changeset 9b95f762751a (bug 1798960)
Backed out changeset 3ab8c890086d (bug 1798960)
Backed out changeset ddd6e63f05dc (bug 1798960)
Backed out changeset 1810be532880 (bug 1798960)
2022-11-14 23:44:21 +02:00
Csoregi Natalia
0062309958 Merge autoland to mozilla-central. a=merge 2022-11-14 23:42:56 +02:00
Hiroyuki Ikezoe
9954b93ca8 Bug 1745969 - Stop doing SnapCoord. r=tnikkel
With doing SnapCoord we mis-consider non-scrollable frames as scrollable in APZ,
thus it causes unexpected overscroll gutters.

Depends on D161417

Differential Revision: https://phabricator.services.mozilla.com/D161419
2022-11-14 21:08:55 +00:00
Hiroyuki Ikezoe
88eb629a98 Bug 1745969 - Use "MozReftestInvalidate" event instead of onload to wait for ready to be tested. r=tnikkel
With onload event handler this reftest isn't in a good state, in other words
it's not stable on all platforms. Specifically on Windows 10 this testing html
is rendered at 1px upper than the reference html without pixel snapping on the
main-thread. Interestingly this reftest doesn't fail at least on my Windows 11
laptop without the pixel snapping. So there's something that metrics are timing
specific (e.g. font loading) to make this test flaky.

Differential Revision: https://phabricator.services.mozilla.com/D161417
2022-11-14 21:08:55 +00:00
Gijs Kruitbosch
7e7c04544c Bug 1329643 - implement generic richlistbox improvements for keyboard focus, r=Jamie,settings-reviewers,mossop
Rather than having each richlistbox consumer having to reinvent focus patterns for
buttons and menulists in its 'rich' items, let's just teach richlistbox and
richlistitem to not suck at keyboard navigation. That way we won't keep forgetting
to deal with this whenever we add new lists anywhere.

This allows us to remove the custom handling in sitePermissions.js, and the same
handling should be covered by the existing test, ie
browser/components/preferences/tests/browser_permissions_dialog.js

To summarize the desired keyboard behaviour:
- tab/shift-tab move focus to controls inside selected items only (not other rows)
- arrow keys move the list selection up/down
- when arrowing to move the list selection, focus moves with the selection if it
  was previously on a control in the previously selected item.

Differential Revision: https://phabricator.services.mozilla.com/D161528
2022-11-14 21:07:08 +00:00
Eitan Isaacson
5b4e1e6144 Bug 1798621 - P2: Add a11y-no-cache test variant to CI. r=taskgraph-reviewers,ci-and-tooling,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D161347
2022-11-14 20:41:55 +00:00
Eitan Isaacson
cc0707b146 Bug 1798621 - P1: Enable accessibility cache on Nightly. r=Jamie,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161346
2022-11-14 20:41:55 +00:00
Julian Descottes
65d787c72e Bug 1799256 - [wdspec] Do not assume domContentLoaded event ordering in /webdriver/tests/bidi/browsing_context/dom_content_loaded/dom_content_loaded.py r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D161981
2022-11-14 20:38:52 +00:00
Paul Zuehlcke
6f55a3b0cf Bug 1798960 - Hide cookie banner handling per-site toggle in MODE_DETECT_ONLY. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D161731
2022-11-14 20:38:18 +00:00
Paul Zuehlcke
2bd79111b2 Bug 1798960 - Add cookie banner clicking event tests. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D161729
2022-11-14 20:38:17 +00:00
Paul Zuehlcke
8b32bab9a9 Bug 1798960 - Update tests for MODE_DETECT_ONLY. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D161728
2022-11-14 20:38:17 +00:00
Paul Zuehlcke
12a3f7be63 Bug 1798960 - Dispatch cookiebannerdetected events when CookieBannerChild detects a banner and integrate with MODE_DETECT_ONLY. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D161727
2022-11-14 20:38:17 +00:00
Paul Zuehlcke
f664a58242 Bug 1798960 - Do not enable nsCookieInjector for service mode MODE_DETECT_ONLY. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D161726
2022-11-14 20:38:16 +00:00
Paul Zuehlcke
ea51e8b4e2 Bug 1798960 - Add a new cookie banner service mode MODE_DETECT_ONLY. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D161725
2022-11-14 20:38:16 +00:00
Paul Zuehlcke
b7f8c65989 Bug 1798960 - Dispatch a cookiebannerhandled event when the click component handled a banner. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D161630
2022-11-14 20:38:15 +00:00
Iulian Moraru
7f582a6faf Backed out changeset b82dc467416b (bug 1800079) for causing xpcshell failures on test_PingCentre.js. CLOSED TREE 2022-11-14 22:34:07 +02:00
Henrik Skupin
3e6059c23c Bug 1792875 - [webdriver-bidi] Store WebSocket connection details for WebDriver BiDi in a JSON file. r=webdriver-reviewers,jdescottes,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D158419
2022-11-14 20:08:24 +00:00
Chris H-C
8d7534d405 Bug 1800079 - Count PingCentre send failures r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D161851
2022-11-14 19:58:31 +00:00
Chris H-C
42f4ca0daf Bug 1784297 Remove "pseudo-main" ping r=TravisLong
Reverts "Bug 1785251 - Submit a Glean 'pseudo-main' ping when Telemetry submits a 'main' ping r=TravisLong"

Differential Revision: https://phabricator.services.mozilla.com/D161847
2022-11-14 19:58:20 +00:00
alwu
57cd2014e3 Bug 1795507 - part6 : ignore incorrect events during pausing. r=jolin
This patch solves the intermittent failure on the try server for
`test_playback_rate_playpause.html`.

The media engine has an internal issue which would dispatch events in
incorrect status. Eg. `ended` event should only happen during playback.

The root cause is that the media engine dispatches two `ended` events,
and the first one is incorrectly dispatched even if the playback hasn't
started yet. That incorrect event is racing with the media decoder's
status change.

When `ExternalEngineStateMachine` notifies first incorrect `ended`,
the media decoder hasn't reached a correct state (still in loading), so
the decoder ignores the ended notification from the state machine [1].
However, when the external state machine receives the second correct
`ended` event, it won't notify media decoder again [2].

Above results along with another addition factor causes the issue, which
is that the media engine doesn't update its current time precisely,
so the test couldn't enter the next step because the current time is
still zero.

If the `ended` event gets dispatched correctly, current time would be
adjusted to `1` based on the duration [3].

[1] https://bit.ly/3WOR16n
[2] https://bit.ly/3ThmAms
[3] https://bit.ly/3WNvH1a

Depends on D161623

Differential Revision: https://phabricator.services.mozilla.com/D161730
2022-11-14 19:27:06 +00:00
alwu
9dc7e52c26 Bug 1795507 - part5 : consider having pending drain promise as end of track as well in order to solve the deadlock waiting between resolving draining promise and notify EOS from the format reader. r=jolin
This issue is discovered when playing `red-46x48.mp4` in
`test_playback_rate_playpause.html`.

That video only contains one frame, and after it reaches EOS, the
format reader will drain the decoder. However, the media engine won't
return a decoded frame before we tell it the track is already ended.

That causes a deadlock, notifying EOS (from reader) waiting for the
drain promise, and the drain promise waiting for first decoded frame, and the
first decoded frame waiting for EOS.

Therefore, we would consider having pending drain promise as a sign of EOS as well,
in order to get the decoded frame and revolve the drain promise.

Differential Revision: https://phabricator.services.mozilla.com/D161623
2022-11-14 19:27:05 +00:00
alwu
5b282352a9 Bug 1795507 - part4 : update the frame status after really receiving the first decoded frame. r=jolin
As now the video stream would only return an image when the dcomp image
is ready, we should also delay sending first frame ready event and
notify next frame status correctly based on whether we've received the
decoded data.

Otherwise, it would cause the ready state in the media element in
incorrect status.

Differential Revision: https://phabricator.services.mozilla.com/D161551
2022-11-14 19:27:05 +00:00
alwu
ae42cf9e77 Bug 1795507 - part3 : make output data return promise and simplify the threading for the video stream. r=jolin
This patch further simplify the logic of returning decoded data by
making it async.

As now we don't need to return decoded data on different thread than the
task queue, it also makes the threading for the video stream easier.

Differential Revision: https://phabricator.services.mozilla.com/D161550
2022-11-14 19:27:04 +00:00
alwu
e41cb529bd Bug 1795507 - part2 : remove FakeDecodedDataCreator and let the engine audio stream to return its own fake data. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D159538
2022-11-14 19:27:04 +00:00
alwu
7c4873de8d Bug 1795507 - part1 : do not use the fake data creator for the video stream, and only return decoded video data when the real data exists. r=jolin
The goal of this patch aims to solve the green frame issue which usually
happens on the start position or when changing the resolution.

The reason of causing the green frame is because of the fake data we
created. Therefore, we should only return decoded video data when the
video stream is able to generate one.

We added a new media queue to store the raw data, which would be used to
generate the output decoded data. The previous one we have is used to
feed raw data into the media engine, which has a different purpose.

Differential Revision: https://phabricator.services.mozilla.com/D159537
2022-11-14 19:27:04 +00:00
Csoregi Natalia
1107d2eb9a Backed out changeset 2c479e5f52df (bug 1798986) for causing failures on browser_urlQueryStringStripping_telemetry.js. CLOSED TREE 2022-11-14 20:51:27 +02:00
Nika Layzell
fbe1612f10 Bug 1794282 - Part 2: Reduce locking contention in IPC::Channel, r=ipc-reviewers,mccr8
In profiles of the regressing benchmarks, it appears that there is some amount
of locking contention when large numbers of small messages messages over IPC.
While the bulk of this contention is probably caused by the OnIOCompleted
callbacks on the IO thread, there's not much we can do about those wake-ups.

This patch tries to reduce the contention by avoiding acquiring the mutex when
receiving IPC messages using the ChannelCapability introduced in part 1.

I am hopeful that this will slightly improve performance, however it seems
likely that there will still be slowdowns due to other parts (like NtWriteFile)
not being easy to optimize.

Future changes such as using a shared memory ring buffer for IPC on windows, or
an approach like ipcz which uses shared memory to avoid signalling messages in
some situations, may improve performance here in the future.

Differential Revision: https://phabricator.services.mozilla.com/D161855
2022-11-14 18:48:49 +00:00
Nika Layzell
4c109c60e7 Bug 1794282 - Part 1: Introduce IPC::ChannelCapability, r=ipc-reviewers,mccr8
This patch introduces a new combined capability, ChannelCapability, which
combines the previous Mutex and IOThread capabilities into a single common
capability. This capability can be asserted using the `Note` methods when
holding the specific inner capabilities to either allow shared access to
guarded variables while holding a single capability, or exclusive access when
holding all capabilities.

This is similar to the MutexSingleWriter pattern, however this implementation
is more flexible, as it also allows interacting with each individual inner
capability individually.

This patch just migrates existing attributes and mutex accesses to their new
names. Changes to behaviour will happen in part 2.

Differential Revision: https://phabricator.services.mozilla.com/D160532
2022-11-14 18:48:48 +00:00
Angel_V129
d41c1cd077 Bug 1714015 - Chrome bookmarks import does not import the contents of the other bookmarks folder. r=mconley.
Differential Revision: https://phabricator.services.mozilla.com/D160604
2022-11-14 18:39:23 +00:00
Mozilla Releng Treescript
3bb8172725 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
cy -> 8906466e4669b046cc98e86cdc8a32856218a2ec
eu -> 356856dcd4e2c357854aedcc55257ca4b6c2e814
fr -> 02d5cc3e36ab59030edc2d3c06b8953836ba7993
gn -> 694dc6d86ad32e9d206b21effe80f927568b5742
hu -> ab497d4f0b7b0685b7fdea0d163da83d78c47b90
lo -> 0cc4b66d3892e20898fbfcb197f37b9bb6c73e4a
nn-NO -> e9487bcdb5282342218b4a2105a09b9862593964
sc -> 79167694a1c44120cb2723e033c01b3cae687dfc
sq -> fab74dc4ce67ef607aab5acbe997a2ea0f53f68b
tg -> eba6a9703a4983837268dd4ebab8e9ca04283b8b
2022-11-14 19:04:34 +00:00
Nolan Ishii
21771ec470 Bug 1795739 - Make it possible to import data from Vivaldi. r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D161522
2022-11-14 18:02:21 +00:00
Tim Huang
810d03cad5 Bug 1777600 - Part 3: Get noise prefixes by index instead of the entire prefix set. r=dimi
In Classifier::ReadNoiseEntries(), we used to get the entire prefix set
in order to get noise prefixes. This patch improves it by getting noise
prefixes by index. So, we don't need the entire prefix set.

The patch introduces new functions in LookupCacheV2, V4 and
VariableLengthPrefixSet to allow getting target prefix by index. Also,
we need to inroduces new functions to get the length of the prefix set
to run the noise pick up algorithm.

Differential Revision: https://phabricator.services.mozilla.com/D161771
2022-11-14 17:40:43 +00:00
Tim Huang
c6383f8ce1 Bug 1777600 - Part 2: Add a gTest to verify nsUrlClassifierPrefixSet::GetPrefixByIndex(). r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D161770
2022-11-14 17:40:42 +00:00
Tim Huang
183753b690 Bug 1777600 - Part 1: Implement nsUrlClassifierPrefixSet::GetPrefixByIndex(). r=dimi
This patch implements a nsUrlClassifierPrefixSet::GetPrefixByIndex() that
allows to get the specific prefix with the given index.

Differential Revision: https://phabricator.services.mozilla.com/D161769
2022-11-14 17:40:42 +00:00
Tim Huang
069584c75c Bug 1797081 - Part 3: Add a test for the cookie banner telemetry. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D161287
2022-11-14 17:39:56 +00:00
Tim Huang
62f2d536d9 Bug 1797081 - Part 2: Record the cookie banner service mode prefs daily. r=pbz
We record the cookie banner service mode prefs in the 'idle-daily'
observer. This would allow us to observe the pref changes with time.

Differential Revision: https://phabricator.services.mozilla.com/D161286
2022-11-14 17:39:56 +00:00