Commit Graph

1473 Commits

Author SHA1 Message Date
Tooru Fujisawa
6ed0357d29 Bug 1772351 - Part 1: Stop calling ChromeUtils.defineModuleGetter for AppConstants. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D148164
2022-06-06 02:49:12 +00:00
Tooru Fujisawa
c98ea942de Bug 1772313 - Part 7: Stop calling XPCOMUtils.defineLazyModuleGetters for Services. r=kmag,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148160
2022-06-06 02:49:10 +00:00
Tooru Fujisawa
dae44f3ce8 Bug 1772313 - Part 5: Stop calling ChromeUtils.defineModuleGetter for Services. r=kmag,webcompat-reviewers,pip-reviewers,denschub,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D148158
2022-06-06 02:49:10 +00:00
Norisz Fay
a2aaecaf19 Backed out changeset bbcec6afecd4 (bug 1753915) for causing newtab node failures CLOSED TREE 2022-06-03 00:11:50 +03:00
Dan Mosedale
3823854e76 Bug 1753915 - Add logging to ASRouter, r=barret
Differential Revision: https://phabricator.services.mozilla.com/D137968
2022-06-02 20:05:27 +00:00
Tooru Fujisawa
5a129773a2 Bug 1771930 - Part 1: Use XPCOMUtils.defineLazyModuleGetters in RecommendationProvider.jsm to avoid issue from babel plugin. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D147796
2022-06-01 21:31:19 +00:00
Tooru Fujisawa
d1bd5e4401 Bug 1771463 - Do not export lazy getter "fxAccounts" from services/fxaccounts/FxAccounts.jsm. r=markh,preferences-reviewers,Mardak
Instead of exporting lazy getter, export a function that returns the FxAccount
singleton, lazily creating on the first call, and define the lazy getter on the
consumer side that calls the function.

Differential Revision: https://phabricator.services.mozilla.com/D147634
2022-05-31 14:09:10 +00:00
Cosmin Sabou
dd73bafd11 Backed out changeset 697ab99d1c61 (bug 1771463) for causing node newtab failures. CLOSED TREE 2022-05-31 07:16:41 +03:00
Tooru Fujisawa
7f15e8996c Bug 1771463 - Do not export lazy getter "fxAccounts" from services/fxaccounts/FxAccounts.jsm. r=markh,preferences-reviewers
Instead of exporting lazy getter, export a function that returns the FxAccount
singleton, lazily creating on the first call, and define the lazy getter on the
consumer side that calls the function.

Differential Revision: https://phabricator.services.mozilla.com/D147634
2022-05-31 03:12:22 +00:00
Tooru Fujisawa
e1a3290c6b Bug 1771460 - Part 3: Do not define CFRMessageProvider lazy getter. r=Gijs
CFRMessageProvider is eagerly imported and immediately used in the top-level.

Depends on D147593

Differential Revision: https://phabricator.services.mozilla.com/D147594
2022-05-30 20:50:22 +00:00
Tooru Fujisawa
ec12e735ac Bug 1610653 - Part 13: Do not store lexical variable also to global this property in browser/components/newtab. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D144120
2022-05-30 15:19:40 +00:00
Tooru Fujisawa
8ea99a9dbb Bug 1610653 - Part 2: Do not use global this property assignment to define global variable in browser/components/newtab. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D144109
2022-05-30 15:19:36 +00:00
Scott
73a592ea16 Bug 1767445 - Pocket newtab topics widget r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D146327
2022-05-20 22:04:46 +00:00
Barret Rennie
3dfd359771 Bug 1766916 - Add error handling to RemoteImages.patchMessage r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D145038
2022-05-20 15:49:34 +00:00
Barret Rennie
58ba53652a Bug 1759214 - Support arbitrary filetypes in RemoteImages r=Mardak
This is a rewrite of large portions of RemoteImages. Previously, RemoteImages
just relied on the presence of correctly-names files on disk for its cache. Now
we are keeping proper track of what images we've saved via a JSONFile store.
This removes the need for embedding extensions in image IDs -- images
previously referenced as, e.g., "heart.png" can now be referenced without their
extension e.g., "heart". However, for backwards compatability, image IDs with
extensions will still be accepted, but the extension will be stripped off and
ignored.

