Commit Graph

211 Commits

Author SHA1 Message Date
Ben Dean-Kawamura
c7d555e585 Bug 1951241 - Refactor ScaffoldingConverter.h, r=markh,nika,frontend-codestyle-reviewers
Replaced `ScaffoldingConverter` with a set of `FfiValue*` classes.  The
differences are:

* The new classes better match other `uniffi-bindgen-gecko-js` names,
  and also use familiar UniFFI terms like `Lift` and `Lower`.
* Object handles are now freed if there's an error.
* The new classes store the FFI value internal rather than defining an
  `IntermediateType` associated type.
* Moved header files into `mozilla/uniffi/` and removed the `UniFFI`
  prefix from the filename.  This avoids weird filenames like
  `UniFFIFfiValue.h`

Differential Revision: https://phabricator.services.mozilla.com/D240696
2025-04-11 16:49:50 +00:00
Narcis Beleuzu
2dbc8ca1dc Backed out 2 changesets (bug 1951243, bug 1951241) for causing bustages on GeneratedScaffolding.cpp . CLOSED TREE
Backed out changeset 944bac64c3db (bug 1951243)
Backed out changeset c79b66ed7283 (bug 1951241)
2025-04-11 17:13:02 +03:00
Ben Dean-Kawamura
02e1f4d5fd Bug 1951241 - Refactor ScaffoldingConverter.h, r=markh,nika,frontend-codestyle-reviewers
Replaced `ScaffoldingConverter` with a set of `FfiValue*` classes.  The
differences are:

* The new classes better match other `uniffi-bindgen-gecko-js` names,
  and also use familiar UniFFI terms like `Lift` and `Lower`.
* Object handles are now freed if there's an error.
* The new classes store the FFI value internal rather than defining an
  `IntermediateType` associated type.
* Moved header files into `mozilla/uniffi/` and removed the `UniFFI`
  prefix from the filename.  This avoids weird filenames like
  `UniFFIFfiValue.h`

Differential Revision: https://phabricator.services.mozilla.com/D240696
2025-04-11 12:58:06 +00:00
Maxx Crawford
30348e7a64 Bug 1956978 - Add newtab prerendered HTML directory to Generated.txt and .prettierignore r=home-newtab-reviewers,frontend-codestyle-reviewers,mossop,nbarrett
Differential Revision: https://phabricator.services.mozilla.com/D244419
2025-04-07 14:08:04 +00:00
zombie
9f087f1523 Bug 1954369 - Produce mapping of module paths and lazy module types r=Standard8
The simplest possible way to produce the mapping,
which works correctly for 99% of imported modules,
and the remaining few dozen can be mapped manually
in config/fixed_paths.js.

Differential Revision: https://phabricator.services.mozilla.com/D241762
2025-03-26 12:20:39 +00:00
Tom Schuster
27fc8656f4 Bug 1950605 - Sanitizer: Generate a default config based on the JSON files. r=emilio,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D240044
2025-03-11 11:36:10 +00:00
Julian Descottes
31df1015da Bug 1952482 - Enable prettier for devtools/shared/commands/target r=frontend-codestyle-reviewers,devtools-reviewers,nchevobbe
The "target/" rule matches all folders named target regardless of the depth.
Removing redundant entries and adding an exclusion for the devtools folder.

Differential Revision: https://phabricator.services.mozilla.com/D240728
2025-03-10 10:20:40 +00:00
mark
66321019ff Bug 1945831 - Enable Prettier for chrome tests in toolkit/content/tests/widgets r=reusable-components-reviewers,frontend-codestyle-reviewers,Standard8,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D239743
2025-03-06 18:25:12 +00:00
Denis Palmeiro
d90d79d603 Bug 1951431: Add newssite-nuxt content to the mobile-startup performance testing location. r=aglavic,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D240266
2025-03-06 17:41:43 +00:00
Cristian Tuns
6b3a67f292 Backed out 4 changesets (bug 1945831) for causing lint failures in test_moz_input_folder.html CLOSED TREE
Backed out changeset 996551e7d122 (bug 1945831)
Backed out changeset 0d0ae655f1ec (bug 1945831)
Backed out changeset 098b19084809 (bug 1945831)
Backed out changeset 12a7e1e91200 (bug 1945831)
2025-03-06 12:37:56 -05:00
mark
1d9768da1f Bug 1945831 - Enable Prettier for chrome tests in toolkit/content/tests/widgets r=reusable-components-reviewers,frontend-codestyle-reviewers,Standard8,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D239743
2025-03-06 14:13:15 +00:00
Greg Tatum
121327c607 Bug 1859081 - Move cld2 from toolkit/component/translation to translations; r=translations-reviewers,zeid,frontend-codestyle-reviewers,nordzilla
We developed the new translations codebase using an "s" at the end, and
retained the old translations code under "translation". At this point
I'm unifying it so that it's all under "translations", which involves a
rename of the existing code. This way we will be consistent in our
naming practice.

