Commit graph

520 commits

Author SHA1 Message Date
Narcis Beleuzu
70ac30a0b5 Bug 1855280 - Fix bc failure on browser_all_files_referenced.js 2023-10-16 23:49:36 +03:00
Calixte
6a7e473371 Bug 1858700 - Remove the useless chrome.properties file r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D190808
2023-10-12 15:19:51 +00:00
Calixte
136a839099 Bug 1858063 - Update PDF.js to new version 2c87c4854a486d5cd0731b947dd622f8abe5e1b5 r=pdfjs-reviewers,Snuffleupagus,marco,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D190538
2023-10-10 16:14:43 +00:00
Issam Mani
38aac00bdc Bug 1823943 - P3. Add stories for input field components. r=mtigley,credential-management-reviewers
Depends on D186159

Differential Revision: https://phabricator.services.mozilla.com/D186160
2023-10-06 15:34:57 +00:00
Drew Willcoxon
57f6fbd39c Bug 1854060 - Initial integration of the Suggest Rust component into desktop urlbar. r=daisuke
This builds on D188681 and adds a new `BaseFeature` called `SuggestBackendRust`.
When `quickSuggestRustEnabled` is true, `UrlbarProviderQuickSuggest` will use
`SuggestBackendRust` to fetch remote settings suggestions; otherwise it will use
`SuggestBackendJs`.

The Rust component is already integrated into desktop Firefox (bug 1851256, bug
1851845), and it's exposed to JS via `RustSuggest.sys.mjs`. Currently it only
supports AMP (sponsored, a.k.a. adM) and Wikipedia (non-sponsored) suggestions.

It's possible to configure the path of the Sqlite file created by the Rust
component. This patch uses `suggest.sqlite` in the user's local profile (cache)
directory.

This is only the initial integration. I can think of a few follow-ups:

* Handle icons. In this patch, results from `SuggestBackendRust` don't have
  icons at all. I have a WIP.
* Handle ingestion better. "Ingest" here means Firefox must tell the Rust
  component to re-fetch suggestions from remote settings and rebuild its Sqlite
  database. Unfortunately the Rust component doesn't keep the data updated by
  itself, so we'll need to periodically tell the component to ingest. This patch
  performs ingestion every time `SuggestBackendRust` is (re)enabled, which is a
  good enough start.
* Maybe handle tests better. For now I modified the main quick suggest unit
  test, test_quicksuggest.js, so it tests both backends. Other tests should
  maybe be updated too, I'm not sure yet.

Depends on D188681

Differential Revision: https://phabricator.services.mozilla.com/D188684
2023-09-26 05:15:30 +00:00
Gijs Kruitbosch
5736aa0cd2 Bug 1846787 - let shopping code ride the train (disabled by default), r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D187779
2023-09-08 17:04:40 +00:00
Drew Willcoxon
9aadedb037 Bug 1851256 - Part 3: Test fix. r=lina
Depends on D187324

Differential Revision: https://phabricator.services.mozilla.com/D187327
2023-09-05 21:11:58 +00:00
Tooru Fujisawa
4858e66c92 Bug 1836386 - Convert JSMs in browser/components/newtab/lib/PersonalityProvider to ESMs. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D184528
2023-08-11 15:39:48 +00:00
Cristian Tuns
6675b4391f Backed out changeset a857f9cb6655 (bug 1836386) for causing bc failures in browser_all_files_referenced.js CLOSED TREE 2023-08-11 05:58:09 -04:00
Tooru Fujisawa
8d97c3961b Bug 1836386 - Convert JSMs in browser/components/newtab/lib/PersonalityProvider to ESMs. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D184528
2023-08-11 08:13:17 +00:00
Alexandre Poirot
e6b9f12a45 Bug 1792803 - [devtools] Stop exposing devtools resource to content to implement JSON Viewer. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D185551
2023-08-09 13:36:05 +00:00
ganna
ba2e07af4d Bug 1840396 - Remove exception for moz-message-bar in browser_all_files_referenced. r=tgiles,hjones CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D185460
2023-08-04 17:24:34 +00:00
Tooru Fujisawa
e9502f3137 Bug 1835279 - Add support for ES modules in PromiseWorker. r=Gijs
In order to use the same implementation between regular script and module script,
convert PromiseWorker.js into a template, which is processed by GeneratePromiseWorkerScript.py.