Instead, we keep track of the mimetype (as reported by Remote Settings) in our
database, as well as the last time we loaded the image (instead of relying on
the last modified time from the filesystem, which is where we were caching that
information previously).

Additionally, some cleanup has been done to prevent image loading while cleanup
is ocurring and vice versa. All interactions that would modify the database go
through `RemoteImages#withDb`, which executes a closure with the `JSONFile`
instance. This closure is a critical section and multiple closures are
prevented from executing at once.

Differential Revision: https://phabricator.services.mozilla.com/D144593
2022-05-18 14:37:27 +00:00
Scott
fabf2f5042 Bug 1769656 - Pocket newtab update fallback spoc positions. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D146515
2022-05-16 23:11:53 +00:00
Scott
8c548b61da Bug 1768911 - Pocket newtab reduce number of I/O operations made from personality provider. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D146201
2022-05-13 16:40:53 +00:00
Butkovits Atila
65c676455c Backed out changeset 8410da1dc02c (bug 1759214) as requested by dev. CLOSED TREE 2022-05-13 02:32:52 +03:00
Barret Rennie
a1c56e6e49 Bug 1759214 - Support arbitrary filetypes in RemoteImages r=Mardak
This is a rewrite of large portions of RemoteImages. Previously, RemoteImages
just relied on the presence of correctly-names files on disk for its cache. Now
we are keeping proper track of what images we've saved via a JSONFile store.
This removes the need for embedding extensions in image IDs -- images
previously referenced as, e.g., "heart.png" can now be referenced without their
extension e.g., "heart". However, for backwards compatability, image IDs with
extensions will still be accepted, but the extension will be stripped off and
ignored.

Instead, we keep track of the mimetype (as reported by Remote Settings) in our
database, as well as the last time we loaded the image (instead of relying on
the last modified time from the filesystem, which is where we were caching that
information previously).

Additionally, some cleanup has been done to prevent image loading while cleanup
is ocurring and vice versa. All interactions that would modify the database go
through `RemoteImages#withDb`, which executes a closure with the `JSONFile`
instance. This closure is a critical section and multiple closures are
prevented from executing at once.

Differential Revision: https://phabricator.services.mozilla.com/D144593
2022-05-12 21:36:55 +00:00
Punam Dahiya
74fd8b3a3e Bug 1765907 - PBM experiment message should override default promo message r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D144871
2022-05-12 18:24:06 +00:00
Meg Viar
b447a017d9 Bug 1767511 - Many messaging-system/onboarding pings missing required event identifier r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D145615
2022-05-12 13:02:59 +00:00
Scott
81040cee89 Bug 1767448 - Pocket newtab available screen height and width for card pings. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D145334
2022-05-10 21:03:36 +00:00
Cristian Tuns
9a2ed99397 Backed out changeset eb12cdc5d1e8 (bug 1765907) for causing mochitest failures on browser_privatebrowsing_focus_promo.js CLOSED TREE 2022-05-10 14:38:02 -04:00
Punam Dahiya
daed30958c Bug 1765907 - PBM experiment message should override default promo message r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D144871
2022-05-10 17:12:05 +00:00
Amy Churchwell
16d64cfeb6 Bug 1767017 - Remove placeholder Colorways section from about:newtab's personalize panel. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D145680
2022-05-06 08:02:07 +00:00
Scott
6aed734d01 Bug 1767443 - Pocket newtab save to Pocket button directly to signup r=gvn,nanj
Differential Revision: https://phabricator.services.mozilla.com/D145367
2022-05-04 17:33:19 +00:00
Scott
010628155f Bug 1764098 - Pocket newtab save to Pocket context menu items don't turn off if Pocket is turned off. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D144178
2022-05-02 19:21:06 +00:00
Emily McMinn
750ef5116f Bug 1765431 - Increase weekly and lifetime frequency for the Private Browsing focus promo message r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D144065
2022-04-28 21:39:17 +00:00
Norisz Fay
6e54605201 Backed out changeset c1a5d86e2f7b (bug 1765431) for causing lint failure CLOSED TREE 2022-04-28 23:53:14 +03:00
Emily McMinn
3db9253d04 Bug 1765431 - Increase weekly and lifetime frequency for the Private Browsing focus promo message r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D144065
2022-04-28 20:03:44 +00:00
Barret Rennie
585dcbcd30 Bug 1761522 - Allow ja-JP-macos locale for RemoteL10n r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D142227
2022-04-28 17:10:15 +00:00
Tooru Fujisawa
3d3d38d944 Bug 1766099 - Part 1: Explicitly specify import or imported symbol for importScripts in browser/components/newtab/. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D144671
2022-04-27 11:40:40 +00:00
Barret Rennie
f726644db9 Bug 1766430 - Allow additional properties in Spotlight content r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D144722
2022-04-26 16:22:50 +00:00
Marco Bonardo
e128227525 Bug 1765024 - Low resolution icons in newtab. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D144434
2022-04-26 08:02:56 +00:00
Ed Lee
926c185217 Bug 1766070 - Shortcuts / top sites about:preferences entry is missing its icon r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D144491
2022-04-22 22:46:09 +00:00
Ed Lee
d2a49d9482 Bug 1766051 - Replace some title styles with more configuration, e.g., font weight, line height, margin r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D144474
2022-04-22 21:48:11 +00:00
Mathieu Leplatre
bd032c460c Bug 1634127 - Download attachments in IndexedDB by default r=necko-reviewers,robwu,dragana
This patch changes the default behaviour of `download()`.

