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

769402 Коммитов

Автор SHA1 Сообщение Дата
Julian Seward 0dbf2be8a0 Bug 1723945 - nsSystemInfo.cpp: On non-x86_{32,64} Linux, CollectProcessInfo can silently fail and insert junk data into the process. r=nika.
This doesn't happen on any P1 platforms.  It affects all non-x86/x86_64
Linuxes though, in this example, aarch64-linux.  It causes Valgrind runs on
aarch64-linux to report hundreds of errors.  In short, attempts to read
various fields from /proc/cpuinfo fail, because `CollectProcessInfo()` assumes
that it is looking at a /proc/cpuinfo file from a x86_{32,64} target, but its
format is very different on non x86 targets.  Unfortunately the parsing fails,
but the failure is not detected, resulting in the uninitialised fields being
treated as if they contained real data.

The simple fix here is just to give default values for these fields.

Differential Revision: https://phabricator.services.mozilla.com/D123189
2021-09-13 09:43:36 +00:00
Csoregi Natalia 2ecacd2e2d Backed out 2 changesets (bug 1729717) for causing assertion failures on CacheObserver.cpp. CLOSED TREE
Backed out changeset 7123efe825f0 (bug 1729717)
Backed out changeset 92e06bd625c9 (bug 1729717)
2021-09-13 12:40:11 +03:00
Valentin Gosu 4ee56c10e6 Bug 1729717 - Remove unused nsDeleteDir helpers r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D124925
2021-09-13 09:12:35 +00:00
Valentin Gosu fc6cd46e34 Bug 1729717 - Remove unused CleanupCacheDirectories r=necko-reviewers,dragana
This was used previously when switching between cache backend versions.

Differential Revision: https://phabricator.services.mozilla.com/D124922
2021-09-13 09:12:34 +00:00
Lars T Hansen 0cfb9cd634 Bug 1728549 - Make pointer values RegPtr. r=jseward
Traditionally pointer values (tls, heap pointer) were represented as
RegI32 because we "know" that that is really a GPR, even if the GPR is
64-bit on 64-bit systems.

Later, we introduced RegPtr to hold pointer values that were not
reference values, but used only in some cases.  Let's use RegPtr to
hold the tls and heapreg pointer values now, introducing better type
safety that will aid us in the memory64 work.

There's a wrinkle because RegPtr can't be stored on the value stack.
Recently a "RegIntptr" abstraction was introduced as part of the
cleanup of WasmBCMemory, but this is not necessary at this time: all
we need is a local conversion to RegI32 or RegI64 as appropriate for
the platform, in the one place where this is needed, to push a RegPtr
value.  So simplify this code by removing RegIntptr again and adding
some local conversion functions.

Drive-by fix: Remove some redundant annotations on method definitons.

Differential Revision: https://phabricator.services.mozilla.com/D125060
2021-09-13 08:32:35 +00:00
Alexandre Poirot 9b24f68bed Bug 1727837 - [devtools] Add API to log dominators of suspicious objects. r=jdescottes
This API helps knowing why a given JS object it being kept alive.

You also have to manually modify the codebase to tell which precise object instances
you want to trace:
```
// From a DevTools CommonJS module:
const { track } = require("devtools/shared/test-helpers/tracked-objects.jsm");
// From anything else, JSM, XPCOM module,...:
const { track } = ChromeUtils.import("resource://devtools/shared/test-helpers/tracked-objects.jsm");

track(myLeakedObject);
```

Differential Revision: https://phabricator.services.mozilla.com/D123834
2021-09-13 07:47:06 +00:00
Cristian Tuns 0bcfe200a7 Backed out changeset 41a6e728e0be (bug 1728549) for causing spidermonkey failures on WasmBCMemory.cpp. CLOSED TREE 2021-09-13 03:47:46 -04:00
Victor Porof cdc159cdd9 Bug 1546838 - Remove migrations and all final remaining LMDB disk hits during startup, r=nanj,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D99324
2021-09-13 07:10:31 +00:00
Lars T Hansen 331bf799c4 Bug 1728549 - Make pointer values RegPtr. r=jseward
Traditionally pointer values (tls, heap pointer) were represented as
RegI32 because we "know" that that is really a GPR, even if the GPR is
64-bit on 64-bit systems.

Later, we introduced RegPtr to hold pointer values that were not
reference values, but used only in some cases.  Let's use RegPtr to
hold the tls and heapreg pointer values now, introducing better type
safety that will aid us in the memory64 work.

There's a wrinkle because RegPtr can't be stored on the value stack.
Recently a "RegIntptr" abstraction was introduced as part of the
cleanup of WasmBCMemory, but this is not necessary at this time: all
we need is a local conversion to RegI32 or RegI64 as appropriate for
the platform, in the one place where this is needed, to push a RegPtr
value.  So simplify this code by removing RegIntptr again and adding
some local conversion functions.

