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

802000 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes f04f586b94 Bug 1780332 - [devtools] Update MDN compat data (2022 July 18th week) r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D152249
2022-07-20 08:54:06 +00:00
Tom Schuster d3c6e96252 Bug 1779581 - Enable network.cookie.sameSite.schemeful in tests. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D152062
2022-07-20 08:12:49 +00:00
Mark Banner edfd1b7e8d Bug 1780020 - Add a comment to the top-level .eslintrc.js explaining the path formats. r=linter-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D152165
2022-07-20 07:34:00 +00:00
Nicolas Chevobbe 7878c0f5a0 Bug 1780156 - [devtools] Add EvaluationContextSelector to BrowserConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150090
2022-07-20 07:17:15 +00:00
Nicolas Chevobbe 777742c5aa Bug 1780156 - [devtools] Use private fields in BrowserConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150088
2022-07-20 07:17:15 +00:00
Julian Descottes d068c092b3 Bug 1778270 - [devtools] Remove outdated WebIDE documentation r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152172
2022-07-20 06:55:57 +00:00
Frederik Braun 4ae8b867d8 Bug 1777164 - require SecureContext for setHTML r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D150531
2022-07-20 06:54:36 +00:00
André Bargull b0971757f4 Bug 1775254 - Part 2: Prefix cmath calls with "std::". r=mgaudet
"jsmath.cpp" includes `<cmath>`, so we should include the "std" namespace.

Differential Revision: https://phabricator.services.mozilla.com/D150792
2022-07-20 05:32:16 +00:00
André Bargull 39b5092b97 Bug 1775254 - Part 1: Avoid large floating point precision errors in js::powi. r=mgaudet
The previous `js::powi` implementation could cause large floating point
precision errors. For example `(-1.00000041289256280663266807096078991889953613281250000) ** -365287834`
returned `3.1456398721089196e-66` instead of `3.1456398910784315e-66`. This is an
error of 35987774 ULP.

Change `js::powi` as follows:
- Optimise only for non-negative exponents.
- Always optimise when the exponent is `<= 4` to match `MPow::foldsTo`.
- When the exponent is `> 4`, only optimise when the base is an integer. Perform
  the whole computation with integer values and when an overflow was detected,
  fallback to `std::pow`.
- In all other cases use `std::pow`.

Differential Revision: https://phabricator.services.mozilla.com/D150791
2022-07-20 05:32:15 +00:00
André Bargull be0dda520f Bug 1780010 - Part 12: Don't pass an explicit string length when the compiler can compute it. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D152108
2022-07-20 05:30:51 +00:00
André Bargull 2d2e10a78d Bug 1780010 - Part 11: Use calloc instead of malloc + memset to zero allocate memory. r=jandem
Noticed because the last part changed `memset` callers.

Depends on D152052

Differential Revision: https://phabricator.services.mozilla.com/D152053
2022-07-20 05:30:51 +00:00
André Bargull 89f22f6cb3 Bug 1780010 - Part 10: Use initialiser syntax instead of memset to zero allocate. r=jandem
Noticed while checking for more `sizeof` uses across the code base.

Depends on D152051

Differential Revision: https://phabricator.services.mozilla.com/D152052
2022-07-20 05:30:50 +00:00
André Bargull 6dad1f49aa Bug 1780010 - Part 9: Replace sizeof with std::size(). r=jandem
Depends on D152049

Differential Revision: https://phabricator.services.mozilla.com/D152051
2022-07-20 05:30:50 +00:00
André Bargull 8a41764bfe Bug 1780010 - Part 8: Replace sizeof with enhanced for-loop. r=jandem
Depends on D152048

Differential Revision: https://phabricator.services.mozilla.com/D152049
2022-07-20 05:30:49 +00:00
André Bargull 5e0d6c962d Bug 1780010 - Part 7: Replace sizeof with std::end(). r=jandem
Depends on D152047