Differential Revision: https://phabricator.services.mozilla.com/D184282
2023-07-25 15:33:46 +00:00
Mark Banner
87ca8e8a39 Bug 1845064 - Update files in browser/base/content/test/static/ to pass the rejected-words linter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184365
2023-07-24 15:23:06 +00:00
Mark Banner
36a09fdc0b Bug 1801416 - Remove remaining references to jsm files in browser_all_files_referenced.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184364
2023-07-24 15:23:05 +00:00
Stanca Serban
74033863ce Backed out 2 changesets (bug 1845064, bug 1801416) for causing mochitests failures in browser_parsable_css.js. CLOSED TREE
Backed out changeset 0072ca947732 (bug 1845064)
Backed out changeset 97d46689ef0a (bug 1801416)
2023-07-24 23:23:24 +03:00
Mark Banner
64cf79554f Bug 1845064 - Update files in browser/base/content/test/static/ to pass the rejected-words linter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184365
2023-07-24 15:23:06 +00:00
Mark Banner
524110e7aa Bug 1801416 - Remove remaining references to jsm files in browser_all_files_referenced.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184364
2023-07-24 15:23:05 +00:00
Noemi Erli
009812504a Backed out 2 changesets (bug 1801416, bug 1845064) for causing failures in browser_all_files_referenced.js CLOSED TREE
Backed out changeset 6588b692c52d (bug 1845064)
Backed out changeset 29325effffdb (bug 1801416)
2023-07-24 22:07:49 +03:00
Mark Banner
d9a4dda484 Bug 1845064 - Update files in browser/base/content/test/static/ to pass the rejected-words linter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184365
2023-07-24 15:23:06 +00:00
Mark Banner
08225010cb Bug 1801416 - Remove remaining references to jsm files in browser_all_files_referenced.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184364
2023-07-24 15:23:05 +00:00
Emilio Cobos Álvarez
3338831b84 Bug 1824886 - Rewrite AnonymousContent to use a shadow tree. r=smaug,TYLin,sfoster,devtools-reviewers,nchevobbe
Subtle things:

 * We now have shadow trees in NAC, inception! Only a couple lines of
   code in the style system had to be changed to match :host rules and
   so properly.

 * Had to make highlighters.css contentaccessible, because otherwise we
   can't load it from the shadow tree. I don't think it's a big deal.

 * I removed some of the code from highlighters.css that claimed that
   stuff inherited from the html element. That's just no longer true.

 * Had to switch from `setAttribute("style", ...)` to `.style = ...;`.
   This is needed because CSSOM from chrome code bypasses CSP (as
   AnonymousContent did), but setAttribute() doesn't, see bug 1424474.

Differential Revision: https://phabricator.services.mozilla.com/D173998
2023-07-05 21:59:44 +00:00
Cosmin Sabou
fb92d5f42f Backed out 2 changesets (bug 1824886) for causing failures on browser_all_files_referenced.js. CLOSED TREE
Backed out changeset 650ef77d1c4d (bug 1824886)
Backed out changeset 1c835137f532 (bug 1824886)
2023-07-06 00:42:53 +03:00
Emilio Cobos Álvarez
e80fbd83b5 Bug 1824886 - Fix browser_all_files_referenced.js
MANUAL PUSH: Trivial fix CLOSED TREE
2023-07-05 22:34:29 +02:00
ganna
f59acb26b1 Bug 1838222 - Set up the moz-message-bar custom element. r=hjones,desktop-theme-reviewers,dao,tgiles
Differential Revision: https://phabricator.services.mozilla.com/D181727
2023-07-05 17:34:56 +00:00
Kelly Cochrane
a253f7e7f1 Bug 1824826 - Implement view of History and sticky header/navigation in next iteration of Firefox View r=mkaply,fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,flod,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D180135
2023-06-29 19:12:25 +00:00
Stanca Serban
fabab5d108 Backed out changeset 33c08027f6aa (bug 1824826) for causing mochitests failures in test_history.html. CLOSED TREE 2023-06-29 07:04:25 +03:00
Kelly Cochrane
2b807cde68 Bug 1824826 - Implement view of History and sticky header/navigation in next iteration of Firefox View r=mkaply,fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,flod,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D180135
2023-06-28 20:14:59 +00:00
Fred Chasen
f055b2e8d7 Bug 1836741 - Shopping product client r=jhirsch
* Adds a shopping component in toolkit.
* Creates a ShoppingProduct client to handle fetching and validating Products from the Shopping APIs.
* Product config allows updating the shopping sites list and product id regex for each site.
* Creates JSON schemas for validating the API responses.