Drive-by fix: Remove some redundant annotations on method definitons.

Differential Revision: https://phabricator.services.mozilla.com/D125060
2021-09-13 07:01:08 +00:00
Matt Woodrow d3a34b8916 Bug 1729236 - Remove GetPaintRect. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124590
2021-09-13 05:01:36 +00:00
Matt Woodrow 9e33e350cd Bug 1729236 - Don't use GetPaintRect for painting text. r=jrmuizel
Text is the exception, where clipping the WR commands to the paint rect can let us reduce the size sent.
We want to avoid this when doing fallback painting, since we don't want to have to track paint rect changes for invalidation.

Differential Revision: https://phabricator.services.mozilla.com/D124589
2021-09-13 05:01:36 +00:00
Matt Woodrow 3be3d71f55 Bug 1729236 - Don't use GetPaintRect for CreateWebRenderCommands. r=jrmuizel
WebRender prefers to know the full bounds of the primitive, since it makes invalidation easier (and doesn't increase the size of the commands we send).

Differential Revision: https://phabricator.services.mozilla.com/D124588
2021-09-13 05:01:35 +00:00
Matt Woodrow 7292fcce3e Bug 1542929 - Remove mReferenceFrame from nsDisplayItem. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124009
2021-09-13 05:01:35 +00:00
Matt Woodrow d6c652134a Bug 1728251 - Remove mClip and compute it when we need it. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124008
2021-09-13 05:01:35 +00:00
Matt Woodrow 6ec95b95cd Bug 1728251 - Remove FuseClipChainUpTo since its unused. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124007
2021-09-13 05:01:34 +00:00
Matt Woodrow 642579b68a Bug 1728232 - Remove RestoreState. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124006
2021-09-13 05:01:34 +00:00
Matt Woodrow fcd01e0c90 Bug 1728050 - Move opacity flattening to be part of WR DL serialization. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124005
2021-09-13 05:01:33 +00:00
Emilio Cobos Álvarez 9a40a6df47 Bug 1728187 - Avoid minor alpha serialization mismatches in macOS in test_dont_use_document_colors.html.
MANUAL PUSH: Test fix CLOSED TREE
2021-09-13 02:55:42 +02:00
Emilio Cobos Álvarez 4abd90b054 Bug 1728187 - Make the non-native theme not use standins for system colors if forcing colors. r=morgan
We allow using system colors when forcing colors so it makes sense to do this.

Differential Revision: https://phabricator.services.mozilla.com/D125271
2021-09-12 23:37:47 +00:00
Emilio Cobos Álvarez 135a6c86bd Bug 1728187 - Make prefers-contrast match when forcing colors. r=morgan
This seems to match the expectation of ~all our stylesheets, which have
nice things for HCM / forced-colors which only happen when actually
using OS HCM.

Differential Revision: https://phabricator.services.mozilla.com/D125269
2021-09-12 23:37:46 +00:00
Harry Twyford ff6ab49717 Bug 1724956 - Use system colors on :root on Windows 10 when compacttheme.css is active. r=desktop-theme-reviewers,dao
This bug was introduced with the Proton tab design. Since we no longer draw a background behind inactive tabs, tabs are not legible against some accent colors. This problem is especially bad in brighttext themes. This patch also fixes 1714507, since the tabs are now legible against the light gray inactive window color.

Differential Revision: https://phabricator.services.mozilla.com/D125213
2021-09-12 23:25:13 +00:00
Harry Twyford f9a33ec80c Bug 1730237 - Split --urlbar-box-focus-bgcolor out from --urlbar-box-bgcolor. r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D125256
2021-09-12 23:24:44 +00:00
Michelle Goossens d4018f8ad0 Bug 1727925 - Part 4: Migrate wpt and wpt-headless on Windows 10-32 from AWS to Azure r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D125305
2021-09-12 22:14:42 +00:00
Emilio Cobos Álvarez bf6573ec9f Bug 1730252 - Simplify the patch for bug 1727193. r=dao
accent-color is inherited, there's no need to set it on every element.

And since it's ignored in HCM we can just put it in the regular place.

Differential Revision: https://phabricator.services.mozilla.com/D125273
2021-09-12 18:20:29 +00:00
Itiel ac78513f3e Bug 1624311 - Don't span "Learn more" text across the whole row in notification popups r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D125111
2021-09-12 17:04:18 +00:00
Antonin LOUBIERE 7f4064e3ff Bug 1722727 - Restore all the last group of closed tabs at once after Firefox reboot. r=kashav
Reopen all the last group of closed tabs at once even if Firefox has reboot, with session restore enabled for example.

Differential Revision: https://phabricator.services.mozilla.com/D122576
2021-09-12 17:01:18 +00:00
Antonin LOUBIERE 19cd0c58b8 Bug 1722567 - Save group of closed tabs to restore the all group. r=kashav
When a group of tabs is closed, save the it in session data so tabs could be restored together.

Differential Revision: https://phabricator.services.mozilla.com/D121110
2021-09-12 17:01:17 +00:00
Itiel 9c0ade1f5c Bug 1730357 - Adjust table headers color in about: pages for dark mode r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D125332
2021-09-12 17:00:02 +00:00
Renovate Bot 1d32c67cb9 Bug 1729224 - Update dependency sphinxcontrib-mermaid to v0.7.1 r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D124578
2021-09-12 14:54:41 +00:00
Sylvestre Ledru bb56269cf2 no bug - fx doc: update to python-dateutil 2.8.2 r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D124573
2021-09-12 14:54:30 +00:00
Renovate Bot fbde220fd9 Bug 1729224 - Update dependency Markdown to v3.3.4 r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D124583
2021-09-12 14:54:02 +00:00
André Bargull 5f81c5091d Bug 1728182 - Part 3: Remove getLocaleInfo from SpiderMonkey. r=platform-i18n-reviewers,dminor
This function is no longer used after parts 1-2.

Depends on D125163

Differential Revision: https://phabricator.services.mozilla.com/D125164
2021-09-12 13:45:21 +00:00
André Bargull 067c27c5ab Bug 1728182 - Part 2: Remove getLocaleInfo from toolkit. r=platform-i18n-reviewers,dminor
Depends on D125160

Differential Revision: https://phabricator.services.mozilla.com/D125163
2021-09-12 13:45:21 +00:00
André Bargull 8f7fd6dc1a Bug 1728182 - Part 1: Remove getLocaleInfo from dom. r=platform-i18n-reviewers,dminor,webidl,emilio
`getLocaleInfo` is never used outside of test code, so we can simply remove it.

Differential Revision: https://phabricator.services.mozilla.com/D125160
2021-09-12 13:45:20 +00:00
Emilio Cobos Álvarez 8c62f71616 Bug 1730341 - Enable cascade layers in all the css-cascade subdirectory.
Differential Revision: https://phabricator.services.mozilla.com/D125338
2021-09-12 11:23:20 +00:00
Emilio Cobos Álvarez d41c93a17a Bug 1687682 - Make autofill use a semi-transparent background-image rather than filter. r=mstange,tgiles
With the non-native theme we don't need filter for this to affect
"native" inputs, we can just implement the logic in nsNativeBasicTheme
instead.

A bit unfortunate that we need that special-case, but it seems better
than using filter, which can break websites due to it creating an
stacking context.

I _think_ there are tests that I need to adjust for this change, but if
not I'll write some.

Keep the current behavior behind a pref just in case.

Differential Revision: https://phabricator.services.mozilla.com/D125232
2021-09-12 11:16:07 +00:00
criss 046786d1c8 Merge autoland to mozilla-central. a=merge 2021-09-12 12:04:31 +03:00
criss 9640d7f5f3 Backed out 10 changesets (bug 1714138, bug 1542929, bug 1728232, bug 1729236, bug 1728258, bug 1728251, bug 1728050) for causing bug 1424348 a=backout
Backed out changeset c5b71e6ce0e5 (bug 1729236)
Backed out changeset c6bcc4ed3d2e (bug 1729236)
Backed out changeset 7e292895282a (bug 1729236)
Backed out changeset d9ddd915e0c2 (bug 1714138)
Backed out changeset 82b98d2f0dcf (bug 1728258)
Backed out changeset 9a84a36b9dc4 (bug 1542929)
Backed out changeset 96be978630ff (bug 1728251)
Backed out changeset d7a8bf19d849 (bug 1728251)
Backed out changeset cce0c53b439f (bug 1728232)
Backed out changeset 3afd6aee7849 (bug 1728050)
2021-09-12 12:00:30 +03:00
Itiel 806a2399bf Bug 1729854 - Fix the menuseparators and menitems style when appearing in a menulist, in Windows 10 r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D125117
2021-09-12 05:14:36 +00:00
Matthew Gregan a9d460a1c4 Bug 1725749 - Update audioipc to fce878ff. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D125165
2021-09-11 22:34:31 +00:00
Narcis Beleuzu 223d5b8e6b Backed out 1 changesets (bug 1716291) for bc failures on browser_startup_mainthreadio.js . CLOSED TREE
Backed out changeset 9cbf4fe3f852 (bug 1716291)
2021-09-11 22:52:58 +03:00
Tomislav Jovanovic 78c2b432df Bug 1729395 - Regression test for sendMessage after a popup is closed! r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D125203
2021-09-11 17:44:42 +00:00
Jon Coppeard 9c81ea6e0a Bug 1601228 - Move compacting GC impmementation to a new source file r=sfink
This moves ~1000 lines into a new file. No code changes.

Differential Revision: https://phabricator.services.mozilla.com/D125170
2021-09-11 13:24:55 +00:00
Dão Gottwald f948f3c352 Bug 1723860 - Add event telemetry for Firefox Suggest onboarding modal prompt. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D125244
2021-09-11 11:00:58 +00:00
Masayuki Nakano 903be77ea2 Bug 1672900 - part 3: Make `ExtendOrShrinkRangeToDelete()` selects all contents in all list items if a list element is selected or all list items in a list element is selected r=m_kato
When a list element has non-empty list item element, even if the list element is
selected, deleting operation should make the list element empty first (i.e.,
making the list element has only one empty list item element).  Then, another
deleting operation/command can delete it completely.  This is Blink compat
behavior in most cases except when the list has non-editable list item element
as first and/or last child of it.

Note that the new failures of the browserscpe are not compatible with the
new behavior, that is, it wants a list element is deleted when the last
list item is deleted.
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/delete.py#161-164
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/forwarddelete.py#146-149

Here is same test in the WPT:
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/tests/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html#386-402
And only Gecko failed in this case:
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#1449-1450
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#1937-1938
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#425-426
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#787-788

https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FDelete,ol?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512
https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FDelete,ul?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512
https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FBackspace,ol?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512
https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FBackspace,ul?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512

Therefore, the new failures are expected result.

Depends on D125029

Differential Revision: https://phabricator.services.mozilla.com/D125030
2021-09-11 07:17:38 +00:00
Masayuki Nakano 48b4d9fa76 Bug 1672900 - part 2: Rewrite `HTMLEditor::AutoDeleteRangesHandler::ExtendRangeToIncludeInvisibleNodes()` with modern helper classes r=m_kato
And this renames the method to `ExtendOrShrinkRangeToDelete` for alining to
new behavior changed by the following patch.

Depends on D125028

Differential Revision: https://phabricator.services.mozilla.com/D125029
2021-09-11 07:17:37 +00:00
Masayuki Nakano c059ff0841 Bug 1672900 - part 1: Add some edge cases into input-events-get-target-ranges-deleting-in-list-items.tentative.html r=m_kato
Some `contenteditable="false"` inclusing cases do not pass on Blink too, though.

Differential Revision: https://phabricator.services.mozilla.com/D125028
2021-09-11 07:17:36 +00:00
Myk Melez 72149ae42f Bug 1716291 - stop migrating xulstore/kvstore from LMDB- to safe mode backing stores; r=jstutte
Differential Revision: https://phabricator.services.mozilla.com/D124875
2021-09-11 06:54:06 +00:00
Drew Willcoxon 99d7ab1b1c Bug 1729587 - Tweaks to the Firefox Suggest preferences UI. r=mak,preferences-reviewers,jaws,fluent-reviewers
Per spec, the informational description about data collection under the main
Firefox Suggest checkbox should be hidden except for the "online" scenario,
since only the online scenario sends data to Mozilla.

We're also changing the two checkbox labels and adding another description under
the sponsored checkbox.

Depends on D125024

Differential Revision: https://phabricator.services.mozilla.com/D125031
2021-09-11 02:27:38 +00:00
Drew Willcoxon 9a516aec93 Bug 1729776 - Enable the Firefox Suggest "offline" scenario by default for users in the US region with en-* locales. r=mythmon,daleharvey,mak
Enable the Firefox Suggest "offline" scenario by default for users in the US
region with en-* locales.

Previously we relied on Nimbus to enable the offline scenario, and the goal here
is to make it permanent for all users in the US `home` region using en-* locales
so that we don't need Nimbus for it anymore.

With Nimbus, there were two essential mechanisms that restricted the scenario to
the desired population: the `browser.urlbar.quicksuggest.enabled` pref, which is
a global toggle for Firefox Suggest suggestions regardless of region and locale,
and a Nimbus recipe that enabled the pref for US en-* users only.

Without Nimbus, we have only the `browser.urlbar.quicksuggest.enabled` pref. We
can't rely on a server-side solution to target a specific population, so we need
to do it in the client. This patch keeps the default `false` value of
`browser.urlbar.quicksuggest.enabled` in firefox.js, and then it sets a new
default-branch value for the pref for the US en-* population on app startup.

There's actually a set of prefs related to the offline scenario that need to be
set, not only `browser.urlbar.quicksuggest.enabled`.

Depends on D124943

Differential Revision: https://phabricator.services.mozilla.com/D125024
2021-09-11 02:27:38 +00:00