Differential Revision: https://phabricator.services.mozilla.com/D152048
2022-07-20 05:30:49 +00:00
André Bargull 94b670bdb4 Bug 1780010 - Part 6: Replace sizeof with std::string_view for function strings. r=jandem
Adding `StringBuffer::append(std::string_view)` would make this more readable,
but the implicit `std::string_view(char*)` constructor could then lead to adding
implicit `strlen` calls, which we try to avoid.

Differential Revision: https://phabricator.services.mozilla.com/D152047
2022-07-20 05:30:49 +00:00
André Bargull 4368019b3a Bug 1780010 - Part 5: Use string_view in more places. r=jandem
builtin/Object.cpp:
- Using `string_view` avoids the call to `strlen` when `Consume` isn't inlined.

jsapi-tests/testCompileNonSyntactic.cpp:
shell/jsoptparse.cpp:
xpconnect/src/XPCWrappedNativeJSOps.cpp:
- Using `string_view` avoids the `sizeof - 1` pattern.

Depends on D152044

Differential Revision: https://phabricator.services.mozilla.com/D152045
2022-07-20 05:30:48 +00:00
André Bargull 913df26a2a Bug 1780010 - Part 4: Store "Infinity" as string_view in js_strtod. r=jandem
`std::string_view` stores a pointer and its length, so we no longer have to
use two different variables. `std::string_view` methods are also `const_expr`,
so the compiler will inline them at compile-time.

Depends on D152043

Differential Revision: https://phabricator.services.mozilla.com/D152044
2022-07-20 05:30:48 +00:00
André Bargull d20dab86f3 Bug 1780010 - Part 3: Use EqualChars to compare Infinity/NaN for TypedArray indices. r=jandem
Part 1 ensures we generate fast code when comparing against constant `char*`
strings, so we no longer need the more complicated code.

Depends on D152042

Differential Revision: https://phabricator.services.mozilla.com/D152043
2022-07-20 05:30:48 +00:00
André Bargull 5e20c53077 Bug 1780010 - Part 2: Replace ArrayEqual with EqualChars. r=jandem
This makes the code a bit more uniform.

The previous part should make bug 1589591 obsolete, so it seems useful to make
the code more uniform.

Depends on D152040

Differential Revision: https://phabricator.services.mozilla.com/D152042
2022-07-20 05:30:47 +00:00
André Bargull 0a9edde0ca Bug 1780010 - Part 1: Special-case Latin1Char with char comparison in EqualChars. r=jandem
Compilers don't emit `memcmp` when the both inputs aren't exactly the same type.

Differential Revision: https://phabricator.services.mozilla.com/D152040
2022-07-20 05:30:47 +00:00
Nicolas Chevobbe ee9725f1e2 Bug 1779847 - [devtools] Add chromeContext property to logPoint messages. r=bomsy.
We only set it to true if the target the breakpoint
was hit in is a parent process target, which should
be enough.

Differential Revision: https://phabricator.services.mozilla.com/D152018
2022-07-20 05:26:57 +00:00
criss dcedbd6b45 Backed out changeset 6aefdcf0d53b (bug 1773378) for causing mochitest failures on browser_test_background_tab_scroll.js. CLOSED TREE 2022-07-20 07:36:07 +03:00
Masayuki Nakano a45b6d1e16 Bug 1773848 - Make the for-loop in the lambda in `HTMLEditor::InsertTableRowsWithTransaction` refer only `cellDataInLastRow` r=m_kato
It's renamed from `CellData`, but `cellData` still exists in the wider scope.
https://searchfox.org/mozilla-central/rev/f6a2ef2f028b8f1eb82fa5dc5cb1e39a3baa8feb/editor/libeditor/HTMLTableEditor.cpp#923-924

Therefore, these lines are wrong:
https://searchfox.org/mozilla-central/rev/f6a2ef2f028b8f1eb82fa5dc5cb1e39a3baa8feb/editor/libeditor/HTMLTableEditor.cpp#1049,1053

because `cellData` was in the for-loop:
https://searchfox.org/mozilla-central/rev/bc4493c72442ad55aecf6b575edb0df4ed18b113/editor/libeditor/HTMLTableEditor.cpp#1008-1009,1020,1022,1026

