Commit Graph

839127 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
f76bbd8a43 Bug 1829189 - Fix test_chromemargin.xhtml for expected behavior change.
MANUAL PUSH: Trivial fix CLOSED TREE
2023-04-21 11:17:05 +02:00
Natalia Csoregi
639fa048d6 Backed out changeset 0ddf006ab8f0 (bug 1274334) for causing win 2012 bustages on WebGLRenderingContextBinding.h. CLOSED TREE 2023-04-21 12:11:01 +03:00
Andreas Pehrson
85694e7eee Bug 1828450 - Revert 9aa28e73aaf8 - In VideoCaptureAvFoundation use MediaEvent to handle frames. r=webrtc-reviewers,ng
Differential Revision: https://phabricator.services.mozilla.com/D175656
2023-04-21 08:58:00 +00:00
Andreas Pehrson
32f66f3004 Bug 1828450 - Revert fe7300653e99 - Don't buffer frames in VideoCaptureAvFoundation. r=webrtc-reviewers,ng
Differential Revision: https://phabricator.services.mozilla.com/D175655
2023-04-21 08:57:59 +00:00
Emilio Cobos Álvarez
51758cfc9b Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug
Same rg + sed shenanigans as the first patch.

There were two that could fail, both due to OOM:

 * HTMLInputElement::AfterSetAttr: If we fail (only in the type=range
   case) we end up with an old value without it being clamped by
   min/max/step.

 * HTMLBodyElement::AfterSetAttr: If we fail we won't peek up the
   DocShell's frame margins and styling could be incorrect.

That seems better than having to deal with broken states after we've
already set the attribute.

Depends on D176069

Differential Revision: https://phabricator.services.mozilla.com/D176070
2023-04-21 08:56:27 +00:00
Emilio Cobos Álvarez
ee4c38a50c Bug 1829189 - Make BeforeSetAttr infallible. r=smaug
rg BeforeSetAttr -l | xargs sed -i 's/nsresult BeforeSetAttr/void BeforeSetAttr/g'
  rg ::BeforeSetAttr -l | xargs sed -i 's/nsresult \(.*\)::BeforeSetAttr/void \1::BeforeSetAttr/g'

Plus trivial fixes, plus clang-format.

The only meaningful changes are in nsXULElement::BeforeSetAttr. Two
things could fail:

chromemargin: I removed it because we don't use the parsed attribute any
other place than here:

  https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/dom/xul/ChromeObserver.cpp#136

And that deals just fine with it not being parsed.

usercontextid: We have a debug assertion that we don't dynamically change it.
I kept it but I don't think it's worth failing to set the attribute on release for that

Differential Revision: https://phabricator.services.mozilla.com/D176069
2023-04-21 08:56:27 +00:00
Andreas Pehrson
8b22512055 Bug 1828722 - Revert 30340541c9a1 - Crash in case VideoCaptureAVFoundation is destroyed unexpectedly. r=webrtc-reviewers,mjf
Differential Revision: https://phabricator.services.mozilla.com/D175853
2023-04-21 08:47:46 +00:00
Marco Bonardo
d971eef683 Bug 1829192 - use PlacesTestUtils.getDatabaseValue more extensively. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D176075
2023-04-21 08:42:26 +00:00
Jari Jalkanen
21984bcb2e Bug 1829172 - Exit when iteration reaches current page end. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D176061
2023-04-21 08:41:57 +00:00
moz-wptsync-bot
5c24076127 Bug 1829009 - [wpt-sync] Update web-platform-tests to b8715c02c8eaa876f35c6673bc81f5f9f533b9cc, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: b8715c02c8eaa876f35c6673bc81f5f9f533b9cc
wpt-type: landing
2023-04-21 08:43:00 +00:00
Ari Chivukula
934756cf47 Bug 1828701 [wpt PR 39597] - [Permissions Policy] Switch to CSP Parser, a=testonly
Automatic update from web-platform-tests
[Permissions Policy] Switch to CSP Parser

This is mostly plug and play, and many of the restrictions can be lifted
in future if we expand the wildcard types supported here. The changes in
the CSP code are just to move the function into exportable namespace.
The test changes are mostly to evaluate new cases and to prevent domains
like *.example.com from being parsed as %2A.example.com because that's
not real or helpful anyway. The changes here have no impact on
permissions for valid targets that we were already parsing.