Differential Revision: https://phabricator.services.mozilla.com/D180978
2023-06-28 18:40:44 +00:00
Greg Tatum
c18ddeaa00 Bug 1817084 - Remove old translations code; r=settings-reviewers,fluent-reviewers,nordzilla,mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D181700
2023-06-23 13:36:13 +00:00
Jonathan Sudiaman
e1208b882a Bug 1826600 - Add Open Tabs page r=fluent-reviewers,flod,dao
Initial open tabs implementation in Firefox View Next. Note that this only lists out the open tabs. It does not yet provide the ability to switch to an open tab or window. See bug description for a full list of expected behaviors.

[[ https://bugzilla.mozilla.org/attachment.cgi?id=9324749&action=diff | This patch ]] from @mkaply was used as a starting point.

https://treeherder.mozilla.org/jobs?repo=try&revision=789cd12b31cc76c4f9532560fd10727af6b264d5

Differential Revision: https://phabricator.services.mozilla.com/D178970
2023-06-14 17:39:06 +00:00
Gijs Kruitbosch
653babb7fc Bug 1838198 - fix when we add an exception to browser_all_files_referenced for shopping so it doesn't break beta, r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D180815
2023-06-14 12:58:10 +00:00
Jared Hirsch
0dd54e871a Bug 1837662 - Create shopping placeholder page. r=jhirsch
* For now, make page available via chrome://browser/content/shopping/shopping.html .

* Includes preview ftl file and proof-of-concept working localization of
  the page title.

Differential Revision: https://phabricator.services.mozilla.com/D180487
2023-06-12 19:02:49 +00:00
Mark Banner
6725448902 Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00
Rob Wu
3c0c3a2676 Bug 1836482 - Replace AddonManager.jsm imports with AddonManager.sys.mjs r=Standard8,webcompat-reviewers,twisniewski
This patch was generated as follows:

Run:
`./mach esmify --imports . --prefix=toolkit/mozapps/extensions/AddonManager`
In the output there are linter/prettifier errors due to unused
XPCOMUtils or separate importESModule calls. These have been fixed
manually and verified with `./mach lint --outgoing`.

The `esmify` script also inserts many unwanted newlines around imports
that are broken on two lines due to length. Due to the number of these,
I fixed them programatically.

1. Create patch from the changes so far.
2. From the patch, delete all lines that consist of "+" (i.e. added blank line).
3. Reset the working dir and apply the revised patch.
4. Verify that the diff between step 1 and 3 looks reasonable.
5. Verify that this patch as a whole looks reasonable.

Commands:

```
git diff > rename.diff
:%g/^+$/d
git commit -va -m WIP-rename
git revert HEAD
git apply --recount rename.diff
git diff HEAD^  # and verify that the removed lines are ok.
git commit -va  # one last review to verify correctness of whole patch.
git rebase -i HEAD~3  # drop the WIP + reverted commit, pick only the last.
```

`git apply` has the `--recount` option to force it to ignore mismatches
in line counts, which happens because we deleted added lines (^+$)
without fixing up the line counts in the file headers.

Differential Revision: https://phabricator.services.mozilla.com/D179874
2023-06-04 13:44:45 +00:00
Rob Wu
ca89e5b331 Bug 1836482 - Convert AddonManager.jsm to ESM r=Standard8
Ran the following:

`./mach esmify --convert toolkit/mozapps/extensions/AddonManager.jsm`

and manually fixed the AsyncShutdown import by renaming it and declaring
a new var, because `AddonManagerPrivate.overrideAsyncShutdown` relies on
it being non-const.

Differential Revision: https://phabricator.services.mozilla.com/D179866
2023-06-03 16:35:40 +00:00
Kelly Cochrane
19abba01c7 Bug 1832668 - Add new side navigation component to Firefox View Next page r=fxview-reviewers,fluent-reviewers,flod,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D179215
2023-06-02 12:39:50 +00:00
Mark Banner
8b4f426ecf Bug 1834204 - Update more consumers to import ES modules directly. r=kpatenio,geckoview-reviewers,whimboo,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D178590
2023-05-26 11:36:33 +00:00
Mark Banner
45f372eae2 Bug 1834176 - Convert NetUtil.jsm to an ES module. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D178954
2023-05-25 14:12:12 +00:00
Kelly Cochrane
d00c87c432 Bug 1818310 - Create reusable category navigation component r=mstriemer,sfoster,Jamie,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D177530
2023-05-25 13:42:47 +00:00
Mark Banner
130a655906 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Kelly Cochrane
7e0b29e0b9 Bug 1833228 - Update naming for new TabList reusable component files to be domain-specific r=mstriemer,fluent-reviewers,fxview-reviewers,flod,sclements
Differential Revision: https://phabricator.services.mozilla.com/D178191
2023-05-17 14:35:53 +00:00
Barret Rennie
a645de723e Bug 1776480 - Remove OS.File et al. r=Gijs,webidl,smaug
This patch removes the vast majority of OS.File and support code. A few things remain:

- The nsIOSFileConstantsService still exists, but the path related constants
  (OS.Constants.Path.*) are no longer added to the OS object. The plan is to
  replace this with a proper service e.g. Services.osConstants or similar) in
  bug 1786885.
- There is still support for OS.File errors in ErrorSanitizer, which will be
  removed in bug 1775167.
- The OS.File to IOUtils migration guide will be rewritten as general IOUtils
  documentation in bug 1830097.
- dom/base/Document.cpp has a workaround for not loading osfile.jsm at startup,
  which may want to be reconsidered in bug 1830100.

So long, and thanks for all the I/O.

Differential Revision: https://phabricator.services.mozilla.com/D176543
2023-05-12 18:34:28 +00:00
Sandor Molnar
924826ccad Backed out changeset 987d013caf11 (bug 1776480) for causing xpc failures in toolkit/components/extensions/test/xpcshell/test_ext_downloads_download.js CLOSED TREE 2023-05-11 22:36:59 +03:00
Barret Rennie
6149948e68 Bug 1776480 - Remove OS.File et al. r=Gijs,webidl,smaug
This patch removes the vast majority of OS.File and support code. A few things remain:

- The nsIOSFileConstantsService still exists, but the path related constants
  (OS.Constants.Path.*) are no longer added to the OS object. The plan is to
  replace this with a proper service e.g. Services.osConstants or similar) in
  bug 1786885.