Differential Revision: https://phabricator.services.mozilla.com/D152144
2022-07-20 04:24:52 +00:00
sotaro 1af3966f37 Bug 1780138 - Let zero copy hardware decoded video to release on all GPUs on Windows r=jrmuizel,gfx-reviewers
A bug is not reported related to "zero copy hardware decoded video" on Windows. Zero video frame copy needs "reuse decoder device ". And it is already enabled on Nightly / Early Beta by Bug 1773714.

RadeonBlockNoVideoCopy is renamed to RadeonBlockZeroVideoCopy

Differential Revision: https://phabricator.services.mozilla.com/D152139
2022-07-20 03:53:30 +00:00
Nick Alexander a67a0b63a4 Bug 1775128 - Add `toast_notification` message template for displaying (native) toast notifications. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D150073
2022-07-20 02:58:42 +00:00
Nick Alexander 29cc44fa79 Bug 1775128 - Pre: Add `RemoteL10n.formatLocalizableText` helper. r=barret,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D151657
2022-07-20 02:58:42 +00:00
Cristian Tuns 296431b106 Backed out 8 changesets (bug 1754239, bug 1766307, bug 1766308, bug 1766310) for causing build bustages on Logging.h CLOSED TREE
Backed out changeset 50918938a839 (bug 1766307)
Backed out changeset 19800bb8974e (bug 1766307)
Backed out changeset 40ec82794497 (bug 1766310)
Backed out changeset 4f860e20098c (bug 1754239)
Backed out changeset f54eac410bfd (bug 1754239)
Backed out changeset c8cc5e0c89dd (bug 1766307)
Backed out changeset d7aab4098f12 (bug 1766308)
Backed out changeset a7ffa6f44fe8 (bug 1766307)
2022-07-19 21:20:07 -04:00
Dan Robertson 9950071606 Bug 1773378 - Implement stateless dominant axis scrolling. r=botond,mstange
Implement the new dominant axis locking mode for the apz.axis_lock.mode
preference. When using this mode, we do not use the traditional axis locks.
Instead we only consider the input pan displacement for the axis with
a larger value, zeroing out the displacement on the opposite axis.

Differential Revision: https://phabricator.services.mozilla.com/D152104
2022-07-20 00:51:27 +00:00
Ting-Yu Lin e4b537b53a Bug 1780264 Part 3 - Remove ReflowInput::mStyleText. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D152204
2022-07-20 00:48:22 +00:00
Ting-Yu Lin efdf31a619 Bug 1780264 Part 2 - Remove ReflowInput::mStylePadding. r=emilio
While I'm here, rename the local variable `styleMargin` to `margin` to make the
naming consistent with the `padding` naming in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D152203
2022-07-20 00:48:22 +00:00
Ting-Yu Lin 991f16122f Bug 1780264 Part 1 - Remove ReflowInput::mStyleVisibility. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D152202
2022-07-20 00:48:21 +00:00
Mike Hommey e3a31781ae Bug 1779691 - Stop applying D116995 to clang-trunk. r=firefox-build-system-reviewers,andi
It was applied upstream.

Also rename the patch for clang-14, with its upstream-landed
description.

Differential Revision: https://phabricator.services.mozilla.com/D151900
2022-07-20 00:29:07 +00:00
Gerald Squelart ef459acb0b Bug 1779513 - Log chunk updates&deletions in the ProfileBufferGlobalController - r=florian
This log goes into `profile.profilingLog[<parent pid>].bufferGlobalController.updates`, an array of data arrays.
See the related `updatesSchema` for what's in those data arrays.

Note: There are no direct tests, as this is intended for advanced human users,
and the format is not guaranteed to stay stable.

