Commit Graph

821081 Commits

Author SHA1 Message Date
sotaro
9402ee9faf Bug 1802388 - Fix a change of Cargo.lock from Bug 1801767 r=gfx-reviewers,jrmuizel
Cargo.lock was updated by Bug 1801767. It needs to be updated a bit. I forgot to update it by cargo command. Then order of "remove_dir_all" needs to be changed.

Differential Revision: https://phabricator.services.mozilla.com/D163062
2022-11-25 01:08:35 +00:00
Masayuki Nakano
57a03b7aaa Bug 1801028 - part 3: Make HTMLEditor::GetInlinePropertyBase take EditorInlineStyle r=m_kato
Depends on D162502

Differential Revision: https://phabricator.services.mozilla.com/D162503
2022-11-25 00:54:55 +00:00
Rob Wu
477e5c8a6c Bug 1745761 - Enforce privateBrowsingAllowed for DNR r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D162574
2022-11-25 00:49:23 +00:00
Rob Wu
ce75461cb0 Bug 1745761 - Connect DNR to network stack r=rpl
This patch implements the "block", "upgradeScheme" and "redirect" DNR
actions, plus a comprehensive set of unit tests that exercise relevant
scenarios and edge cases.

Differential Revision: https://phabricator.services.mozilla.com/D161535
2022-11-25 00:49:22 +00:00
Masayuki Nakano
9c32140caa Bug 1801028 - part 2: Move CSSEditUtils::IsCSSInvertible to EditorInlineStyle r=m_kato
It does not make sense to make the static method take only `EditorInlineStyle`.

Depends on D162501

Differential Revision: https://phabricator.services.mozilla.com/D162502
2022-11-25 00:22:32 +00:00
Masayuki Nakano
272cd8bc17 Bug 1801028 - part 1: Make HTMLEditor::IsRemovableParentStyleWithNewSpanElement take EditorInlineStyle r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D162501
2022-11-25 00:12:58 +00:00
ahochheiden
87b6be0757 Bug 1767822 - Drop funcsigs r=jgraham
Python 3.6+ is required to run Mach (and WPT), yet funcsigs was a
backport for Python <3.3.

Differential Revision: https://phabricator.services.mozilla.com/D146077
2022-11-24 22:57:52 +00:00
Csoregi Natalia
58a7f7a38f Backed out 2 changesets (bug 1745761) for failures on test_ext_dnr_without_webrequest.js. CLOSED TREE
Backed out changeset 74b33f61c4d3 (bug 1745761)
Backed out changeset 5abe72701c13 (bug 1745761)
2022-11-25 01:13:40 +02:00
Rob Wu
3dab68ed84 Bug 1745761 - Enforce privateBrowsingAllowed for DNR r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D162574
2022-11-24 22:02:52 +00:00
Rob Wu
161b2d8261 Bug 1745761 - Connect DNR to network stack r=rpl
This patch implements the "block", "upgradeScheme" and "redirect" DNR
actions, plus a comprehensive set of unit tests that exercise relevant
scenarios and edge cases.

Differential Revision: https://phabricator.services.mozilla.com/D161535
2022-11-24 22:02:51 +00:00
Ryan VanderMeulen
a740257932 Bug 1787515 - Update libjpeg-turbo to 2.1.4. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D161871
2022-11-24 22:00:48 +00:00
Itiel
4fd50df0b5 Bug 1799836 - Move attention dot to action button. r=willdurand,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D162724
2022-11-24 22:00:10 +00:00
William Durand
a71d007dfd Bug 1793743 - Resize window to avoid overflowed extensions in the unified extensions panel. r=rpl
Depending on the test chunks on Firefox CI, we might have a test file
executed before this one that resizes the window and does not reset it.

In most cases, this isn't an issue except when we have logic to overflow
extension buttons pinned in the toolbar into the unified extensions
panel. This is what's happening here, at least for some configurations.

By making sure that the window is large enough, we should not have
overflowed extension buttons in the panel anymore. That will make the
test more robust.

