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

834903 Коммитов

Автор SHA1 Сообщение Дата
Dale Harvey a40e109905 Bug 1819867 - Update ubuntu distribution code. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D171448
2023-03-17 17:57:17 +00:00
Zach Hoffman 4b116c8e65 Bug 1808229 - Enable :nth-child(... of <selector>) in all release channels r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172838
2023-03-17 17:07:12 +00:00
Iain Ireland 58a60ccba9 Bug 1817933: Don't elide shapeguard for debugger targets r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D171520
2023-03-17 16:31:18 +00:00
Robert Longson 209497bfd2 Bug 1822884 - Remove eSHAPE from IsNodeOfType and replace with IsSVGGeometryElement r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172820
2023-03-17 16:26:34 +00:00
Updatebot af85a73834 Bug 1822882 - Update irregexp to 49d868fb32eb9982980ed0f6d0925572d425ce94 r=iain
Differential Revision: https://phabricator.services.mozilla.com/D172814
2023-03-17 16:24:29 +00:00
Randell Jesup 708c070510 Bug 1720594: Add an Assertion r=necko-reviewers,kershaw,valentin
Differential Revision: https://phabricator.services.mozilla.com/D170965
2023-03-17 15:52:55 +00:00
blessingpeters 751e4466a7 Bug 1670436 - Prevent localized strings from being truncated in the crash reporter client r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D172823
2023-03-17 15:52:45 +00:00
Hubert Boma Manilla bbb52ed0bc Bug 1818806 [devtools] Local overrides feature in the debugger r=ochameau,devtools-backward-compat-reviewers,devtools-reviewers
Highlights for this patch
- Support for the script overrides feature
- Overrides for html files are not supported
- Add styling to indicate overrides
- Add mochitests

Depends on D163600

Differential Revision: https://phabricator.services.mozilla.com/D163610
2023-03-17 14:18:29 +00:00
Jan-Niklas Jaeschke 0ec5448edf Bug 1818686: Reset selection after replacing textarea content when no editor is present. r=masayuki
If the `.textContent` or `.defaultValue` attributes are used to change the content of a textarea,
according to the DOM Spec dictates first all children are removed and then a new child is added.
Removing all child elements must collapse the selection to 0.
However, the spec is not very precise on that matter,
see https://github.com/whatwg/html/issues/9028 .

This was currently not done (the selection was adjusted to the new length instead),
because the `Reset()` call was executed as a script runner,
therefore running (twice) after the new content has already been added.
With this change, the selection is adjusted to the new length explicitly
as soon as `ContentChanged()` is invoked, therefore updating it to 0
when content is removed.

Differential Revision: https://phabricator.services.mozilla.com/D172791
2023-03-17 12:52:46 +00:00
Jonathan Kew c258387e9f Bug 1822184 - Create an ElementOrArray<T> helper in CanvasRenderingContext2D, and use this to store a single ClipState directly without a separate array allocation. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D172657
2023-03-17 12:48:11 +00:00
Cristina Horotan 588b393945 Backed out 2 changesets (bug 1815937) for causing wpt failures at blockeduri-inline.html CLOSED TREE
Backed out changeset 668971329051 (bug 1815937)
Backed out changeset a4a3430c9bab (bug 1815937)
2023-03-17 15:52:33 +02:00
Csoregi Natalia 60acb93de2 Backed out changeset f38530a9bedf (bug 1822184) for causing build bustage on CanvasRenderingContext2D.h. CLOSED TREE 2023-03-17 14:11:52 +02:00
Dale Harvey 66849540fe Bug 1822326 - Add ability to configure maximum trending suggestions. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D172766
2023-03-17 11:41:28 +00:00
Jonathan Kew 5f730d4cdb Bug 1822184 - Create an ElementOrArray<T> helper in CanvasRenderingContext2D, and use this to store a single ClipState directly without a separate array allocation. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D172657
2023-03-17 11:26:18 +00:00
Emilio Cobos Álvarez 8bc6063811 Bug 1822837 - Fix flex-basis of update history list. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D172798
2023-03-17 10:24:10 +00:00
Daisuke Akatsuka dcd82d22b7 Bug 1822319: Add a test of behavior that user presses enter key to reload current url without selecting r=mak
Differential Revision: https://phabricator.services.mozilla.com/D172845
2023-03-17 08:37:52 +00:00
Iulian Moraru 6f60d5fa4d Backed out 4 changesets (bug 1384606) for causing mochitest browser a11y failures on browser_text_basics.js. CLOSED TREE
Backed out changeset 6f7176c0d6a3 (bug 1384606)
Backed out changeset 19c51e735059 (bug 1384606)
Backed out changeset eb8a5705b2d3 (bug 1384606)
Backed out changeset 39b202962261 (bug 1384606)
2023-03-17 10:40:53 +02:00
Abhishek Tiwari 644c56f50a Bug 1821621 - Convert toolkit/components/kvstore to ES modules r=Standard8,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D172233
2023-03-17 08:10:33 +00:00
Nicolas Chevobbe bf793882d2 Bug 1815937 - [devtools] Remove inline script displacement handling in source actor. r=devtools-reviewers,ochameau.
This is all made unnecessary by the previous patch of the stack.