- Previous file-based behaviour was moved to `downloadToDisk()` and `deleteFromDisk()`. Existing consumers were migrated to avoid behaviour change.
- `download()` has now `{useCache: true}` by default, option was dropped, and `deleteCached()` is now `deleteDownloaded()`

Differential Revision: https://phabricator.services.mozilla.com/D141980
2022-04-20 13:07:50 +00:00
Punam Dahiya
1b33df3df9 Bug 1765422 - Update Firefox Focus promo text in PBM r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D144062
2022-04-19 22:09:49 +00:00
Meg Viar
0585029e49 Bug 1764064 - There is no telemetry ping displayed in the "Browser Console" if the "FX_100_UPGRADE" spotlight is dismissed using the "Esc" key r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D143492
2022-04-19 19:46:04 +00:00
Ed Lee
252724ac00 Bug 1765411 - Allow configuring logo and background images using firefox-settings-attachments r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D144054
2022-04-19 19:39:36 +00:00
Meg Viar
94373a99aa Bug 1764807 - Show "Firefox Klar" promo in PBM for CH and AT Regions r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D143746
2022-04-18 20:14:41 +00:00
Meg Viar
8e99d3dff8 Bug 1762666 - Remove legacy Upgrade Dialog code r=fluent-reviewers,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D142973
2022-04-14 20:55:22 +00:00
Barret Rennie
3384f9c880 Bug 1754220 - Update ASRouter messages when force-enrolling in an experiment r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D142240
2022-04-13 15:56:21 +00:00
Meg Viar
f92dddd1cf Bug 1763437 - Show 'Firefox Klar' for English locale in PB Focus Promo r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D143082
2022-04-12 15:17:50 +00:00
Marian-Vasile Laza
7134707a38 Backed out changeset c43b947f03b0 (bug 1634127) for causing newtab failures. CLOSED TREE 2022-04-12 05:29:27 -07:00
Mathieu Leplatre
0da93ad8ff Bug 1634127 - Download attachments in IndexedDB by default r=necko-reviewers,robwu,dragana
This patch changes the default behaviour of `download()`.

- Previous file-based behaviour was moved to `downloadToDisk()` and `deleteFromDisk()`. Existing consumers were migrated to avoid behaviour change.
- `download()` has now `{useCache: true}` by default, option was dropped, and `deleteCached()` is now `deleteDownloaded()`

Differential Revision: https://phabricator.services.mozilla.com/D141980
2022-04-12 10:50:47 +00:00
Meg Viar
e3ec61e716 Bug 1762471 - For AboutWelcome screens, use screen index rather than setting screen order explicitly in the config r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D142860
2022-04-11 14:53:38 +00:00
Ed Lee
538afba29e Bug 1763486 - Improve heart animation image asset for dark mode r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D143106
2022-04-07 19:00:10 +00:00
Meg Viar
c02cdd5903 Bug 1762477 - Add test coverage for resetMessageState in ASRouter.jsm r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D142890
2022-04-07 18:26:13 +00:00
Cosmin Sabou
cc005b99cd Backed out changeset 253a415f7be7 (bug 1754220) for causing ASRouter related newtab failures. CLOSED TREE 2022-04-07 02:14:49 +03:00