Differential Revision: https://phabricator.services.mozilla.com/D239047
2025-02-26 20:06:25 +00:00
Thomas Wisniewski
cc280c7bfa Bug 1945258 - Merge the webcompat addon's similar UA overrides and injections libraries to simplify the codebase; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D236423
2025-02-05 15:03:23 +00:00
Mark Banner
8c04fee4da Bug 1942999 - Update .prettierignore exclusion lists, copying from Generated.txt and ThirdPartyPaths.txt. r=frontend-codestyle-reviewers,Gijs
The only significant change here is the re-arrangement of where PdfJsOverridePrefs.js is ignored - moving the main ignore to Generated.txt (it was already excluded from prettier, but not other linters).
The .prettierignore additions are copy/paste updates from the other files to help keep the lists in sync.

Differential Revision: https://phabricator.services.mozilla.com/D236675
2025-02-04 18:06:40 +00:00
Mark Banner
53e1386e3a Bug 1942999 - Improve newtab linter exclusions for generated files and tippytop images. r=mconley,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D236674
2025-02-04 18:06:39 +00:00
Mike Conley
0cab9e0390 Bug 1938452 - Move newtab tests to browser/extensions/newtab. r=home-newtab-reviewers,omc-reviewers,frontend-codestyle-reviewers,pdahiya,thecount
This doesn't move test_AboutNewTab.js, as this test exercises the AboutNewTab
module under browser/modules/ and the AboutNewTabService component under
browser/components/newtab.

Differential Revision: https://phabricator.services.mozilla.com/D233873
2025-02-03 16:45:33 +00:00
Alexandru Marc
88e7c19d5c Backed out 10 changesets (bug 1938452) for causing node failures CLOSED TREE
Backed out changeset f6a771e83261 (bug 1938452)
Backed out changeset 69f385bc90ce (bug 1938452)
Backed out changeset 9c8837fc4805 (bug 1938452)
Backed out changeset c9737e213e42 (bug 1938452)
Backed out changeset ac0a50aaf347 (bug 1938452)
Backed out changeset f1f41e902e36 (bug 1938452)
Backed out changeset aef74a3d077d (bug 1938452)
Backed out changeset 8ca1a633192a (bug 1938452)
Backed out changeset 88df910fa038 (bug 1938452)
Backed out changeset cd4fdafb2594 (bug 1938452)
2025-02-03 18:28:59 +02:00
Mike Conley
5cc1e5190e Bug 1938452 - Move newtab tests to browser/extensions/newtab. r=home-newtab-reviewers,omc-reviewers,frontend-codestyle-reviewers,pdahiya,thecount
This doesn't move test_AboutNewTab.js, as this test exercises the AboutNewTab
module under browser/modules/ and the AboutNewTabService component under
browser/components/newtab.

Differential Revision: https://phabricator.services.mozilla.com/D233873
2025-02-03 15:07:10 +00:00
Thomas Wisniewski
5e0c1d2e01 Bug 1936031 - Move webcompat intervention configurations into a JSON file; r=jgraham,denschub,webcompat-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D231551
2025-01-30 16:23:13 +00:00
Andrew Osmond
71fe8eb9b8 Bug 1944456 - Update Chromium CDM headers to revision 06395a2863cb1ebdb47617a995b73f95c14fe120. r=media-playback-reviewers,frontend-codestyle-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D235875
2025-01-29 15:53:48 +00:00
Tooru Fujisawa
94bba12a39 Bug 1936051 - Part 15: Remove JSM handling from eslint config. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D233741
2025-01-23 12:09:37 +00:00
Punam Dahiya
cf58fbd5e3 Bug 1618001 - Move React vendored libraries to the toolkit to prevent multiple instances r=sylvestre,omc-reviewers,home-newtab-reviewers,frontend-codestyle-reviewers,firefox-ai-ml-reviewers,aminomancer,mconley
Differential Revision: https://phabricator.services.mozilla.com/D232431
2025-01-08 21:08:16 +00:00
Kagami Sascha Rosylight
b065b59406 Bug 1938086 - Remove exclusion of dom/push in eslintrc/prettierignore r=asuth,frontend-codestyle-reviewers
The changes are mostly about using console API directly and un-shadowing variable names.

