Commit Graph

867536 Commits

Author SHA1 Message Date
sotaro
7d06300567 Bug 1861605 - Use IDXGIResource1::CreateSharedHandle() instead of IDXGIResource::GetSharedHandle() r=gfx-reviewers,lsalzman
gecko uses IDXGIResource::GetSharedHandle(). But it is recommend not to use anymore to retrieve the handle to a shared resource.
IDXGIResource1::CreateSharedHandle() with D3D11_RESOURCE_MISC_SHARED_NTHANDLE flag should be used instead of the GetSharedHandle().

The CreateSharedHandle() could be called only once for a shared resource. Later calls fail.

HANDLEs of ID3D11Texture2D are replaced by gfx::FileHandleWrappers.

Differential Revision: https://phabricator.services.mozilla.com/D192173
2023-12-19 09:23:21 +00:00
Alexandre Poirot
f2f1573ae0 Bug 1835614 - [devtools] Log function call arguments. r=devtools-reviewers,fluent-reviewers,devtools-backward-compat-reviewers,nchevobbe
Introduce a new global option in the tracer to log values.

For now, it only triggers javascript function call arguments to be logged,
but this will also impact the incoming feature logging native function calls,
and also the other incoming feature to log the returned values.

Differential Revision: https://phabricator.services.mozilla.com/D196019
2023-12-19 09:20:34 +00:00
Alexandre Poirot
7a03519bad Bug 1835614 - [devtools] Use a custom resource for traces. r=devtools-reviewers,nchevobbe
This help reduce the RDP overhead by only transferring what is strictly necessary.
The console message resources bundles various useless attributes.

This also help use a custom rendering in the frontend so that traces can
be displayed distinctly and differently from the console API calls.

Differential Revision: https://phabricator.services.mozilla.com/D196020
2023-12-19 09:20:33 +00:00
Mark Banner
db0686ddd7 Bug 1870652 - Remove unnecessary additionalProperties requirement in search-config-v2-schema. r=mcheang
Drop the requirement for disallowing additional properties in the order section as remote settings as its own properties, and this wasn't meant to be included.

We do check additional properties in xpcshell-tests, but need to allow for additional properties at runtime in case configurations are extended.

Depends on D196737

Differential Revision: https://phabricator.services.mozilla.com/D196738
2023-12-19 09:12:54 +00:00
Mark Banner
97146c2f8b Bug 1870652 - In search-config-v2 change the defaultEngines records to have a single field for default/defaultPrivate matches. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D196737
2023-12-19 09:12:53 +00:00
Timothy Nikkel
8907cc5504 Bug 1870615. Avoid a few calls in opt builds in LoadInfo.cpp that we only need for an assert. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D196719
2023-12-19 09:11:11 +00:00
Sebastian Hengst
e151a8652e Backed out changeset 85377c2af68c (bug 1870721) because it landed only for temporary verification. CLOSED TREE DONTBUILD 2023-12-19 10:52:27 +01:00
Sebastian Hengst
38d5d7e805 Bug 1870721 - schedule all test manifests when all tasks get requested. CLOSED TREE
Temporarily landed to verify fix.
2023-12-12 11:10:51 +01:00
Noemi Erli
bd9d042f48 Backed out changeset fdf4a93ad7b8 (bug 1869232) for causing bc formautofill related failures CLOSED TREE 2023-12-19 11:20:53 +02:00
James Graham
1ccbb1c53b Bug 1866431 - Send full codepoints when creating key events, r=webdriver-reviewers,masayuki,whimboo
Previously, given a string in element send keys, we iterated over each
UCS2 "character" in the string, so that non-BMP characters ended up as
separate key events, one for the high surrogate and one for the low
surrogate.

With this change we instead use the built in string iterator which
provides the surrogate pair in the case of non-BMP characters, so we
emit a single event for each unicode codepoint.