Differential Revision: https://phabricator.services.mozilla.com/D162961
2022-11-24 21:32:48 +00:00
Nicolas Chevobbe
85edb2cce4 Bug 1802176 - Fix intermittent on browser_html_sitepermission_addons. r=rpl.
Set `midi.testing` and `dom.webmidi.enabled` prefs in browser.ini for the test.

Differential Revision: https://phabricator.services.mozilla.com/D162991
2022-11-24 20:06:34 +00:00
scott
61beafe8e2 Bug 1802265 - Pocket newtab topsite spoc use title instead of sponsor. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D162947
2022-11-24 20:03:53 +00:00
Nick Alexander
649e436ec7 Bug 1683278 - Support viewing PDF files in the macOS "Open With" context menu. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D162132
2022-11-24 19:22:28 +00:00
Mozilla Releng Treescript
b3d763f3c3 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
es-AR -> 51b4794b186d52193f1d647e7399e2557c113dae
fr -> cae65157bbcebc26625586b1920d1f34d9683653
hu -> 9432435c581d8839ad71ce11acf5098090c6e9e5
is -> 5f4dedafbdf70c69d98352064b3a3cf4c58a94a9
pt-PT -> ffb56c5ea7907321595a1308c6232a26f4660a40
tr -> 8d24e72d9f81161e2207a68f56cdc169b8c8110c
zh-CN -> 574722005ef12d41efe4b2261e91fb21974fee7c
2022-11-24 19:04:56 +00:00
Mike Conley
4de19bba60 Bug 1801678 - Test that pinning a browser action to an overflowed toolbar puts the widget in the right area. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D162588
2022-11-24 18:51:20 +00:00
Mike Conley
2fbb503a24 Bug 1801678 - Refactor the Unified Extensions overflowable toolbar test helper with more flexible lifetime functions. r=willdurand,extension-reviewers
This is helpful when we need to insert optional async functions to run at
particular times within withWindowOverflowed.

Differential Revision: https://phabricator.services.mozilla.com/D162587
2022-11-24 18:51:20 +00:00
Mike Conley
1dea2f808d Bug 1801678 - Compute the right insertion point for a browser action widget when the toolbar is overflowed. r=Gijs
We have a function, OverflowableToolbar.findOverflowedInsertionPoints, whose job it is to compute
the right insertion point for a widget if the widget is being inserted into an overflowable
toolbar.

That function failed to account for the possibility that the widget was a browser action, and
would return the #defaultList instead of the #webExtList if the item was overflowing. This
patch checks the ID of the widget first, and then supplies the correct list.

Differential Revision: https://phabricator.services.mozilla.com/D162586
2022-11-24 18:51:19 +00:00
Mike Conley
62b8b0976b Bug 1801678 - Refactor OverflowableToolbar to turn #webExtList into a memoizing getter. r=Gijs
The WebExtension overflow list is created lazily because the panel itself is lazy, and only gets
inserted the first time it is needed. Originally, I had written a separate function `#getWebExtList()`
to do the work of forcing the WebExtension overflow list to de-lazify, and then hold a reference
to it in #webExtList.

It turns out, that's a bit of a footgun. More than once, I've used #webExtList directly, forgetting
that the value might turn out to be `null` because the list hasn't delazified yet.

In order to smooth out that rough edge, this patch makes `#webExtList` a memoizing (evalutes once,
caches the return value for subsequent calls) getter so that anything that uses it doesn't have
to worry about the lazification. The reference member is now called #webExtListRef, and I've
added documentation about how it's probably best not to use it directly.

Differential Revision: https://phabricator.services.mozilla.com/D162585
2022-11-24 18:51:19 +00:00
Mike Conley
5c458d3f99 Bug 1798377 - Don't display the overflow button unless there's at least 1 item overflowed with non-zero width. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D162576
2022-11-24 18:51:18 +00:00
Mike Conley
bc3e16afed Bug 1800967 - Update internal OverflowableToolbar state when unpinning an extension button from the toolbar when overflowed. r=willdurand,Gijs
We have some internal bookkeeping within OverflowableToolbar to remember the state of things that
have overflowed, like how wide the window needs to be before they can be moved back, etc. When an
item is removed from an overflowable toolbar while overflowed, we update that internal bookkeeping
so that OverflowableToolbar doesn't accidentally try to move those items back into the toolbar
when the window becomes wide enough again.