Differential Revision: https://phabricator.services.mozilla.com/D232496
2024-12-19 18:49:38 +00:00
Beth Rennie
6875c7671d Bug 1929116 - Vendor schemas from mozilla-nimbus-schemas instead of mozilla-nimbus-shared r=chumphreys,frontend-codestyle-reviewers,Standard8
We're publishing updated schemas only to the mozilla-nimbus-schemas
package now, so we need to vendor them from there instead of
mozilla-nimbus-shared. Additionally, since the
github.com/mozilla/experimenter repo vendors the actual JSONSchema
files, we don't have to side-step the vendoring process with a custom
script and can use it how it was intended.

This updates us to mozilla-nimbus-schemas v2024.11.5.

Differential Revision: https://phabricator.services.mozilla.com/D227867
2024-11-19 22:18:43 +00:00
Butkovits Atila
d1fb8f6661 Backed out 2 changesets (bug 1929116) for causing failures at browser_asrouter_experimentsAPILoader.js.
Backed out changeset e9b9a0e24c2e (bug 1929116)
Backed out changeset 9e11b5ee443e (bug 1929116)
2024-11-14 00:47:02 +02:00
Beth Rennie
91a0a94b3d Bug 1929116 - Vendor schemas from mozilla-nimbus-schemas instead of mozilla-nimbus-shared r=chumphreys,frontend-codestyle-reviewers,Standard8
We're publishing updated schemas only to the mozilla-nimbus-schemas
package now, so we need to vendor them from there instead of
mozilla-nimbus-shared. Additionally, since the
github.com/mozilla/experimenter repo vendors the actual JSONSchema
files, we don't have to side-step the vendoring process with a custom
script and can use it how it was intended.

This updates us to mozilla-nimbus-schemas v2024.11.5.

Differential Revision: https://phabricator.services.mozilla.com/D227867
2024-11-13 20:36:31 +00:00
Sandor Molnar
536c0f94bd Backed out changeset e5583dbc5865 (bug 1929116) for causing multiple bc/xpc failures. CLOSED TREE 2024-11-06 02:41:58 +02:00
Beth Rennie
434ca6e683 Bug 1929116 - Vendor schemas from mozilla-nimbus-schemas instead of mozilla-nimbus-shared r=chumphreys,frontend-codestyle-reviewers,Standard8
We're publishing updated schemas only to the mozilla-nimbus-schemas
package now, so we need to vendor them from there instead of
mozilla-nimbus-shared. Additionally, since the
github.com/mozilla/experimenter repo vendors the actual JSONSchema
files, we don't have to side-step the vendoring process with a custom
script and can use it how it was intended.

This updates us to mozilla-nimbus-schemas v2024.11.1.

Differential Revision: https://phabricator.services.mozilla.com/D227867
2024-11-05 23:07:32 +00:00
Gregory Pappas
30db2c6054 Bug 652493 - Remove testing/mochitest/tests/MochiKit-1.4.2/ r=frontend-codestyle-reviewers,jmaher
It looks like this was introduced in bug 427500, which an attempt to
upgrade the copy of MochiKit used in MochiTest. From what I can see,
that work was not completed.

We have almost identical tests in dom/tests/mochitest/ajax/mochikit/,
so I think we can just remove this directory.