Differential Revision: https://phabricator.services.mozilla.com/D196220
2023-12-19 08:17:08 +00:00
Dimi
37c9f2b74d Bug 1869232 - Refactor credit card doorhanger to use the same architecture as the new address doorhanger r=credential-management-reviewers,fluent-reviewers,joschmidt,bolsson
Besides refactoring, this patch also updates strings for save and update credit card doorhanger.

Differential Revision: https://phabricator.services.mozilla.com/D196054
2023-12-19 08:14:22 +00:00
moz-wptsync-bot
89c6dddeef Bug 1870591 - [wpt-sync] Update web-platform-tests to c51a4b31bb22cbfcfeca187363761e81d75a6979, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: c51a4b31bb22cbfcfeca187363761e81d75a6979
wpt-type: landing
2023-12-19 08:10:23 +00:00
moz-wptsync-bot
0ccb6ffdbb Bug 1870421 [wpt PR 43699] - Update wpt metadata, a=testonly
wpt-pr: 43699
wpt-type: metadata
2023-12-19 08:10:22 +00:00
BruceDai
0dff3b7558 Bug 1870421 [wpt PR 43699] - [webnn] Add float32 tests for WebNN API argMin/Max ops, a=testonly
Automatic update from web-platform-tests
[webnn] Add float32 tests for WebNN API argMin/Max ops (#43699)

* [webnn] Add float32 tests for WebNN API argMin/Max ops

* Update subtest's name for argMin/Max
--

wpt-commits: f5acfdeb64f6c7fa8d11bb3538e06b3f0ac3edff
wpt-pr: 43699
2023-12-19 08:10:22 +00:00
moz-wptsync-bot
e9b3086762 Bug 1868617 [wpt PR 43538] - Update wpt metadata, a=testonly
wpt-pr: 43538
wpt-type: metadata
2023-12-19 08:10:21 +00:00
canalun
e7e4833a09 Bug 1868617 [wpt PR 43538] - Fixed resize event to be fired on the appearance of scroll bar in iframe, a=testonly
Automatic update from web-platform-tests
Fixed resize event to be fired on the appearance of scroll bar in iframe

Added check for change of scrollable area size in iframe
to make resize event fired on the appearance of scroll bar in iframe.
And added a test case to wpt.

Bug: 1487465
Change-Id: Ida82a010461ac6d856d879842d413bbbe19c67a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5096173
Commit-Queue: Nate Chapin <japhet@chromium.org>
Reviewed-by: David Bokan <bokan@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1238373}

--

wpt-commits: a85f0dfe538b9cb894388a65dba7a2a21db050c7
wpt-pr: 43538
2023-12-19 08:10:20 +00:00
Steve Kobes
387017198f Bug 1870390 [wpt PR 43696] - Run waitForCompositorReady after subframe loads in scroll-behavior WPT., a=testonly
Automatic update from web-platform-tests
Run waitForCompositorReady after subframe loads in scroll-behavior WPT.

Based on local testing this appears to resolve two remaining failures
on the wpt.fyi dashboard for scroll-behavior-* which I thought had been
fixed by crrev.com/1234174.

It's a little unclear why it is needed since paint holding as described
in crbug.com/1509054 should only apply to the main frame.  Some further
investigation will likely occur for crbug.com/888443.

Bug: 1489704
Change-Id: I95372952d8cfcb8357ab6619d8c51513b2bf5c1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5126617
Reviewed-by: David Awogbemila <awogbemila@chromium.org>
Commit-Queue: Steve Kobes <skobes@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1238312}

--

wpt-commits: 3fe62bd952884cba24393504813756b38dc64745
wpt-pr: 43696
2023-12-19 08:10:20 +00:00
moz-wptsync-bot
4e8ec61c9e Bug 1870217 [wpt PR 43685] - Update wpt metadata, a=testonly
wpt-pr: 43685
wpt-type: metadata
2023-12-19 08:10:19 +00:00
Ethan Jimenez (from Dev Box)
f2a1296141 Bug 1870217 [wpt PR 43685] - [Grid] Honor the specified height of a subgrid in its contribution size, a=testonly
Automatic update from web-platform-tests
[Grid] Honor the specified height of a subgrid in its contribution size