We've added a new overflow list for extension buttons, but we weren't updating our internal accounting
when items had been overflowed into that list. This patch fixes that.

Differential Revision: https://phabricator.services.mozilla.com/D162434
2022-11-24 18:51:18 +00:00
Andrew Osmond
161a4eb3e8 Bug 1798494. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D162616
2022-11-24 18:20:20 +00:00
Andrew Halberstadt
ed5352a0d8 Bug 1795042 - [ci] Migrate 'updatebot' tasks from AWS -> GCP, r=MasterWayZ
Differential Revision: https://phabricator.services.mozilla.com/D162996
2022-11-24 18:02:09 +00:00
Chris H-C
2af8b20ef5 Bug 1800081 - Report the legacy telemetry client_id with application lifetime r=perry.mcmanis
Having the value present in more than just the first ping of an app session
should help cross-system analyses.

Differential Revision: https://phabricator.services.mozilla.com/D162883
2022-11-24 18:00:15 +00:00
Chris H-C
a31caf0825 Bug 1802207 - Wait to send component_init-reason "newtab" ping until newtab has been categorized r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D162906
2022-11-24 17:59:21 +00:00
Barret Rennie
f567bfbd5b Bug 1798731 - Port osfile.jsm usage to IOUtils in EdgeProfileMigrator.sys.mjs r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D162949
2022-11-24 17:50:19 +00:00
Barret Rennie
c2bbc1bf26 Bug 1798732 - Port osfile.jsm usage to IOUtils in FirefoxProfileMigrator.sys.mjs r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D162948
2022-11-24 17:50:02 +00:00
Geoff Brown
ad9df8b8db Bug 1802337 - Bump mozcrash version to 2.2.0; r=releng-reviewers,jlorenzo
Note that version 2.1.0 was released to pypi.org, but there is no record
of that bump in mercurial or bugzilla.

Differential Revision: https://phabricator.services.mozilla.com/D163006
2022-11-24 17:44:44 +00:00
Marco Castelluccio
ecb54845b0 Bug 1790816 - Reformat build/ with isort. r=linter-reviewers,ahal DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162668
2022-11-24 17:23:47 +00:00
Marco Castelluccio
d5ba50dc9f Bug 1790816 - Reformat layout/ with isort. r=linter-reviewers,ahal DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162669
2022-11-24 17:23:27 +00:00
Marco Castelluccio
5c8c82f4e5 Bug 1790816 - Reformat security/ with isort. r=linter-reviewers,ahal DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162666
2022-11-24 17:22:21 +00:00
Valentin Gosu
b76e895107 Bug 1797370 - Do not access nsInputStream::mListener without holding mutex r=jesup,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D162192
2022-11-24 17:17:35 +00:00
Henrik Skupin
1ed700de36 Bug 1802103 - [remote] Disable location change rate limit. r=webdriver-reviewers,Sasha,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D162826
2022-11-24 17:09:51 +00:00
Emilio Cobos Álvarez
a78ecb23eb Bug 1801840 - Go back to using .browserStack rather than .browserContainer for tab dialog box. r=Gijs,nchevobbe
This makes alert take the same area as the status panel, partially
backing out the regressing bug.

.browserStack is also relatively-positioned, so this works too. I think
I didn't realize this while writing bug 1791972 because the rule was in
a UA sheet (all <stack>s are relatively positioned, apparently).

This restores the behavior when devtools is toggled vertically. On
responsive mode this still covers the top toolbar, but that was the
pre-existing behavior. Could be fixed in a follow-up with some z-index
tweaking...

Differential Revision: https://phabricator.services.mozilla.com/D162739
2022-11-24 16:42:52 +00:00
Cristian Tuns
c71e992186 Backed out changeset 516ad0cab188 (bug 1801512) for causing reftest failures on 411334-1.xml CLOSED TREE 2022-11-24 11:50:23 -05:00
Mark Banner
e59ef8d6fd Bug 1801283 - Fix eslint-build tester running from cron, and make sure it doesn't run at other times. r=releng-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D162385
2022-11-24 16:18:14 +00:00
Mark Banner
4a8185fb14 Bug 1801368 - Migrate StructuredLog.jsm to an ES module. r=ahal
Depends on D162490