Differential Revision: https://phabricator.services.mozilla.com/D225082
2024-10-10 15:06:01 +00:00
Gregory Pappas
796a4bdf2b Bug 1920857 - Remove testing/mochitest/MochiKit/ r=jmaher,ahal,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D223932
2024-10-10 15:05:11 +00:00
Butkovits Atila
b3206043c4 Backed out changeset 0a5b4d7ec127 (bug 1920857) for causing failures at browser_ext_tabs_query.js. CLOSED TREE 2024-10-09 22:34:34 +03:00
Gregory Pappas
39157c9e24 Bug 1920857 - Remove testing/mochitest/MochiKit/ r=jmaher,ahal,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D223932
2024-10-09 15:26:16 +00:00
Ryan VanderMeulen
6e0aea5474 Bug 1921380 - Regenerate detekt baselines. r=android-reviewers,frontend-codestyle-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D223895
2024-10-03 21:52:14 +00:00
Ryan VanderMeulen
2aa4f2ef35 Bug 1919635 - Update lint baselines. r=android-reviewers,frontend-codestyle-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D222714
2024-09-19 11:27:57 +00:00
Mike Hommey
966871c0ea Bug 1917739 - Move Lz4 and mfbt/Compression* to mozglue/static. r=nika,frontend-codestyle-reviewers
As per mozglue/static/README:

> mozglue/static contains parts of the mozglue library that can/should be
> statically linked to e.g. js/Gecko.

The compression part of MFBT is a good candidate for this.

Differential Revision: https://phabricator.services.mozilla.com/D221565
2024-09-10 20:35:56 +00:00
Issam Mani
11224d3466 Bug 1913967 - Move shared modules to a shared folder. r=sylvestre,frontend-codestyle-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D219659
2024-08-21 14:12:52 +00:00
Mark Banner
66e8ca14df Bug 1907841 - Change ESLint's .eslintignore to be an imported module. r=frontend-codestyle-reviewers,zeid,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D216540
2024-07-16 12:53:09 +00:00
Paul Adenot
329ab51496 Bug 1890370 - Remove libtheora from the tree. r=sylvestre,frontend-codestyle-reviewers,zeid
Differential Revision: https://phabricator.services.mozilla.com/D215395
2024-07-15 14:20:37 +00:00
Alexandre Lissy
5c73ea8267 Bug 1896054 - Import chromium's glibc hack r=gcp,frontend-codestyle-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D214928
2024-07-10 13:38:43 +00:00
Noemi Erli
55119e7f99 Backed out 3 changesets (bug 1874689, bug 1896054) for causing build bustages in syscall_wrappers.cc
Backed out changeset 04d5ec99e767 (bug 1874689)
Backed out changeset 287a0381bd07 (bug 1896054)
Backed out changeset 274105296168 (bug 1896054)
2024-07-10 13:26:17 +03:00
Alexandre Lissy
74a7b42006 Bug 1896054 - Import chromium's glibc hack r=gcp,frontend-codestyle-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D214928
2024-07-10 08:00:54 +00:00
Tamas Szentpeteri
beef2f39f2 Backed out 3 changesets (bug 1874689, bug 1896054) for causing mochitest failures on browser_toolbox_many_toggles.js. CLOSED TREE
Backed out changeset 48fa42d93368 (bug 1874689)
Backed out changeset 83fa543c6d11 (bug 1896054)
Backed out changeset 0326426f5ccc (bug 1896054)
2024-07-09 10:26:05 +03:00
Alexandre Lissy
eeb4dd7e74 Bug 1896054 - Import chromium's glibc hack r=gcp,frontend-codestyle-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D214928
2024-07-09 05:32:26 +00:00
Jonas Jenwald
cd2b78c9b4 Bug 1905864 - Generate a PDF.js default-prefs file that can be used directly in mozilla-central. r=pdfjs-reviewers,geckoview-reviewers,frontend-codestyle-reviewers,calixte,ohall
Differential Revision: https://phabricator.services.mozilla.com/D215481
2024-07-03 19:51:41 +00:00
Mike Conley
660509b6b4 Bug 1897498 - Add a mechanism for exporting backup snapshots to a single file archive. r=Gijs,valentin,backup-reviewers,frontend-codestyle-reviewers,Standard8,kpatenio
There are a number of interesting things going on this patch that I think are worth highlighting
here for my reviewers:

1. The single-file archive format is an HTML file that uses an inlined multipart/mixed MIME
   message within a HTML document comment in order to embed the backup data into the archive.
2. We use the multipart/mixed nsIStreamConverter to extract the JSON and binary data from
   the MIME block.
3. We use a Archive Worker to do the archive creation, allowing us to do the work of construction
   off of the main thread.