- There is still support for OS.File errors in ErrorSanitizer, which will be
  removed in bug 1775167.
- The OS.File to IOUtils migration guide will be rewritten as general IOUtils
  documentation in bug 1830097.
- dom/base/Document.cpp has a workaround for not loading osfile.jsm at startup,
  which may want to be reconsidered in bug 1830100.

So long, and thanks for all the I/O.

Differential Revision: https://phabricator.services.mozilla.com/D176543
2023-05-11 17:49:27 +00:00
Mark Banner
090786354b Bug 1829608 - Convert dom/manifest to ES modules. r=geckoview-reviewers,devtools-reviewers,m_kato,emilio
Differential Revision: https://phabricator.services.mozilla.com/D176278
2023-05-10 10:50:32 +00:00
Mike Kaply
ecba5585e8 Bug 1831601 - Switch view chrome URLS to have a firefoxview specific path. r=kcochrane,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D177283
2023-05-09 18:09:17 +00:00
Kelly Cochrane
151a24a000 Bug 1818322 - Create MozTabList and MozTabRow reusable components r=mstriemer,fluent-reviewers,fxview-reviewers,sfoster,Jamie,flod
Differential Revision: https://phabricator.services.mozilla.com/D171879
2023-05-04 15:26:10 +00:00
Norisz Fay
7855b93730 Backed out changeset 08ee4eba4c40 (bug 1818322) for causing bc failures on browser_parsable_css.js CLOSED TREE 2023-05-04 18:10:29 +03:00
Kelly Cochrane
2a5ef1f5ec Bug 1818322 - Create MozTabList and MozTabRow reusable components r=mstriemer,fluent-reviewers,fxview-reviewers,sfoster,Jamie,flod
Differential Revision: https://phabricator.services.mozilla.com/D171879
2023-05-04 14:17:11 +00:00