1. Fixing the behavior of `ContributionSizeForGridItem` where, similar
   to CL:5109555, the contribution size of a subgrid in the block axis
   was incorrectly assumed to always be its intrinsic size.

2. Removing dead code and updating the name of subgrid-specific methods
   to better reflect their intention and scope.

3. Adding test coverage to the WPT suite for this issue.

Bug: 1475008
Change-Id: Ie9726866a5ab2b4f60e31a1cf1697d13ae28037f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5120550
Reviewed-by: Alison Maher <almaher@microsoft.com>
Commit-Queue: Ethan Jimenez <ethavar@microsoft.com>
Reviewed-by: Kurt Catti-Schmidt <kschmi@microsoft.com>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1238255}

--

wpt-commits: 1b23add4f433ea6b092235c0cc2a67e712d2da2e
wpt-pr: 43685
2023-12-19 08:10:18 +00:00
moz-wptsync-bot
a2fb912909 Bug 1869863 [wpt PR 43650] - Update wpt metadata, a=testonly
wpt-pr: 43650
wpt-type: metadata
2023-12-19 08:10:18 +00:00
Liam Brady
d6ceba4b73 Bug 1869863 [wpt PR 43650] - Don't allow reportEvent() to send "reserved.*" events., a=testonly
Automatic update from web-platform-tests
Don't allow reportEvent() to send "reserved.*" events.

When calling `window.fence.reportEvent()` passing in just an eventType
string (i.e. the Private Aggregation path), it properly doesn't allow
sending "reserved.*" events, since those eventTypes should only be used
for automatic beacons. This check was never put in for the
`reportEvent()` path that takes in a FenceEvent. This CL adds that check
in place as well as browser-side verification to match what we do for
the Private Aggregation checks.

This CL also prevents registerAdBeacon() from registering a "reserved.*"
event that isn't already defined as a valid automatic beacon event.