4. The Archive Worker is only parsing the header and getting the byte offset of the MIME block.
   Extraction is happening in the parent process. This is mainly for simplicity for now, since
   the Archive Worker cannot invoke an nsIStreamConverter. Down the line, if we determine that
   we'd prefer the Archive Worker do the base64 decoding off of the main thread, we may need
   to use a Message Channel to send the byte sfrom the nsIStreamConverter to it, and add
   stream-writing support to IOUtils so that the Archive Worker can take care of sending the
   decoded bytes to disk.
5. The patch doesn't expose the extraction mechanism in any way except through the debug
   interface right now. That will come down the line. In the meantime, this mechanism
   can be manually tested in the debug interface by creating a backup, which should also
   create an "archive.html" file in the backups folder. Using the "Extract from archive"
   button in the debug tool will let you select that HTML file and extract the ZIP as
   a file in the backups folder called "extraction.zip".
6. The test template contains Unicode characters because certain locales might involve
   us writing Unicode characters in the HTML template when generating the archive. The
   fun part about that is calculating where the byte offset is for the MIME block! See
   the comment in the Archive.worker.mjs script for how that works.

Differential Revision: https://phabricator.services.mozilla.com/D211588
2024-06-11 13:05:58 +00:00
pstanciu
d754356cd9 Backed out changeset d88e9ba4a866 (bug 1897498) for causing xpcshell failures in test_BackupService_archive.js CLOSED TREE 2024-06-10 19:31:55 +03:00
Mike Conley
17681152e9 Bug 1897498 - Add a mechanism for exporting backup snapshots to a single file archive. r=Gijs,valentin,backup-reviewers,frontend-codestyle-reviewers,Standard8,kpatenio
There are a number of interesting things going on this patch that I think are worth highlighting
here for my reviewers:

1. The single-file archive format is an HTML file that uses an inlined multipart/mixed MIME
   message within a HTML document comment in order to embed the backup data into the archive.
2. We use the multipart/mixed nsIStreamConverter to extract the JSON and binary data from
   the MIME block.
3. We use a Archive Worker to do the archive creation, allowing us to do the work of construction
   off of the main thread.
4. The Archive Worker is only parsing the header and getting the byte offset of the MIME block.
   Extraction is happening in the parent process. This is mainly for simplicity for now, since
   the Archive Worker cannot invoke an nsIStreamConverter. Down the line, if we determine that
   we'd prefer the Archive Worker do the base64 decoding off of the main thread, we may need
   to use a Message Channel to send the byte sfrom the nsIStreamConverter to it, and add
   stream-writing support to IOUtils so that the Archive Worker can take care of sending the
   decoded bytes to disk.
5. The patch doesn't expose the extraction mechanism in any way except through the debug
   interface right now. That will come down the line. In the meantime, this mechanism
   can be manually tested in the debug interface by creating a backup, which should also
   create an "archive.html" file in the backups folder. Using the "Extract from archive"
   button in the debug tool will let you select that HTML file and extract the ZIP as
   a file in the backups folder called "extraction.zip".
6. The test template contains Unicode characters because certain locales might involve
   us writing Unicode characters in the HTML template when generating the archive. The
   fun part about that is calculating where the byte offset is for the MIME block! See
   the comment in the Archive.worker.mjs script for how that works.

Differential Revision: https://phabricator.services.mozilla.com/D211588
2024-06-10 13:20:51 +00:00
Tom Ritter
7d90f3a7c2 Bug 1894958: Render more complex WebGL canvases r=timhuang,sylvestre,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209595
2024-06-05 02:04:39 +00:00
Cosmin Sabou
3c630af9e8 Backed out 7 changesets (bug 1894958) for causing bc failures on browser_usercharacteristics_gamepads. CLOSED TREE
Backed out changeset 2d6a773b1cfe (bug 1894958)
Backed out changeset 64fa5abd15b1 (bug 1894958)
Backed out changeset 73017dc41a54 (bug 1894958)
Backed out changeset 99498fc1e89c (bug 1894958)
Backed out changeset 4ef86875b1c2 (bug 1894958)
Backed out changeset 31e1c5284927 (bug 1894958)
Backed out changeset 29545556fe0b (bug 1894958)
2024-06-05 01:20:05 +03:00
Tom Ritter
36707b0679 Bug 1894958: Render more complex WebGL canvases r=timhuang,sylvestre,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209595
2024-06-04 21:23:58 +00:00