Differential Revision: https://phabricator.services.mozilla.com/D170581
2023-03-17 08:03:08 +00:00
Nicolas Chevobbe c0be3c7697 Bug 1815937 - Set ScriptLoadContext column number for inline scripts. r=smaug,devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D170580
2023-03-17 08:03:07 +00:00
Ekene Nwobodo a99307f0ff Bug 1822221 - Convert browser/actors/LinkHandler* JSMs to ESMs. r=kpatenio,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D172542
2023-03-17 07:46:57 +00:00
Cristina Horotan e7a4fa83cf Bug 1821461 - Disable browser_about_translations.js on linux for frequent failures r=intermittent-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D172685
2023-03-17 07:01:02 +00:00
Mozilla Releng Treescript 596082a5be no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
be -> 981914e311f9bef54f7415ff561b8784714b86bc
he -> 4532acad918fee334291f57934a351c4230ad214
is -> c3429f97ee2c18a089c14f83a0cf00c6d727ef2b
ko -> fc76e3bc54d8e83277c6a37a7b2487c1fbf68862
nl -> 2c0bd865d8750cb81d5ad9c39a5e8c4a7e72399c
nn-NO -> 1b842a5efd9e350a0d7dba8bbcaa8e7833ae335d
pt-BR -> 217e2cf2fddeca56ace0987879561b283675f8a7
sr -> 33da5bd455856295e1c82532280937164fccb575
sv-SE -> 30fcd8ac006aeb8c3c6b5001c4619fa9afea1a2d
zh-TW -> 991f8201bfe26ba76d2016483dc998d603c3f473
2023-03-17 07:00:29 +00:00
Makoto Kato d0d41ac35f Bug 1822792 - Convert ModuleManager's resouces to ESM. r=geckoview-reviewers,extension-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D172781
2023-03-17 06:34:35 +00:00
Masayuki Nakano 25e942f2a0 Bug 1384606 - part 4: Make `nsIFrame::GetFrameFromDirection` allow to return content in different native anonymous subtree if the caller wants r=emilio
The a11y module wants to traverse frames in native anonymous subtrees.
Therefore, this patch adds new option for allowing it, makes
`nsIFrame::GetFrameFromDirection` check it before comparing native anonymous
subtree root nodes, and makes `HyperTextAccessible::FindOffset` use the
option.

Differential Revision: https://phabricator.services.mozilla.com/D172759
2023-03-17 06:26:03 +00:00
Masayuki Nakano 9cf5036656 Bug 1384606 - part 3: Make `nsPeekOffsetStruct` and its handlers treat `bool` options with an `EnumSet` r=emilio
The constructor of `nsPeekOffsetStruct` and `nsIFrame::GetFrameFromDirection`
take too many `bool` arguments.  Therefore, adding new `bool` arguments does
not make sense.  Now, we have a useful `mozilla:EnumSet` class to treat them
with an `enum class`. Therefore, let's change `nsPeekOffsetStruct` with it.

Differential Revision: https://phabricator.services.mozilla.com/D172758
2023-03-17 06:26:03 +00:00
Masayuki Nakano 2a1ef347fb Bug 1384606 - part 2: Add automated tests for caret browsing around form controls r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172347
2023-03-17 06:26:03 +00:00
Masayuki Nakano 458f69ffc8 Bug 1384606 - part 1: Make `nsIFrame::GetFrameFromDirection` treat frames in different native anonymous subtree not selectable r=emilio
It's called by `PeekOffsetFor*` and `GetPrevNextBidiLevels`, so it's used for
considering whether to put caret or move a selection range boundary.
Therefore, it should treat nodes which can be managed by `Selection` as
selectable.  In theory, even if a native anonymous subtree does not have
an independent selection, its content nodes should not be the container of
the selection range boundaries of selection outside the subtree since
Selection API shouldn't expose nodes in native anonymous subtrees.  Therefore,
it can simply treat content nodes in different anonymous subtrees are not
selectable.

Note that it's not standardized that how `Selection.modify` works with various
content nodes.
https://w3c.github.io/selection-api/#dom-selection-modify

And also Chrome cannot cross generated content like form controls with this API.
This could cause web-compat issues, but it does not make sense for caret
navigation, and anyway out of scope of this bug.  Therefore, this patch just
adds the crash test.