Differential Revision: https://phabricator.services.mozilla.com/D151776
2022-07-19 23:42:03 +00:00
az 14b832179b Bug 1766307 - Add gtests for MediaCodecsSupport r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D149939
2022-07-19 23:27:44 +00:00
az 2414e5532c Bug 1766307 - Add H264 include / namespace specifier for PlanarYCbCrImage to fix try build errors r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D148574
2022-07-19 23:27:43 +00:00
az fe4742c4cd Bug 1766310 - Return HW decode support from WMFMediaDataDecoder r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D147390
2022-07-19 23:27:43 +00:00
az 8edfd9252e Bug 1754239 - Update codec support string in ContentParent::BroadcastMediaCodecsSupportedUpdate r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D147389
2022-07-19 23:27:43 +00:00
az 827115d590 Bug 1754239 - Display CodecSupportInfo gfxVar in about:support r=media-playback-reviewers,fluent-reviewers,Gijs,alwu
Differential Revision: https://phabricator.services.mozilla.com/D147388
2022-07-19 23:27:42 +00:00
az 9716f6df46 Bug 1766307 - Store media codec support info during IPC broadcast r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D147387
2022-07-19 23:27:42 +00:00
az 86d8351f49 Bug 1766308 - Add gfxVars::CodecSupportInfo to store user-readable codec support string r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D147386
2022-07-19 23:27:39 +00:00
az 5d97400d50 Bug 1766307 - Enable PDMFactory::Supports/SupportsMimeType to process+return HW/SW decode info r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D147385
2022-07-19 23:27:38 +00:00
Dana Keeler 43dc5f66a3 Bug 1779848 - don't assert if mFd is null in nsNSSSocketInfo::ClientAuthCertificateSelected r=ckerschb
If nsNSSSocketInfo::mFd is nullptr, it means the connection has been closed.
This isn't an error, and ClientAuthCertificateSelected shouldn't assert if this
happens.

Differential Revision: https://phabricator.services.mozilla.com/D151962
2022-07-19 23:12:21 +00:00
Punam Dahiya 22d80d654a Bug 1779654- Add SpecialMessageAction BLOCK_MESSAGE that allows to block message r=jprickett
To be used in about:privatebrowsing Pin Private Window promo message. BLOCK_MESSAGE will be used in a multi action call after user clicks 'Pin To taskbar'. This will help in hiding Pin promo message on current and preloaded tabs

Differential Revision: https://phabricator.services.mozilla.com/D151888
2022-07-19 23:11:31 +00:00
criss b51dc963d5 Backed out changeset 99d1caaa88e2 (bug 1776592) for causing reftest failures on outline-auto-002.html. CLOSED TREE 2022-07-20 02:08:55 +03:00
Dana Keeler 270df11f4c Bug 1770269 - Enable EV Treatment for E-Tugra v3 Global root certificates r=rmf
Differential Revision: https://phabricator.services.mozilla.com/D151749
2022-07-19 22:16:34 +00:00
Dana Keeler 2985f72f3a Bug 1764397 - Enable EV Treatment for Digicert G5 root certificates r=rmf
Differential Revision: https://phabricator.services.mozilla.com/D151748
2022-07-19 22:16:33 +00:00
Barret Rennie 853bb1a722 Bug 1762652 - Add detailed telemetry around schema validation in Nimbus r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D151195
2022-07-19 21:58:50 +00:00
Emilio Cobos Álvarez 63f146831e Bug 1776592 - Make auto outline draw two differently-colored strokes instead of one. r=mstange
Behind a pref, just in case.

Differential Revision: https://phabricator.services.mozilla.com/D150466
2022-07-19 21:53:45 +00:00
Robert Mader 9583d02e45 Bug 1779425 - Check for GbmDevice before using it, r=stransky,jgilbert
In some non-standard configurations we unexpectedly end up in this paths
without a GBM device - one example being the GPU process. Fail cleanly
instead of crashing in those cases, triggering fallback paths.

Context: in the past DMABuf usage was tightly coupled to GBM. Since the
introduction of the surfaceless and device EGL platforms that is not
longer the case, thus we can't make checks like `IsDMABufWebGLEnabled()`
depend on the presence of a GBM device.

Optimally all affected cases get fixed eventually. Until then and also
for future cases it makes sense to fail softly.

Differential Revision: https://phabricator.services.mozilla.com/D152173
2022-07-19 21:52:04 +00:00