Commit Graph

769213 Commits

Author SHA1 Message Date
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
Masayuki Nakano
2640b6cdc9 Bug 1720809 - part 1: Make insertParagraphSeparator command handler in HTMLEditor insert a linefeed character instead of <br> element in same condition as Blink/WebKit r=m_kato
Blink and WebKit inserts linefeed character for `insertParagraphSeparator`
command if:
* the insertion point's block parent is an editing host
* the editing host's outside display is "inline"
* the editing host's white space style preformats linefeed characters

For web-compat, we should do this in these conditions.

Depends on D124562

Differential Revision: https://phabricator.services.mozilla.com/D124731
2021-09-10 21:45:47 +00:00
Sam Foster
a7f6392b0f Bug 1729736 - Extend success-animation frames to 16px to avoid overlap. r=dao
* Position each "frame" in the svg filmstrip animation at 16px increments, which allows space for the scaled path without intruding on the subsequent frame.
* Update CSS widths and animation details

Differential Revision: https://phabricator.services.mozilla.com/D125138
2021-09-10 21:17:21 +00:00
Andrew Halberstadt
ced89bafdb Bug 1730255 - [ci] Don't 'always-target' Python tests on MacOS, r=taskgraph-reviewers,jmaher
We set always-target: true for Python unittest tasks. This means they show up on every push (when appropriate files are modified). The reasoning behind this is that they run so fast anyway, and if you modify the relevant code then you almost always want to see the unittests for said code on your try pushes.

However on MacOS, the pool is limited. Given the differences between Linux and Mac for most Python unittests are likely extremely small, I don't think the cost of bogging down the Mac pool outweighs the benefits here.

Differential Revision: https://phabricator.services.mozilla.com/D125281
2021-09-10 21:03:19 +00:00
Csoregi Natalia
55bfc3e5b0 Backed out changeset b3dc7d77241f (bug 1716291) for causing bustage on statics.rs. CLOSED TREE 2021-09-11 00:13:39 +03:00
Tomislav Jovanovic
a7eccd8e1e Bug 1729395 - Handle message sender going away during message processing r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D125128
2021-09-10 20:40:40 +00:00
Myk Melez
80b49fce47 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-10 20:06:31 +00:00
Gabriele Svelto
ef5658276d Bug 1710097 - Use the memmap2 crate in place of the unmaintained memmap crate r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D124653
2021-09-10 19:46:14 +00:00
Byron Campen
212446b536 Bug 1729921: Cancel with a sync dispatch to the target thread in these tests. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D125118
2021-09-10 19:08:25 +00:00
Jonathan Kew
7a9d73dcf4 Bug 1729947 - Force sync font fallback in text-decoration tests, because some of the emphasis marks may depend on fallback fonts. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D125194
2021-09-10 18:24:50 +00:00
Dzmitry Malyshau
313f426df3 Bug 1729751 - Update wgpu and ron 3rd parties r=jimb
Brings a few important fixes:
  - better WGSL support
  - Solaris build (1729751)
  - crash in "_MTLCommandEncoder dealloc" (1729648)

Differential Revision: https://phabricator.services.mozilla.com/D125103
2021-09-10 18:24:02 +00:00
Emilio Cobos Álvarez
c2b9557652 Bug 1729804 - Add experimental support for "e", "pi", and various trigonometric functions in calc(). r=firefox-style-system-reviewers,boris
I'll add some tests before enabling. Also, WebKit folks (who have
implemented cos() / tan() / sin()) said they will upstream their tests
to WPT, so I'll extend those with the inverse functions before landing
as well.

Differential Revision: https://phabricator.services.mozilla.com/D124990
2021-09-10 18:22:36 +00:00
Emilio Cobos Álvarez
34d7e68b25 Bug 1730220 - Remove quantum_render and webgpu features since they're unconditionally enabled. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D125243
2021-09-10 18:15:35 +00:00
Andrew Creskey
f0ad2e07e9 Bug 1718404 - Fix high frequency browser_interactions_typing.js failure r=Standard8
Fix a scenario where it was possible, in automation, for the typing interaction time to report 0ms due to rounding of fractional milliseconds.

In addition, now sending keystrokes individually as this is a better simulation of how users type.

Differential Revision: https://phabricator.services.mozilla.com/D125189
2021-09-10 18:09:18 +00:00
Luca Greco
b12b5e78ab Bug 1728245: Add profile marker on WebExtensions Schemas.load. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D125204
2021-09-10 17:45:20 +00:00
Andrew Halberstadt
0e657b5df8 Bug 1697066 - [ci] Stop running ccov M-swr(bc) tasks as we already run them with fission, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D125217
2021-09-10 17:43:52 +00:00
Dzmitry Malyshau
56f4d4bdc1 Bug 1730014 - Avoid ASCII intermediate for WGSL shader code r=jgilbert,webidl,emilio
we were doing UTF16 -> ASCII null term -> UTF8, and we were losing information on the way.
Now we go UTF16 -> UTF8 -> UTF8 null term
Also, we no longer accept SPIR-V

Differential Revision: https://phabricator.services.mozilla.com/D125123
2021-09-10 17:19:41 +00:00
Emilio Cobos Álvarez
8d7ad39477 Bug 1730022 - Improve debuggability of nsIContent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D125192
2021-09-10 16:39:15 +00:00
Bob Owen
74b9880c08 Bug 1709603: Use a separate permanent canvas back buffer when texture has synchronization. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D125201
2021-09-10 16:37:05 +00:00
Neil Deakin
82f617d91d Bug 1730089, fix misnamed localization key for close tab warning, r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D125178
2021-09-10 15:04:34 +00:00
Niklas Baumgardner
42f48852ca Bug 1534799 - Convert &searchTextBox.clear.label; to fluent. r=emalysz,fluent-reviewers,flod,dao,morgan
Differential Revision: https://phabricator.services.mozilla.com/D123640
2021-09-10 14:52:55 +00:00
Sergey Galich
4830257aaa Bug 1700897 - Apply margin-top to generic dialog in aboutlogins.css r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D125127
2021-09-10 14:34:55 +00:00
Rob Wu
d68f1f3940 Bug 1729009 - Improve reliability of attachment downloader + tests r=leplatrem
- Replace `services.settings.server` pref with `Utils.SERVER_URL` for
  consistency with the whole RemoteSettings client.

- Replace `fetch` with `Utils.fetch` to fetch more reliably.

- Change implementation of `Utils.fetch` to not mangle the response,
  which would particularly be problematic for binary attachments.

Differential Revision: https://phabricator.services.mozilla.com/D124475
2021-09-10 13:33:12 +00:00
Masayuki Nakano
2884959c1b Bug 1725850 - part 10: Port editor/libeditor/crashtests/418923-1.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D124855
2021-09-10 13:09:42 +00:00
Masayuki Nakano
00b18cd680 Bug 1725850 - part 9: Port editor/libeditor/crashtests/414178-1.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D124854
2021-09-10 13:09:41 +00:00