Commit Graph

769237 Commits

Author SHA1 Message Date
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
Michael Comella
3910474ee9 Bug 1688888: decrease ui.*.radius.topmm on Android. r=botond
On one website, the touch input fluffing made an audio scrubber so large that it
covered other playback controls, making them inaccessible. This patch addresses
this problem by changing the top fluffing radius so it more closely matches the
bottom radius.

In our investigation, we found the top radius was added asymmetrically to the
bottom radius without an explanation. We speculate the bottom bias was added
because when you touch the screen, you tend to aim with the top part of your
finger, near your fingernail, and sometimes the bottom part of your finger will
also touch the screen, fat fingering it: if true, we would fluff the event less
below the touch point (which is what the code was). I vaguely remember this fat
fingering problem in the early 2010's but I haven't thought about it in recent
years and I didn't notice this problem in my testing for this patch – perhaps
device touch handling has just gotten better. Therefore, we feel safe to remove
the bias.

Differential Revision: https://phabricator.services.mozilla.com/D124267
2021-09-11 02:14:57 +00:00
Jeff Gilbert
67e6fce4dd Bug 1730282 - Cleanup IPC WebGL code. r=gfx-reviewers,lsalzman
* Replace QueueStatus with bool
* Remove unused structs and code
* Add some MOZ_LIKELY to (de)serialization branches

Differential Revision: https://phabricator.services.mozilla.com/D125295
2021-09-11 02:11:11 +00:00
Iulian Moraru
ebdc13da8f Backed out 2 changesets (bug 1728187) for causing reftest failures on backplate-select-001.html. CLOSED TREE
Backed out changeset 3a8197599a5c (bug 1728187)
Backed out changeset d26328903485 (bug 1728187)
2021-09-11 04:08:21 +03:00
Iulian Moraru
1121a4ab66 Backed out changeset 282b96702ce9 (bug 1687682) for causing multiple mochitest failures. 2021-09-11 04:07:28 +03:00
Emilio Cobos Álvarez
e53d06167c Bug 1730123 - Fix anonymous name handling in presence of stylesheet sharing. r=firefox-style-system-reviewers,boris
We need to compute the anonymous name on the fly while building the
CascadeData, otherwise we may see the same layer rule in two places due
to stylehseet sharing and make them incorrectly share a name.

Differential Revision: https://phabricator.services.mozilla.com/D125175
2021-09-11 00:04:18 +00:00
Jonathan Watt
aba1ed2d69 Bug 1730287. Fix startup.first_run_is_from_dmg telemetry to report first-run-not-from-dmg stats. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D125301
2021-09-10 23:42:06 +00:00
Scott
2724568ff8 Bug 1729847 - Fixing Pocket panel auto closing on enter r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D125278
2021-09-10 23:38:34 +00:00
Emilio Cobos Álvarez
b31a2c497f Bug 1730134 - Add some parsing and serialization tests for @layer. r=boris
This uncovers some serialization bugs, and some missing null-checks
given the statement layer doesn't have a rule list.

Differential Revision: https://phabricator.services.mozilla.com/D125176
2021-09-10 23:16:02 +00:00
Emilio Cobos Álvarez
694fef2dcb 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-10 23:10:52 +00:00
Emilio Cobos Álvarez
cb73f03ff7 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-10 23:10:51 +00:00
Emilio Cobos Álvarez
269520d9e9 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-10 22:44:44 +00:00
Jed Davis
1b03ee3ea6 Bug 1725828 - Preload dependencies for the Widevine CDM when sandboxing it on Linux. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D123542
2021-09-10 22:11:19 +00:00
Daniel Holbert
80262e03fb Bug 1730265: Add includes to SandboxTestingChild.cpp and SandboxTestingParent.cpp to fix build errors with --disable-unified-build. r=handyman
These includes provide some types and functionality that these files need. In
the default build environment, there's no issue because they pick up these
includes via piggybacking on neighboring files that they're unified with; but
in a non-unified build, the files need to directly have these includes, to
avoid build errors.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1730265#c0 for the specific
build errors being addressed here.

Differential Revision: https://phabricator.services.mozilla.com/D125285
2021-09-10 22:07:52 +00:00
Eitan Isaacson
9923e78bac Bug 1729879 - Start NSApp in AskUserIfWeShouldInstall alert. r=mstange
This is needed for platform accessibility support.

Differential Revision: https://phabricator.services.mozilla.com/D125280
2021-09-10 21:56:37 +00:00
Masayuki Nakano
153b43e7e2 Bug 1720809 - part 2: Make insertLineBreak command handler in HTMLEditor insert a linefeed character instead of <br> element in same condition as Blink/WebKit r=m_kato
Similar to the previous patch, this patch makes `insertLineBreak` command
handler of `HTMLEditor` may insert a linefeed character instead of `<br>`
element for compatibility with Blink/WebKit.

Note that for making same name rules as `insertParagraphSeparator` command
handlers, this patch renames
`HTMLEditor::InsertBRElementAtSelectionWithTransaction()` to
`InsertLineBreakAsSubAction()` and moves
`EditorBase::InsertLineBreakAsSubAction()` to `TextEditor` since it's
used only by `TextEditor` instance.

Depends on D124731

Differential Revision: https://phabricator.services.mozilla.com/D124732
2021-09-10 21:45:47 +00:00