Bug: 1418009
Change-Id: I5031adecbe33decce720bb44f78e70d555e2e450
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4436090
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Auto-Submit: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Daniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132524}

--

wpt-commits: b8715c02c8eaa876f35c6673bc81f5f9f533b9cc
wpt-pr: 39597
2023-04-21 08:42:59 +00:00
Matthieu Dubet
41f1247ad2 Bug 1828482 [wpt PR 39573] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=255337, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=255337 (#39573)

Co-authored-by: Matthieu Dubet <matthieu.dubet@gmail.com>
--

wpt-commits: 20808bca29b5b090f3ae13d469209ff16566da6e
wpt-pr: 39573
2023-04-21 08:42:58 +00:00
Vladimir Levin
d41178f920 Bug 1828739 [wpt PR 39600] - CIS: Change the parsing test to test against computed value., a=testonly
Automatic update from web-platform-tests
CIS: Change the parsing test to test against computed value.

This patch changes the "reference" box to use the computed value of
width, instead of the used value.

From: https://drafts.csswg.org/cssom/#resolved-value-special-case-property-like-height

```
If the property applies to the element or pseudo-element and the resolved value
of the display property is not none or contents, then the resolved value is the
used value. Otherwise the resolved value is the computed value.
```

Since we're testing the computed value of contain-intrinsic-size, we
should compare it against a computed value of width in the reference.

R=futhark@chromium.org

Change-Id: I9dc3376ca6c3c41ab835251e29ec639a7c1336cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4442948
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Vladimir Levin <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132453}

--

wpt-commits: 800b05fe733efac9631a3ac859720be525f2dfb6
wpt-pr: 39600
2023-04-21 08:42:58 +00:00
moz-wptsync-bot
15d22aa7a4 Bug 1828748 [wpt PR 39601] - Update wpt metadata, a=testonly
wpt-pr: 39601
wpt-type: metadata
2023-04-21 08:42:57 +00:00
Joey Arhar
1dbf75e786 Bug 1828748 [wpt PR 39601] - Update text in content-visibility animation test, a=testonly
Automatic update from web-platform-tests
Update text in content-visibility animation test

In a patch yesterday I changed this test because I made
content-visibility animatable, but I neglected to change all of the text
from "not animatable" to "animatable"

Change-Id: I015b118b29cb8f6c58ee5bbab5b626d18c64543c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4443369
Commit-Queue: Vladimir Levin <vmpstr@chromium.org>
Auto-Submit: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Vladimir Levin <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132452}

--

wpt-commits: 56e2cd66797995b846cff256c169eb80731190a6
wpt-pr: 39601
2023-04-21 08:42:56 +00:00
dependabot[bot]
e91b075373 Bug 1828221 [wpt PR 39562] - Bump pytest from 7.3.0 to 7.3.1 in /tools, a=testonly
Automatic update from web-platform-tests
Bump pytest from 7.3.0 to 7.3.1 in /tools

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.3.0 to 7.3.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.3.0...7.3.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
--

wpt-commits: 995f16e0a7c7b393ff76e00e678f4f4f2f7559d2
wpt-pr: 39562
2023-04-21 08:42:56 +00:00
dependabot[bot]
4e1cc98f3b Bug 1828774 [wpt PR 39603] - Bump taskcluster from 49.1.0 to 49.1.1 in /tools, a=testonly
Automatic update from web-platform-tests
Bump taskcluster from 49.1.0 to 49.1.1 in /tools