Change-Id: I252a4bfa333f071f5f195c01a2e70cec5e7ec93f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5120095
Reviewed-by: Garrett Tanzer <gtanzer@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Liam Brady <lbrady@google.com>
Cr-Commit-Position: refs/heads/main@{#1238247}

--

wpt-commits: 89945e7a2a610c737920f1c81484ed2b12d3a5bf
wpt-pr: 43650
2023-12-19 08:10:17 +00:00
Matt Menke
a767b43c13 Bug 1870374 [wpt PR 43694] - [FLEDGE] Fix keys trustedBiddingSignalsSlotSizeMode uses., a=testonly
Automatic update from web-platform-tests
[FLEDGE] Fix keys trustedBiddingSignalsSlotSizeMode uses.

The new trustedBiddingSignalsSlotSizeMode feature in Protected Audiences
appends query params containing ad slot size to trusted bidding signals
fetches. It currently appends "&slot-size=..." and
"&all-slots-requested-sizes=...".

All other query param names added by the Protected Audience API
use camel case, so those should be using camel case as well. This CL
renames them both.

There's one remaining comment in a mojom file that refers to the old
values that this CL doesn't fix, since that requires additional review.

Bug: 1512132
Change-Id: Iaa41334154e18eae26919d204006f974df1046c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5123157
Auto-Submit: Matt Menke <mmenke@chromium.org>
Reviewed-by: Russ Hamilton <behamilton@google.com>
Commit-Queue: Russ Hamilton <behamilton@google.com>
Cr-Commit-Position: refs/heads/main@{#1238205}

--

wpt-commits: f2e65e6194ed7218610a054663026c8114a07852
wpt-pr: 43694
2023-12-19 08:10:16 +00:00
James C Scott III
31a9aa9cb4 Bug 1867122 [wpt PR 43394] - Add the ability to parse META.yml files, a=testonly
Automatic update from web-platform-tests
Add the ability to parse META.yml files (#43394)

* Add the ability to parse META.yml files

Adds SchemaValue which is a container of helper functions to parse
different types of values for a given key - inspired by quicktype

Add validate_dict to ensure only the given keys in a dictionary are
allowed.

This functionality will be useful for other YAML files in the future.

* fix errors for older version of python

* simplify type hinting

* make key order deterministic

* move from_dict to SchemaValue

* add better typing

* catch yaml load exceptions

* use constructor

* fixup

* fixup
--

wpt-commits: ac2856143663f3ab5149f1795a578dc48d06a0f1
wpt-pr: 43394
2023-12-19 08:10:16 +00:00
Sammy Gill
bba5cfb49e Bug 1869878 [wpt PR 43651] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=260201, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=260201 (#43651)

Size containment is supposed to size a box as if it had no content, so
for the purposes of grid layout this would mean that we would want to
skip parts of the algorithm that take into consideration the content.

The "Stretch auto Tracks," portion of the grid track sizing algorithm
should not be skipped, however, as it has nothing to do with the content
of the grid. We should be able to distribute any definite free space
that we computed up to this point.
--

wpt-commits: ccb431fd5075cf19bee842c3a8c4661f38d2a066
wpt-pr: 43651
2023-12-19 08:10:15 +00:00
Fujii Hironori
d8a1db3e77 Bug 1868658 [wpt PR 43542] - Update six to v1.16.0, a=testonly
Automatic update from web-platform-tests
Update six to v1.16.0

Fixes #42883

--

wpt-commits: d59220560b9936f6190630774ac44a6e35d89408
wpt-pr: 43542
2023-12-19 08:10:15 +00:00
moz-wptsync-bot
20c097df92 Bug 1870166 [wpt PR 43680] - Update wpt metadata, a=testonly
wpt-pr: 43680
wpt-type: metadata
2023-12-19 08:10:14 +00:00
moz-wptsync-bot
7e586f757c Bug 1870166 [wpt PR 43680] - vt: Fix bug in document-element-detatched-crash.html[sic], a=testonly
Automatic update from web-platform-tests
vt: Fix bug in document-element-detatched-crash.html[sic]

This test performs actions after load but, per [1], crash tests will end
when the load event is reached. This CL adds 'test-wait' to ensure the
test code is run before the test terminates. Note, the class is removed
before the element since the test harness apparently won't finish on
element removal. This should be ok since the test harness apparently
has some asynchronicity in finishing the test.

Additionally, the test name has a typo (detatched --> detached) so PS1
renames the test. Diff from PS1 to see the test changes.

[1] https://web-platform-tests.org/writing-tests/crashtest.html

Bug: 1413903
Change-Id: I62854956c862788934ef5d7a6da602b2d446f2e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5122833
Reviewed-by: Vladimir Levin <vmpstr@chromium.org>
Commit-Queue: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1238094}

--

wpt-commits: 1683fae2736da237ef600745a4aea47891bdadfc
wpt-pr: 43680
2023-12-19 08:10:13 +00:00
Jens Stutte
9fc1a8a71a Bug 1870423 - Take always ownership of aRunnable in RemoteLazyInputStreamThread::Dispatch. r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D196765
2023-12-19 07:37:58 +00:00
Mozilla Releng Treescript
19afffc44c no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
ach -> 31cafce0d6a6b3b2a3f696aaf08ec722012b3be4
af -> f75b56616bce86d35d7224d5d92a619184ad20e3
an -> 170c9c82f5c0c8f0229c2493903628f1c0b39f89
ar -> 07b94b407ac6f111e3f0460c87f5933323c91b41
ast -> 64e0c51ec3b5b947743ed79b4481ce26f32fc5ad
az -> c4936b362cd8f5743fa939b65fc4e1c3bec5e3ae
be -> 3445af941bdebd6cf65343a15ba1d4972b55daf7
bg -> 69fa121ccdce36dd9f94b0b448fc5b535cdd1535
bn -> a70dde67a6393c1b775fcab73779695c396e9394
bo -> 009c041899a30a0d1fa8d94ec3e4c8819e77a79d
br -> f8641a3081e3b248208fefd4c55fffe7a5c8c7df
brx -> fcd8dc671b6c63f3b006f28a5f61079fa0aae122
bs -> 11b30f76dbd8e46886f8a1bb0baeeb244fb0aae0
ca -> 5087af2878c96a814aec53fdf84b3c9cb7c16cf9
ca-valencia -> 4e5940867a5b05eb6e22681273e9a409319fdd7e
cak -> 433a9a791b8f2539b6762d068ef08f17642fe565
ckb -> 4d0f2adc9dab36debe087c98df46ab9d63a60e4c
cs -> 2d962d4bb5a21f0a2c6d7d2ee73ca4ccd71d301d
cy -> 62eedc4bd399aaa996cc66b9930e23b75e855333
da -> 1d9a39bc9ee7475ee301db7aaf51da7d0055ddd7
de -> 418e3e8908f3fe932a09770314931de84d6391ff
dsb -> 7c176d22743c504a343ad7005101a096a75f9a53
el -> dce583678656d961a9d1f17481b0a8a04ff4440e
en-CA -> eff1925ec383811c59a9a223a8b181f3021bd952
en-GB -> 9c0e2a52c2e3b35fd8938122b85bfe80c733f50d
eo -> eac94f6da44ddd9fd9c77838c9bb9aa1f1148cde
es-AR -> 3861f044ff807dd66d908d4c877802cdccc66ac8
es-CL -> 1f56697b2500e36c164d917dbdddd7e35b293778
es-ES -> 6ba419ddc1bc7a5fb619820d13a3f0bd1ff2f203
es-MX -> a7573f342823d343a737a91399d930a7a9a6c7d1
et -> 4814689c0503a49fb3feb2791c81e38c4a1ed336
eu -> 8094b090318e7d146ec5143d5d0572e6b5ad64de
fa -> 26faed719830a2e58ca2e87c01421ae4bd795c01
ff -> 8aa0163484b63de09a7f63e206823de618074678
fi -> 6a46419fcc92cedc228526ecf1ebbe98c67c9a43
fr -> 73edf3446b111b67f1cb301c72eb3128bd36eb34
fur -> 35d31f3ab251c2f7701269dee24e111df7bb87c9
fy-NL -> 1072c6673d903eb6bebf280ad401e83a4b0d2127
ga-IE -> d271f275cf48a006acf046519793dde34bd0fbeb
gd -> 35d9f5c851153d1483ed3b42a7645e35d7c1c6cd
gl -> dc30d9ab9804576f5eead8435a7a4fdbcf24f402
gn -> f0a4cec55837e001968865693f0d60f2575410d2
gu-IN -> 99d824aecee2c4d7dc26854d6b9d85319516ac1a
he -> b9f8d0d6e7aab304df2f2ab8697bcfdc92a546ef
hi-IN -> 5f5a4a745ab4666e49407b48b01257413cab2962
hr -> dbf0c647b2e6cca7408661476453cf31cfd7fa3c
hsb -> 0c7e2321abe862aaad43aa22018040295e02e029
hu -> 9b0d6903c23c801ea6e158bd69bd87c72e3b38db
hy-AM -> d7f3ec7a73524d940ef57fa9566e011b139d2389
hye -> 0b9225b47f6ae70bc718356c633a228a9d1725d8
ia -> 22a234df4358a93b7072626c030ae9701f4a745c
id -> 0735dad19f9c5712eb6dadbd0332aed985ee3205
is -> bdb9bec3c7be9866e66ae66ebe2b7f5436c499ac
ja -> 5ca58a548615023d978598e9c5f067efb648f25a
ja-JP-mac -> a707dead01dad034a3f6455f92c3de74b82556ee
ka -> cc0f3048d7cc42515c6a604d1a50d7b72df1c130
kab -> 1bb0fbcf70e08c506049ea1a0c0636b19343f22d
kk -> 78badfdc245284722e71d976d1ef4f7070d286c3
km -> 006435264ce37b6daf75558316730614936ce5e8
kn -> 2bd68cc25a04fe321dac1ad6fa102c1424976e8f
ko -> eea91757fe8e1ea02787b6b2dc591e458690a069
lij -> 80f5515a87a3bcf8249b094ea80778afa5bc85d1
lo -> 00db355581ae6ca92d33526feaccbb9e0ea9b7d7
lt -> 9af3d5f38ed861ff3891da0369b9b358e3c74e8e
ltg -> 5d943cb6a7bb1969062a07fde7240c14e0169d35
lv -> 962cebf07407a8bfb5d557471c26b0fe593f2b23
meh -> 750c5245632e0c560be23642526e9db5351d590e
mk -> fbef80de5499995a75db64bf06903e16f22dee4e
mr -> 8ed4566f3c654c7f06a8b628cdccd787ed7cd88f
ms -> f059d9d52a8430962d77be89f8414cdf8f977542
my -> 8b91b825c7a583533e79504e5ed35946aa144fb5
nb-NO -> 664a7aa34381b490cc6746aa2ac8338468edeba8
ne-NP -> d9a123de3015e677d35e9e8f977219f366d7d105
nl -> 4104e30d0a6ceed3542256deb2764b1456044f9b
nn-NO -> 6fd2cfaf0bf63d186ba981ca27d6beddd762c658
oc -> c927f87e957607a6c7c1f31b9811d5cc3fbe09fc
pa-IN -> 4a7acdf7fcbc82ce16d6b15d52f75e304caed579
pl -> 03dcbd3557e7d642a3375a8458929d5ce799f757
pt-BR -> fab52dd8068241ea58948f8625e556c2a92c2345
pt-PT -> a953a1bc54228c6c3c646488dca5c7ae5e5d1610
rm -> 2ed770e6cf86fd1b3ccfaa25a025dbd1b1a2165d
ro -> 73431166656d42eeb12ba45f6db757feebaa5548
ru -> 1ea4a22ea04d446584b5750ce4f514741665dc44
sat -> 34c7893c5c1d22eb3064ea62c5646cbb5e6be980
sc -> ac8196683022837db3afc22edb47a6a11cf7142a
scn -> 2c50b1c5419a6a5c3e08dd0240e6e63f42bf118d
sco -> eab7dc10f5490ad784fceabf7633ca170f68c832
si -> 5bcf1612cc9f5a6538487b5219365ee7fcae4b7b
sk -> c30ddf6467aed48339ebd41037f44df592969143
skr -> aeb004b1bebe393411d5b5d96b748a2973b23533
sl -> 067827be37703dbd110d7a7a5f3ad131e08e6183
son -> 6bf85312780bcff64c8879897ec811a2726d1e43
sq -> d5e15ecb0be47a95b90907438c15627bd676f2a9
sr -> 58a38d27f790ed08e365ad2104e029a16b608bdc
sv-SE -> 05dade37927916f3c8f4584e8edad8c997c375e6
szl -> 162913b2f16c13b0844208b8554ba817609f589d
ta -> 94dc72b20a33d29d9c7158c5e65e52a3f3f12314
te -> 42666d51ccf74a64e8c86519470ce53d0afc3093
tg -> 99bb342ddfa9bb752790afbb14bb98f59a71a752
th -> 9d99222cc5c12725110d2f7ceee3c73124348075
tl -> dd7093e967961fe57477280692147df0d2b0860a
tr -> 9ffd3757e67bc23e61213ceebdd1f9d36b3e049d
trs -> 6fcf8d686203f3f75eeba1a6b56de8d78cb34013
uk -> 918a366e9c7413cbe352f5cec5ba16c842943a36
ur -> 2aa79a176ae6fd9a51c65c72880bd939f5abaf3c
uz -> 6eee9399633944011a3ebecc45fa0d5de758e81e
vi -> 6f9593098e37a9eecdfd9de6b3cd84d96e41b15c
wo -> 7e48e160c07ed939325a8cf52de27c686959d59a
xh -> b0a85e71398518c848ecf0512fa5f7c0afdcfb4c
zh-CN -> 58ce81cb98d41e2f9bae676cb946a4c6cc54bed3
zh-TW -> 0c82a655a6714e10873c982688f2bfbdf9b2060f
2023-12-19 07:02:39 +00:00
serge-sans-paille
6ae46ec04d Bug 1866829 - Replace obsolete distutils reference by portable alternatives r=ahochheiden
distutils.dir_util.copy_tree -> shutil.copytree
distutils.spawn.find_executable -> shutil.which

Also fix a warning about escape sequence in the process.

Differential Revision: https://phabricator.services.mozilla.com/D194781
2023-12-19 06:50:36 +00:00
Andrew Osmond
008ce95841 Bug 1795296 - Enable Direct2D backend with OffscreenCanvas. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D189533
2023-12-19 05:10:35 +00:00
Andrew Osmond
13cc2c3b57 Bug 1855742 - Part 11. Allow recording based canvases with OffscreenCanvas. r=gfx-reviewers,lsalzman
It is disabled in this patch via the gfx.canvas.remote.allow-offscreen
pref. A follow up patch will enable this by default.

Differential Revision: https://phabricator.services.mozilla.com/D189532
2023-12-19 05:10:35 +00:00
Andrew Osmond
160c68efc3 Bug 1855742 - Part 10. Allow recording surfaces and textures to be created on DOM workers. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D189531
2023-12-19 05:10:35 +00:00
Andrew Osmond
09f7cdee80 Bug 1855742 - Part 9. Allow CanvasDrawEventRecorder to be created on DOM workers. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D189530
2023-12-19 05:10:34 +00:00
Andrew Osmond
80532714b0 Bug 1855742 - Part 8. Make OffscreenCanvas use PersistentBufferProvider on the display pipeline. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D195124
2023-12-19 05:10:34 +00:00
Andrew Osmond
f214d1b7cf Bug 1855742 - Part 7. Ensure TextureClient's mReadLock is only created on the IPDL actor thread. r=lsalzman
This allows us to create a TextureClient on a different thread than the
actor without special effort on the part of the allocator. Similarly, it
also allows us to destroy a TextureClient on a different thread if it
has a readlock bound to it.

Differential Revision: https://phabricator.services.mozilla.com/D195123
2023-12-19 05:10:33 +00:00
Andrew Osmond
4f7d4e8030 Bug 1855742 - Part 6. Ensure that CanvasChild::OnTextureForwarded can be called from forwarder thread. r=lsalzman
If ImageBridgeChild is responsible for the textures being forwarded to
the compositor process, then the callback will happen on
ImageBridgeChild's thread instead of the main or DOM worker thread.

Differential Revision: https://phabricator.services.mozilla.com/D195121
2023-12-19 05:10:33 +00:00
Andrew Osmond
696dee1a1a Bug 1855742 - Part 5. Refactor canvas shutdown to be synchronized with CanvasManagerChild. r=lsalzman
Because we cannot control the ordering of shutdown notification from
WorkerRef, we need to choose one centralized point to begin shutdown of
the main thread or the owning DOM worker. Since there are other objects
owned by CanvasManagerChild, we also switch to a ThreadSafeWorkerRef.

Differential Revision: https://phabricator.services.mozilla.com/D195120
2023-12-19 05:10:33 +00:00
Andrew Osmond
fca521d398 Bug 1855742 - Part 4. Make CanvasManagerChild manage ActiveResourceTracker. r=gfx-reviewers,lsalzman
This patch makes the CanvasManagerChild creates/manager the
ActiveResourceTracker instead of the WebRenderBridgeChild. Since PCanvas
is now managed by PCanvasManager, and ActiveResourceTracker is only used
by the PCanvas recording plumbing, we need it on every thread that the
CanvasManagerChild can be created.

Differential Revision: https://phabricator.services.mozilla.com/D189529
2023-12-19 05:10:32 +00:00
Andrew Osmond
370628c3b8 Bug 1855742 - Part 3. Implement ImageBridgeChild::GetTileLockAllocator. r=gfx-reviewers,lsalzman
This patch adds support for allocationg shmem sections for
ImageBridgeChild. The recording infrastructure depends on it.

Differential Revision: https://phabricator.services.mozilla.com/D189528
2023-12-19 05:10:32 +00:00
Andrew Osmond
d8fe0cd605 Bug 1855742 - Part 2. Allow nsExpirationTracker to be created on any thread. r=gfx-reviewers,lsalzman
This patch allows us to create nsExpirationTracker objects off the main
thread, with the caveat that memory pressure events should/must be
handled directly by the creator rather than managed internally. With
that in mind, the threading assertions have also been updated to ensure
it is always the owning thread that accesses the tracker.

Differential Revision: https://phabricator.services.mozilla.com/D189527
2023-12-19 05:10:31 +00:00
Andrew Osmond
2cd5b292c7 Bug 1855742 - Part 1. Add/update owning thread assertions to CanvasChild/DrawEventRecorder. r=gfx-reviewers,lsalzman
This patch adds/updates the thread assertion plumbing for CanvasChild
and DrawEventRecorder to ensure that we are always accessing them on the
owning thread. It also now makes these checks compatible with running in
a DOM worker context for OffscreenCanvas using recordings.

Differential Revision: https://phabricator.services.mozilla.com/D189526
2023-12-19 05:10:31 +00:00
Butkovits Atila
c96b1e7c01 Merge mozilla-central to autoland. CLOSED TREE 2023-12-19 07:20:04 +02:00
Butkovits Atila
a209226a68 Merge autoland to mozilla-central. a=merge 2023-12-19 07:04:38 +02:00
Masayuki Nakano
87da8e59cd Bug 1612076 - Make AdjustCaretFrameForLineEnd stop scanning text node if first node is editable but reached non-editable one r=emilio
When pressing `ArrowLeft` key at:
```
<p>abc</p><p><span contenteditable=false>def</span>{}<br></p>
```
, caret is moved into the non-editable text because
`nsCaret::GetCaretFrameForNodeOffset` looks for a preceding text node from
the `BRFrame`. This is required if the preceding text node ends with a
collapsible white-space but followed by a `<br>` because the text frame
should not contain the white-space rect and `BRFrame` frame should be next
to it, i.e., the white-space looks like a overflown content.

So, for rendering a caret, the method needs to return non-editable text frame
even in the case, but for considering new caret position in the DOM tree, it
should not return non-editable text frame.

Therefore, this patch adds a param to `nsCaret::GetCaretFrameForNodeOffset()`
which forcibly return editable content frame or not and makes
`Selection::GetPrimaryOrCaretFrameForNodeOffset` call it with the new option
because its callers are the handler of caret navigation.

Differential Revision: https://phabricator.services.mozilla.com/D196259
2023-12-19 01:58:07 +00:00
sotaro
38db0ec252 Bug 1867700 - Add workaround for SwapChain Present() of RenderCompositorANGLE on Windows r=gfx-reviewers,lsalzman
Implement a workaround of framebuffer's SwapChain Present() that exists in chromium.

Differential Revision: https://phabricator.services.mozilla.com/D195201
2023-12-19 00:38:32 +00:00
Butkovits Atila
a28566bdd4 Backed out changeset 30210e0efac1 (bug 1867360) for causing failures at PIPDLUnitTestChild.cpp. CLOSED TREE 2023-12-19 02:28:52 +02:00
Eliot Jacobs
f79111c182 Bug 1860845 - Removes unused disable_button preferences (view_cookies,change_blocklist) r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D196802
2023-12-19 00:24:22 +00:00
Valentin Gosu
eb73825495 Bug 1852900 - Use android_res_nquery from libandroid.so to resolve HTTPS records on Android (API level >= 29) r=necko-reviewers,jesup
Depends on D194515

Differential Revision: https://phabricator.services.mozilla.com/D196068
2023-12-19 00:06:53 +00:00
Kershaw Chang
30640603d5 Bug 1852900 - Use res_query to resolve HTTPS record on mac r=necko-reviewers,kershaw
Depends on D194508

Differential Revision: https://phabricator.services.mozilla.com/D194515
2023-12-19 00:06:53 +00:00