Differential Revision: https://phabricator.services.mozilla.com/D162491
2022-11-24 16:17:47 +00:00
Mark Banner
55d53c8bb7 Bug 1801368 - Change StructuredLogger and StructuredFormatter to use class definitions, improve private properties. r=ahal
Depends on D162489

Differential Revision: https://phabricator.services.mozilla.com/D162490
2022-11-24 16:17:47 +00:00
Mark Banner
9fcf807281 Bug 1801368 - Drop unused mutator argument on StructuredLogger. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D162489
2022-11-24 16:17:46 +00:00
Andi-Bogdan Postelnicu
4cf7602483 Bug 1799640 - unused include files checker in clang-tidy. r=glandium,sergesanspaille
Ported from clangd, this still can be improved over time, but it can be landed.
This was based on the work from https://bit.ly/3TkV2N1

  * The utility makes the assumption that all header are self contained!
  * It only checkes `Decls` from the main translation file, where SourceLocarion is the
    passed `cpp` file.
  * It builds a list with all of the includes from the translation unit.
  * It matches all of the `Decls` from the main translation units with definitions from the
    included header files and builds a list with used header files.
  * All of the includes that are not part of the matched used header files are considered
    to be unused. Of course this is correct if the first assumption if followed by the coding guide,
    where all of the header are self contained. Since the mozilla code base doesn't follow this approach
    false positives might appear where the is the following situation:
FOO.cpp
  #include <A>
  #Include <B>

If header `A` defines a symbol that is used by header `B` and `B` doesn't include `A` nor
it has symbols defined that are used by `FOO.cpp` then `B` it will be marked as potentially to be removed
by the tool.
This is the limitation determined by header that are not self contained.

The limitation presented above can be fixed in the future with extra work, but it's very time expensive
during the runtime of the checker.

Differential Revision: https://phabricator.services.mozilla.com/D161583
2022-11-24 16:15:51 +00:00
Jon Coppeard
a9aceb087b Bug 1802172 - Refactor CyclicModuleFields to provide getters and setters for some fields r=arai
As suggsted in code review for the previous patch, it's clearer and less
error-prone to provide getters and setters for module fields which are
represented using more than one field in the structure.

This patch changes the operation of ModuleObject::maybeAsyncEvaluatingPostOrder
to return Nothing() after the post order is cleared, rather than the magic
value ASYNC_EVALUATING_POST_ORDER_CLEARED. This doesn't make any difference to
the modules system itself but required some changes to test code expectations.

Depends on D162869

Differential Revision: https://phabricator.services.mozilla.com/D162985
2022-11-24 15:47:55 +00:00
Jon Coppeard
b7eb95f7b4 Bug 1802172 - Pack the CyclicModuleFields structure r=arai
This reduces the size from 184 to 160 bytes on 64 bit. and from 128 to 104
bytes on 32 bit builds.

Differential Revision: https://phabricator.services.mozilla.com/D162869
2022-11-24 15:47:55 +00:00
Tooru Fujisawa
ced64a9f0f Bug 1797024 - Part 3: Remove unnecessary JSContext parameters. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D160208
2022-11-24 15:44:41 +00:00
Tooru Fujisawa
89ab5352c9 Bug 1797024 - Part 2: Move WellKnownParserAtoms out of JSRuntime. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D160207
2022-11-24 15:44:40 +00:00
Tooru Fujisawa
84533f6bcf Bug 1797024 - Part 1: Move OOM handling out of frontend::WellKnownParserAtoms. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D160206
2022-11-24 15:44:40 +00:00
Tooru Fujisawa
81b3e451ce Bug 1786834 - Part 2: Remove unnecessary JSContext parameters. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D160205
2022-11-24 15:44:39 +00:00
Tooru Fujisawa
2a4ca22b5f Bug 1786834 - Part 1: Move SharedImmutableStringsCache out of JSRuntime and make it singleton. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D160204
2022-11-24 15:44:39 +00:00
Cameron B
93b1f9eeed Bug 1802210 - Add cookie-banner-rules-list data in tree. r=leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D162905
2022-11-24 15:40:37 +00:00