Differential Revision: https://phabricator.services.mozilla.com/D172204
2023-03-17 06:26:02 +00:00
Noemi Erli 585fe519f1 Backed out 4 changesets (bug 1384606) for causing build bustage in nsFrameSelection.h CLOSED TREE
Backed out changeset 917f487fdf0f (bug 1384606)
Backed out changeset 0782f42b2a99 (bug 1384606)
Backed out changeset 22099c5efaf6 (bug 1384606)
Backed out changeset f3a38b1eac88 (bug 1384606)
2023-03-17 06:54:59 +02:00
Cristian Tuns cf19068dfc Merge mozilla-central to autoland on a CLOSED TREE 2023-03-17 00:49:12 -04:00
Cristian Tuns 81864cc6f7 Merge autoland to mozilla-central. a=merge 2023-03-17 00:42:37 -04:00
Drew Willcoxon 5476f02aa1 Bug 1822918 - Fetch the weather suggestion after wake and coming online. r=daisuke
This listens for some observer service notifications so we can re-fetch the
weather suggestion after wake and coming online, without having to wait for the
timer to fire. Please see the bug for background.

I changed the interval (repeating timer) to a timeout (non-repeating timer)
since the timer needs to be recreated on wake if the wake happens before the
start of the next fetch period.

Differential Revision: https://phabricator.services.mozilla.com/D172844
2023-03-17 04:33:55 +00:00
Masayuki Nakano c2b9c4058b Bug 1384606 - part 4: Make `nsIFrame::GetFrameFromDirection` allow to return content in different native anonymous subtree if the caller wants r=emilio
The a11y module wants to traverse frames in native anonymous subtrees.
Therefore, this patch adds new option for allowing it, makes
`nsIFrame::GetFrameFromDirection` check it before comparing native anonymous
subtree root nodes, and makes `HyperTextAccessible::FindOffset` use the
option.

Depends on D172758

Differential Revision: https://phabricator.services.mozilla.com/D172759
2023-03-17 04:22:05 +00:00
Masayuki Nakano 1387f2e7bc Bug 1384606 - part 3: Make `nsPeekOffsetStruct` and its handlers treat `bool` options with an `EnumSet` r=emilio
The constructor of `nsPeekOffsetStruct` and `nsIFrame::GetFrameFromDirection`
take too many `bool` arguments.  Therefore, adding new `bool` arguments does
not make sense.  Now, we have a useful `mozilla:EnumSet` class to treat them
with an `enum class`. Therefore, let's change `nsPeekOffsetStruct` with it.

Differential Revision: https://phabricator.services.mozilla.com/D172758
2023-03-17 04:22:05 +00:00
Masayuki Nakano 3f04e976fa Bug 1384606 - part 2: Add automated tests for caret browsing around form controls r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172347
2023-03-17 04:22:05 +00:00
Masayuki Nakano c5e00ff09c Bug 1384606 - part 1: Make `nsIFrame::GetFrameFromDirection` treat frames in different native anonymous subtree not selectable r=emilio
It's called by `PeekOffsetFor*` and `GetPrevNextBidiLevels`, so it's used for
considering whether to put caret or move a selection range boundary.
Therefore, it should treat nodes which can be managed by `Selection` as
selectable.  In theory, even if a native anonymous subtree does not have
an independent selection, its content nodes should not be the container of
the selection range boundaries of selection outside the subtree since
Selection API shouldn't expose nodes in native anonymous subtrees.  Therefore,
it can simply treat content nodes in different anonymous subtrees are not
selectable.

Note that it's not standardized that how `Selection.modify` works with various
content nodes.
https://w3c.github.io/selection-api/#dom-selection-modify

And also Chrome cannot cross generated content like form controls with this API.
This could cause web-compat issues, but it does not make sense for caret
navigation, and anyway out of scope of this bug.  Therefore, this patch just
adds the crash test.

Differential Revision: https://phabricator.services.mozilla.com/D172204
2023-03-17 04:22:04 +00:00
Makoto Kato f150350f35 Bug 1819593 - Set media.videocontrols.lock-video-orientation to false as default in GeckoView. r=geckoview-reviewers,owlish
`media.videocontrols.lock-video-orientation` uses deprecated mozLockOrientation
API and this API does nothing.

Fenix/android-component uses MediaSession API and its
`MediaSessionFullscreenFeature` sets screen orientation.

So it means that `media.videocontrols.lock-video-orientation` is unused and
unnecessary now. I would like to set false to avoid conflict of same feature
when toolkit/content/widgets/videocontrols.js implements screen orientation API.