Bumps [taskcluster](https://github.com/taskcluster/taskcluster) from 49.1.0 to 49.1.1.
- [Release notes](https://github.com/taskcluster/taskcluster/releases)
- [Changelog](https://github.com/taskcluster/taskcluster/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taskcluster/taskcluster/compare/v49.1.0...v49.1.1)

---
updated-dependencies:
- dependency-name: taskcluster
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
--

wpt-commits: 27fdb60b4a0c646e16eb10659ea09607fc8171d5
wpt-pr: 39603
2023-04-21 08:42:55 +00:00
BruceDai
d763668392 Bug 1828072 [wpt PR 39538] - [webnn] Update comments for WebNN concat op and reshape op, a=testonly
Automatic update from web-platform-tests
[webnn] Update comments for WebNN concat op and reshape op (#39538)

* [webnn] Update comment for WebNN concat op

* [webnn] Update comment for WebNN reshape op
--

wpt-commits: 4e37fa4d56f2bbf051a816142e5ab8595b3cd864
wpt-pr: 39538
2023-04-21 08:42:54 +00:00
BruceDai
bb4fab4039 Bug 1828569 [wpt PR 39591] - [webnn] Update float32 tests for WebNN prelu op with constant operand slope, a=testonly
Automatic update from web-platform-tests
[webnn] Update float32 tests for WebNN prelu op with constant operand slope (#39591)

--

wpt-commits: 50afacfa8e1411d3558be4d18bc0c1ea376c6d7f
wpt-pr: 39591
2023-04-21 08:42:53 +00:00
moz-wptsync-bot
c49683ad28 Bug 1828730 [wpt PR 39599] - Update wpt metadata, a=testonly
wpt-pr: 39599
wpt-type: metadata
2023-04-21 08:42:53 +00:00
Joey Arhar
2f28682525 Bug 1828730 [wpt PR 39599] - Add checks for popovers moving between documents, a=testonly
Automatic update from web-platform-tests
Add checks for popovers moving between documents

Without these checks, we can get into very bad state that can crash the
renderer. This was raised here:
https://github.com/whatwg/html/issues/9177

Change-Id: I3cda0143c76f62709af8593182b4c3a4f8849fd7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4443007
Reviewed-by: Mason Freed <masonf@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132191}

--

wpt-commits: 0a40de7a4db9e52cdb0fc436173640756740c9e3
wpt-pr: 39599
2023-04-21 08:42:52 +00:00
stransky
20e71eb9a2 Bug 1829229 [Linux] Add glxtest and vaapitest to artifacts builds r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D176121
2023-04-21 08:28:53 +00:00
Mike Hommey
1b4a9de576 Bug 1274334 - Enable STL wrappers on macos. r=firefox-build-system-reviewers,ahochheiden
Practically speaking, this doesn't make a huge difference, because
libmozglue contains operator new/operator delete overrides. This will
enable inlining opportunities, though.

It is worth noting that there's equivalent code in
js/src/old-configure.in but it's left as is because it is actually no-op
at the moment. This will be fixed in bug 1829049.

The check for __EXCEPTIONS is replaced with __cpp_exceptions because the
former is defined for any type of exception, including ObjC exceptions,
while the latter is defined for C++ exceptions only.

Differential Revision: https://phabricator.services.mozilla.com/D175976
2023-04-21 08:26:50 +00:00
Yoshi Cheng-Hao Huang
1a3fee6081 Bug 1828130: r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D175912
2023-04-21 08:05:44 +00:00
Mike Hommey
c82691a556 Bug 1829011 - Remove section about installing Visual Studio. r=sylvestre DONTBUILD
This is now taken care of by `mach bootstrap`/auto-bootstrap.

Differential Revision: https://phabricator.services.mozilla.com/D175957
2023-04-21 07:03:59 +00:00
Andreas Pehrson
10eace7bf0 Bug 1826526 - In test_gUM_basicScreenshare.html adjust thresholds and re-enable on Mac. r=webrtc-reviewers,ng
This patch introduces multiple thresholds, depending on platform and color, as
the colors rendered to screen are captured in the display rgb color profile on
Mac and therefore can be significantly off. See bug 1827606 for always capturing
in sRGB.

Differential Revision: https://phabricator.services.mozilla.com/D174754
2023-04-21 06:58:39 +00:00
Andreas Pehrson
7ed4104a88 Bug 1826526 - In test_gUM_basicScreenshare.html draw white instead of grey. r=webrtc-reviewers,ng
White is less susceptible to false positives than grey with a high threshold,
given that all its components are at an extreme (255 vs 128).

Differential Revision: https://phabricator.services.mozilla.com/D174753
2023-04-21 06:58:39 +00:00
Paul Bone
53172d841f Bug 1828638 - Don't track PHC hits/misses unless logging is enabled r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D175991
2023-04-21 06:40:39 +00:00
Paul Bone
74078e545a Bug 1828638 - Log the number of freed cells in PHC r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D175832
2023-04-21 06:40:39 +00:00
Masayuki Nakano
770f2ee8b6 Bug 1829048 - Clean up ini files under editor/ r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D175975
2023-04-21 04:28:27 +00:00
Sergey Galich
470a8fec63 Bug 1825115 - Add "Use Relay email mask" to the context menu on <input type=email> r=groovecoder,credential-management-reviewers,flod,issammani
Differential Revision: https://phabricator.services.mozilla.com/D174361
2023-04-21 03:27:58 +00:00
Mike Conley
11e8037546 Bug 1829196 - Use the term 'Continue' rather than 'Done' in the success state of the new migration wizard when embedding. r=niklas,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D176072
2023-04-21 03:18:13 +00:00
Mike Conley
525e997fbb Bug 1820640 - Add a card to about:welcome that embeds the Migration Wizard if configured to do so. r=pdahiya,omc-reviewers
This adds a card to the about:welcome defaults that embeds the new Migration Wizard
if  browser.migrate.content-modal.about-welcome-behavior is set to "embedded".

This requires adding a useEmbeddedMigrationWizard targeting attribute to
ASRouterTargeting.

Differential Revision: https://phabricator.services.mozilla.com/D175945
2023-04-21 03:18:12 +00:00
Mike Conley
af83292a15 Bug 1820640 - Enforce left-alignment and expose the button containers for the new Migration Wizard. r=kpatenio
This is so that the contents of the Migration Wizard don't get automatically
centered if its embedding context is centering things.

This change also makes it so that embedders can customize some of the rules of how
buttons are laid out.

Differential Revision: https://phabricator.services.mozilla.com/D171771
2023-04-21 03:18:12 +00:00
Cosmin Sabou
382bd8db17 Merge mozilla-central to autoland. 2023-04-21 06:06:26 +03:00
Cosmin Sabou
26790fecfc Backed out changeset f70225b67b76 (bug 1538043) for causing Bug 1829262. a=backout 2023-04-21 06:04:10 +03:00
Cristian Tuns
86a15fe92b Backed out 5 changesets (bug 1826681) for causing build bustages in WebGPUChild.cpp/Device.cpp CLOSED TREE
Backed out changeset 17c9673361fc (bug 1826681)
Backed out changeset 47a2a358111e (bug 1826681)
Backed out changeset b71415253dd2 (bug 1826681)
Backed out changeset f99d74976f29 (bug 1826681)
Backed out changeset d2a6476fe2d4 (bug 1826681)
2023-04-20 22:36:10 -04:00
Erich Gubler
22caa4fec8 Bug 1826681: fix(webgpu): present label in shader comp. msgs. in console r=webgpu-reviewers,nical
This context is crucial for debugging, kthxbai.

Differential Revision: https://phabricator.services.mozilla.com/D175406
2023-04-21 01:57:20 +00:00
Erich Gubler
dae0e28576 Bug 1826681: fix(webgpu): propagate label to new shader modules r=webgpu-reviewers,nical
We don't set the [`GPUObjectBase.label`] of the `shaderModule` we create in our implementation of [`GPUDevice.createShaderModule`], but we should. Fix it! You can see this reflected in the error diagnostics currently returned by Naga in the [`GPUCompilationMessage.message`] field.

[`GPUObjectBase.label`]: https://www.w3.org/TR/webgpu/#dom-gpuobjectbase-label
[`GPUDevice.createShaderModule`]: https://www.w3.org/TR/webgpu/#dom-gpudevice-createshadermodule
[`GPUCompilationMessage.message`]: https://www.w3.org/TR/webgpu/#dom-gpucompilationmessage-message

Differential Revision: https://phabricator.services.mozilla.com/D175405
2023-04-21 01:57:20 +00:00
Erich Gubler
8cd23a6c2a Bug 1826681: feat(webgpu): add sentinel shader compilation msg. in console r=webgpu-reviewers,nical
@jimb expressed concern that a collapsed group of compilation messages for WebGPU shaders in the JS console isn't easy enough to discern from scanning a console log manually. We can't associate a log level with the group itself (which would let us paint the group with color for contrast), unfortunately. So, we decided to have a "sentinel" message right before groups that uses the highest "severity" of message in the entire set of compilation messages.

Differential Revision: https://phabricator.services.mozilla.com/D175404
2023-04-21 01:57:20 +00:00
Erich Gubler
54bcb69019 Bug 1826681: feat(webgpu): print counts of shader compilation messages by type r=webgpu-reviewers,nical
Refine the console group title for shader compilation messages by adding aggregated counts of each message by type.

Differential Revision: https://phabricator.services.mozilla.com/D175402
2023-04-21 01:57:20 +00:00
Erich Gubler
4c643626c6 Bug 1826681: feat(webgpu): log shader creation msgs. to console r=webgpu-reviewers,nical
Time to finally add some (barebones) diagnostics! When a user calls [`GPUDevice.createShaderModule`], if there are any messages returned:

1. Create a collapsed console group. Use a generic title for the console group (for now).
1. Inside the console group, print containing a log entry per message with a JS log level according to the message severity.

Differential Revision: https://phabricator.services.mozilla.com/D175303
2023-04-21 01:57:20 +00:00
Makoto Kato
6200ec5835 Bug 1828461 - Load LoadURIDelegate as lazy module. r=geckoview-reviewers,calu
After landing bug 1673068, `LoadURIDelegate.jsm` isn't used until error page
is shown. This should move to lazy and convert to ES system module.

Differential Revision: https://phabricator.services.mozilla.com/D175661
2023-04-21 01:45:22 +00:00
Cosmin Sabou
0262ee3584 Bug 1827704 - Fix Bugzilla linting opt failures. r=glandium
CLOSED TREE
2023-04-21 05:05:29 +03:00
Shravan Narayan
ed0bb19d78 Bug 1827704 - Migrate to the upstream wasm2c for RLBox sandboxing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D175439
2023-04-21 01:31:35 +00:00
Masayuki Nakano
4d6ebc058d Bug 1829032 - Sort tests in ini files under widget/tests for conforming to the lint rules r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D175973
2023-04-21 01:23:52 +00:00
Cosmin Sabou
a313fe665f Backed out changeset dfee2337391b (bug 1828968) for causing windows build bustages. CLOSED TREE 2023-04-21 03:20:10 +03:00
Dana Keeler
a004a348f2 Bug 1828968 - osclientcerts: make RSA-PSS support configurable via pref r=jschanck
Due to design constraints, it is difficult for osclientcerts to properly
indicate whether or not each known key supports RSA-PSS. Ideally such a
determination would be made close to when a particular key is going to be used,
but due to the design of PKCS#11 and NSS' tight coupling to it, osclientcerts
would have to make this determination when searching for all known keys, which
has been shown to be prohibitively slow on Windows and results in unexpected
dialogs on macOS.

Thus, previously osclientcerts simply assumed all RSA keys supported RSA-PSS.
This has resulted in handshake failures when a server indicates that it accepts
RSA-PSS signatures.

This patch instead makes RSA-PSS support configurable via a pref
(security.osclientcerts.assume_rsa_pss_support). If the pref is true,
osclientcerts assumes all RSA keys support RSA-PSS. If it is false, it assumes
no RSA keys support RSA-PSS.

Differential Revision: https://phabricator.services.mozilla.com/D175966
2023-04-21 00:01:06 +00:00
Emilio Cobos Álvarez
c4b6dc1954 Bug 1829209 - Simplify a bit MutationObservers. r=webidl,smaug
ShouldAssert is always yes since I removed the native anonymous child
list thing, so we can just assert always.

The remaining customization is only about whether we should notify
the pres shell before or after the rest of the observer (we only need to
notify before for removals).

We only need one notifier thingie, since pres shell is an
nsIMutationObserver.

Differential Revision: https://phabricator.services.mozilla.com/D176077
2023-04-20 23:14:55 +00:00
Dana Keeler
f0596227b1 Bug 1811645 - avoid an American English colloquialism meaning "nonsense" r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D175802
2023-04-20 22:24:00 +00:00