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

820066 Коммитов

Автор SHA1 Сообщение Дата
Daniel Holbert 32bd9256f4 Bug 1800344 part 2: Fold nsSyncStreamListener::Create() into NS_NewSyncStreamListener(). r=necko-reviewers,kershaw
While we're at it: remove one layer of unnecessary error handling in
NS_NewSyncStreamListener, since it's clearer now that we'll be getting
infallible allocation.

Differential Revision: https://phabricator.services.mozilla.com/D161949
2022-11-14 23:22:17 +00:00
Daniel Holbert 0b2fc296cd Bug 1800344 part 1: Fold nsSyncStreamListener::Init into the constructor. r=necko-reviewers,kershaw
Depends on D161947

Differential Revision: https://phabricator.services.mozilla.com/D161948
2022-11-14 23:22:17 +00:00
Daniel Holbert 7f83cbcfba Bug 1800342: Make NS_NewPipe2 and NS_NewPipe infallible, to reflect reality. r=xpcom-reviewers,necko-reviewers,nika,kershaw
This patch doesn't change behavior; these APIs were already effectively
infallible, in the sense that it was impossible for them to return anything
other than NS_OK.

The actual API changes here are in xpcom/io/nsIPipe.idl and
xpcom/io/nsPipe3.cpp, and the rest of this patch is just updates to callsites,
removing code that handled failure-flavored return values from these functions.
(All of this removed code was already dead code, effectively.)

Differential Revision: https://phabricator.services.mozilla.com/D161947
2022-11-14 23:22:16 +00:00
Emilio Cobos Álvarez 83f7b24611 Bug 1800543 - Clearing the form should update element state. r=edgar
Just like setting it does, since at the very least it influences
:user-valid/:user-invalid matching.

Differential Revision: https://phabricator.services.mozilla.com/D162043
2022-11-14 23:08:19 +00:00
James Teh 8fa2bf084a Bug 1789384: Don't ascend past documents in Accessible::GetLevel. r=eeejay
On Android, we access RemoteAccessibles from the UI thread.
It's not safe to access LocalAccessibles on the UI thread.
The a11y code avoids touching LocalAccessibles on the UI thread directly.
However, Accessible::GetLevel was previously walking ancestry, which might hit a LocalAccessible and result in a crash.
To avoid this, don't ascend past a DocAccessible.
Level calculation shouldn't be crossing document boundaries anyway.
Note that we don't have to do this when we simply retrieve the parent (but nothing further) because we only do that for certain roles and the parent of these roles could never be an OuterDoc.

Differential Revision: https://phabricator.services.mozilla.com/D161873
2022-11-14 23:04:44 +00:00
Iulian Moraru 459f5a723c Backed out changeset cea753e22a8e (bug 1800295) for causing Viaduct related build bustages. CLOSED TREE 2022-11-15 01:05:39 +02:00
Paul Zuehlcke e1185b00c8 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 22:50:42 +00:00
Paul Zuehlcke 4bb25a4634 Bug 1798960 - Add cookie banner clicking event tests. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D161729
2022-11-14 22:50:42 +00:00
Paul Zuehlcke 2e8f14bd30 Bug 1798960 - Update tests for MODE_DETECT_ONLY. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D161728
2022-11-14 22:50:41 +00:00
Paul Zuehlcke 31c32f67a7 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 22:50:41 +00:00
Paul Zuehlcke ab26881ad9 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 22:50:40 +00:00
Paul Zuehlcke 175e149e56 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 22:50:40 +00:00
Paul Zuehlcke 9903e8927d 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 22:50:40 +00:00
Botond Ballo 239e18e404 Bug 1519339 - Do not hand off smooth scrolls in an overflow:hidden direction to APZ. r=dlrobertson
APZ cannot currently scroll in directions which are overflow:hidden
(it does not know the full scroll range bounds in those directions).

Therefore, main-thread scrolling in these directions should not be
handed off to APZ.

Differential Revision: https://phabricator.services.mozilla.com/D161351
2022-11-14 22:50:21 +00:00
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