Differential Revision: https://phabricator.services.mozilla.com/D172419
2023-03-17 02:12:41 +00:00
Cristian Tuns c1b52fd95e Backed out 5 changesets (bug 1811850) for causing linting bustages(bugzilla) CLOSED TREE
Backed out changeset e8fcfc7f8108 (bug 1811850)
Backed out changeset f8950d716c9e (bug 1811850)
Backed out changeset f650123cc188 (bug 1811850)
Backed out changeset d96f90c2c58b (bug 1811850)
Backed out changeset c3b0f9666183 (bug 1811850)
2023-03-16 22:16:30 -04:00
Saira Abdulla 6a4ef6bc43 Bug 1822222 - Convert browser/actors/PageStyle* JSMs to ESMs. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D172674
2023-03-17 01:55:59 +00:00
Otto Länd c3355dfd6a Bug 1811850: apply code formatting via Lando
# ignore-this-changeset
2023-03-17 01:57:16 +00:00
Andrew Halberstadt d93be6a402 Bug 1811850 - [lint] Fix ruff errors resulting from new configuration, r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,firefox-build-system-reviewers,ahochheiden
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D172359
2023-03-17 01:54:00 +00:00
Andrew Halberstadt 054d07c54f Bug 1811850 - [lint] Replace pylint linter with ruff, r=linter-reviewers,marco
This is enabling the PLE and PLC rules across a much larger swatch of the code
base. The PLR and PLW are additionally enabled at the warning level (introduces
~2500 new warnings).

To avoid extraneous changes in people's patches, rules at the warning level are
excluded from --fix.

Differential Revision: https://phabricator.services.mozilla.com/D172358
2023-03-17 01:54:00 +00:00
Andrew Halberstadt 8b4f890651 Bug 1811850 - [lint] Replace isort linter with ruff, r=taskgraph-reviewers,linter-reviewers,marco,jcristau
This results in some changes from our current `isort` configuration. I'm
unclear if it's because ruff isn't at 100% parity with isort, they choose
different defaults or if I missed some configuration.

Either way, the changes all look reasonable to me (see child commit), so I'm
inclined to just accept the new import format it imposes.

Differential Revision: https://phabricator.services.mozilla.com/D172348
2023-03-17 01:53:59 +00:00
Andrew Halberstadt 8a4d48a70d Bug 1811850 - [lint] Replace flake8 linter with ruff, r=linter-reviewers,sylvestre
Ruff is a very fast linter implemented in Rust and it can act as a drop-in
replacement for flake8. When running the same set of rules across all files
in mozilla-central (without mozlint), flake8 takes 900 seconds whereas ruff
takes 0.9 seconds.

Ruff also implements rules from other popular Python linters such as pylint,
isort and pyupgrade. There are even plans to implement feature parity with
black in the future. Ultimately, it can become our one stop shop for all Python
linting and formatting.

This stack will swap out all our Python lint tools for ruff (excluding black
for now).

Differential Revision: https://phabricator.services.mozilla.com/D172313
2023-03-17 01:53:58 +00:00
Makoto Kato 1edefc131e Bug 1673068 - Get rid of nsILoadURIDelegate.loadURI. r=smaug,geckoview-reviewers,owlish
`nsILoadURIDelegate.loadURI` seems to be unused now.

Differential Revision: https://phabricator.services.mozilla.com/D172392
2023-03-17 01:41:50 +00:00
Ankit Anand b00dd8d6e0 Bug 1789218 - Dangerous Flag Constant Declaration in SelectionActionDelegate. r=m_kato,geckoview-reviewers
Changed flag constant declaration to use shift operator rather than
simple assignment as per the coding conventions.

Differential Revision: https://phabricator.services.mozilla.com/D172818
2023-03-17 01:41:08 +00:00
zaggy1024 ef5aaf44a9 Bug 1813466 - Store AVIF prefs as default decoder flags in RasterImage. r=tnikkel
This prevents a crash that would occur if a redecode of an animated AVIF happened after changing the `sequences.enabled` pref from `true` to `false`.

Differential Revision: https://phabricator.services.mozilla.com/D170190
2023-03-17 00:50:07 +00:00
sotaro b2f1baf7c4 Bug 1812498 - Destroy RenderBufferTextureHosts that use VideoBridgeParent's Shmems in VideoBridgeParent::OnChannelError() r=lsalzman
Destroy RenderBufferTextureHosts that use VideoBridgeParent's Shmems before destroying all VideoBridgeParent's Shmems by PVideoBridgeParent::OnChannelError().

Differential Revision: https://phabricator.services.mozilla.com/D169796
2023-03-17 00:35:03 +00:00
Zach Hoffman f8ae087214 Bug 1821258 - Add reftests for :nth-child(... of <selector list>) in SVG r=longsonr,firefox-svg-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D172722
2023-03-17 00:31:15 +00:00
Tomislav Jovanovic 022c86ad48 Bug 1805526 - Fix granted_host_permissions to actually grant and keep Origin Controls r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D170491
2023-03-16 23:42:31 +00:00