Commit Graph

1682 Commits

Author SHA1 Message Date
Emily McMinn
418a769a88 Bug 1824948 - Remove about:firefoxview link from Gratitude screen r=pdahiya,omc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174002
2023-03-30 06:39:37 +00:00
Lina Butler
bc74f5532e Bug 1825157 - Unify the fake pref implementations used in tests. r=nanj
Before this commit, the New Tab tests had two fake pref
implementations:

* The `Services.prefs` mock in `TEST_GLOBAL`, which stubbed out a
  handful of `nsIPrefBranch` methods.
* `FakensIPrefBranch`, which mocked a different handful of
  `nsIPrefBranch` methods.

This commit:

* Consolidates the two fake implementations into the mock
  `FakensIPrefBranch` class.
* Adds a `FakensIPrefService` subclass of `FakensIPrefBranch`, with
  additional methods specific to `nsIPrefService`.
* Replaces `FakensIPrefBranch.prototype.prefs` with a new
  `FAKE_GLOBAL_PREFS` map. The new approach still lets tests change and
  clear prefs on existing instances of `FakensIPrefBranch` and its
  subclasses, but makes the shared state explicit. The old approach of
  mutating `FakensIPrefBranch.prototype.prefs` relied on a subtle quirk
  of `prefs` being shared by all instances of `FakensIPrefBranch` and
  its subclasses, and broke when setting `prefs` to a new, empty
  object.
* Moves `{observe, ignore}Branch` into `FakePrefs`, since these are
  not part of the `nsIPrefBranch` interface.

Differential Revision: https://phabricator.services.mozilla.com/D173897
2023-03-30 05:15:26 +00:00
Shane Hughes
ca232ede40 Bug 1813716 - Encapsulate aboutwelcome container and make its ID more unique. r=omc-reviewers,fxview-reviewers,sfoster,jprickett
Differential Revision: https://phabricator.services.mozilla.com/D172493
2023-03-29 21:51:09 +00:00
Dão Gottwald
43e4da468c Bug 1711624 - Make in-content button backgrounds dynamic to better adapt to different contexts. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D173417
2023-03-29 11:23:17 +00:00
CanadaHonk
de0de3489c Bug 1801379 - Migrate Sinon.jsm to an ES module r=extension-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,fxview-reviewers,devtools-reviewers,Standard8,nchevobbe,sclements,dimi,mconley,bytesized,robwu
Migrated `testing/modules/Sinon.sys.mjs` to an ES module.

`testing` should now be 100% ESM 🎉

Differential Revision: https://phabricator.services.mozilla.com/D173643
2023-03-29 07:34:10 +00:00
Shane Hughes
3301924585 Bug 1822893 - Add formAutofill trigger and targeting attributes creditCardsSaved and addressesSaved. r=omc-reviewers,jprickett
Differential Revision: https://phabricator.services.mozilla.com/D172842
2023-03-29 07:07:42 +00:00
Norisz Fay
3d356e241e Backed out changeset f84682fa3ea9 (bug 1824094) for causing Mn failures on test_restore_manually_with_pinned_tabs.py CLOSED TREE 2023-03-28 22:11:41 +03:00
Mike Conley
5db49c0ccd Bug 1824094 - Don't read from the about:home startup cache if the last session will be recovered. r=Gijs
We were choosing not to read from the cache if the user has configured the browser
to restore the last session, but there's also the case where the last session might
be restored regardless - for example, to recover from a parent-process crash, after
an update applies, or if using the browser restart shortcut for developers.

Differential Revision: https://phabricator.services.mozilla.com/D173782
2023-03-28 15:31:49 +00:00
Narcis Beleuzu
b302039c2e Backed out changeset 141c453cccac (bug 1824094) for bc failures on browser_no_startup_actions.js . CLOSED TREE 2023-03-28 17:42:24 +03:00
Mike Conley
2d830ba767 Bug 1824094 - Don't read from the about:home startup cache if the last session will be recovered. r=Gijs
We were choosing not to read from the cache if the user has configured the browser
to restore the last session, but there's also the case where the last session might
be restored regardless - for example, to recover from a parent-process crash, after
an update applies, or if using the browser restart shortcut for developers.

Differential Revision: https://phabricator.services.mozilla.com/D173782
2023-03-28 13:12:12 +00:00
Travis Long
e5e92088ef Bug 1822726 - Remove expiring metric used for Server Knobs Validation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D173474
2023-03-27 13:46:32 +00:00
scottdowne
1155a62e05 Bug 1822503 - Pocket newtab fixing startup reset from happening during experiment load. r=nanj,mconley,barret
Differential Revision: https://phabricator.services.mozilla.com/D173342
2023-03-22 21:41:50 +00:00
Florian Quèze
2bc70af0d2 Bug 1821490 - New tab page updates should pause when the user is away and resume immediately when the user is back, r=thecount.
Differential Revision: https://phabricator.services.mozilla.com/D172172
2023-03-22 08:41:45 +00:00
Punam Dahiya
cefb307533 Bug 1820566 - Show FxA screen based of user import selection r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D172593
2023-03-22 05:51:12 +00:00
Shane Hughes
6595d7a3b6 Bug 1786582 - Update fluent and fluent-react in newtab. r=barret
Differential Revision: https://phabricator.services.mozilla.com/D172720
2023-03-22 04:15:39 +00:00
Nan Jiang
13b8c7bc9a Bug 1822327 - Add hostname for SPOC topsites r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D173186
2023-03-21 19:06:00 +00:00
Nan Jiang
9c9c1c1086 Bug 1822604 - Fix an edge case for spoc topsites injection r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D173094
2023-03-21 01:29:31 +00:00
Nan Jiang
d3d184c501 Bug 1822027 - Do not show SPOC topsites in the URLbar r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D173025
2023-03-20 15:31:02 +00:00
Barret Rennie
0604905647 Bug 1818738 - Make the feature update event API more ergonomic r=aminomancer,settings-reviewers,search-reviewers,Gijs,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D172035
2023-03-16 22:20:14 +00:00
Barret Rennie
921eb4cb30 Bug 1821243 - Do not require content and template if id is present in message schema r=omc-reviewers,aminomancer
The schema still imposes the following restrictions:

- Having "template" present makes "content" and "id" required.
- Having "content" present makes "template" and "id" required.

Template and content are dependent on eachother because we do not know how to
interpret content without a template and we a template with no content to
interpret is useless.

If we have a template and content, then we also need an ID for the message
because we cannot reference the message content except by its ID.

Differential Revision: https://phabricator.services.mozilla.com/D172458
2023-03-16 20:27:01 +00:00
Cristian Tuns
837b5ca4e5 Backed out 2 changesets (bug 1821243) for causing xpcshell failures on test_RemoteSettingsExperimentLoader_updateRecipes.js CLOSED TREE
Backed out changeset 39df97ca8253 (bug 1821243)
Backed out changeset bbb8006a0784 (bug 1821243)
2023-03-16 15:16:58 -04:00
Barret Rennie
3d403fb8c2 Bug 1821243 - Do not require content and template if id is present in message schema r=omc-reviewers,aminomancer
The schema still imposes the following restrictions:

- Having "template" present makes "content" and "id" required.
- Having "content" present makes "template" and "id" required.

Template and content are dependent on eachother because we do not know how to
interpret content without a template and we a template with no content to
interpret is useless.

If we have a template and content, then we also need an ID for the message
because we cannot reference the message content except by its ID.

Differential Revision: https://phabricator.services.mozilla.com/D172458
2023-03-16 17:50:22 +00:00
Abhishek Tiwari
496a43cc06 Bug 1821624 - Convert toolkit/components/messaging-system to ES modules r=Standard8,fxview-reviewers,omc-reviewers,aminomancer,sclements
Differential Revision: https://phabricator.services.mozilla.com/D172406
2023-03-15 18:44:02 +00:00
Francesco Lodolo (:flod)
fa28bcb157 Bug 1822388 - Move brandings.ftl from browser to toolkit, r=eemeli,settings-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sgalich,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D172643
2023-03-15 17:00:48 +00:00
Shane Hughes
3d2d5cd25f Bug 1819456 - Update ASRouter messages when experiment recipes are updated. r=omc-reviewers,barret
Differential Revision: https://phabricator.services.mozilla.com/D171939
2023-03-14 02:53:27 +00:00
Norisz Fay
daed151636 Backed out changeset 8d5e4dfff15e (bug 1819456) for causing xpcshell failures on test_RemoteSettingsExperimentLoader.js 2023-03-14 04:15:21 +02:00
Shane Hughes
6721e45b2a Bug 1819456 - Update ASRouter messages when experiment recipes are updated. r=omc-reviewers,barret
Differential Revision: https://phabricator.services.mozilla.com/D171939
2023-03-14 00:45:52 +00:00
Russell Chan
126e1e5707 Bug 1817531 - Prevent some ASRouter tests from unecessarily repeatedly reloading messages r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D171487
2023-03-13 16:30:14 +00:00
Lina Butler
d78454e018 Bug 1820707 - Record impressions and clicks for organic tiles. r=nanj
Currently, the Glean `newtab` ping and legacy scalars collect
impressions and clicks for sponsored (Pocket and Contile) tiles, but
not organic tiles from Places.

This commit adds:

* Support for recording organic impressions to the
  `TopSiteImpressionWrapper` component.
* Support for recording organic clicks to the `TopSiteLink`
  component.
* Instrumentation for recording organic impressions and clicks,
  separate from sponsored ones, to `TelemetryFeed`.

Differential Revision: https://phabricator.services.mozilla.com/D171830
2023-03-11 05:24:03 +00:00
negin
ea9bab44b1 Bug 1816460 - Add Easy Setup as first screen in new user onboarding r=omc-reviewers,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D170683
2023-03-10 22:21:39 +00:00
Shane Hughes
b5b861e02c Bug 1817319 - Add messagesLoaded trigger. r=omc-reviewers,jprickett
Differential Revision: https://phabricator.services.mozilla.com/D170263
2023-03-09 20:47:02 +00:00
Barret Rennie
db39ad4910 Bug 1820918 - Remove RemoteImages.jsm r=aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D171942
2023-03-08 02:44:46 +00:00
Cosmin Sabou
346961f7f2 Backed out changeset e8e4b29af858 (bug 1817319) for causing bc failures on browser_newtab_trigger.js. CLOSED TREE 2023-03-08 02:24:59 +02:00
Jason Prickett
60c0c22447 Bug 1790424 - Fixed screen targeting for mobile download onboarding string r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D171609
2023-03-07 23:20:01 +00:00
Shane Hughes
a91b2414aa Bug 1817319 - Add messagesLoaded trigger. r=omc-reviewers,jprickett
Differential Revision: https://phabricator.services.mozilla.com/D170263
2023-03-07 22:32:43 +00:00
Sandor Molnar
6b4fef59f0 Backed out changeset f14393afa5c8 (bug 1790424) for causing bc failures in browser/components/newtab/test/browser/browser_aboutwelcome_multistage_default.js CLOSED TREE 2023-03-07 20:19:52 +02:00
Nan Jiang
14cdcb9343 Bug 1817010 - Add a nimbus variable to cap sponsored top sites r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D171789
2023-03-07 17:29:15 +00:00
Jason Prickett
997b1c8c1a Bug 1790424 - Fixed screen targeting for mobile download onboarding string r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D171609
2023-03-07 16:08:11 +00:00
Barret Rennie
975ae348dd Bug 1805511 - Add targeting for default PDF and HTML handlers r=nalexander,omc-reviewers,emcminn
This also fixes a bug in ASRouter devtools that prevented evaluation of
expressions containing nested promises. Objects containing promises are now
correctly serialized to the ASRouter devtools and expressions evaluate
correctly.

Differential Revision: https://phabricator.services.mozilla.com/D169408
2023-03-06 20:10:55 +00:00
scott
173e73bfcf Bug 1805589 - Pocket newtab add Discovery Stream topsites to topsites list earlier.
Differential Revision: https://phabricator.services.mozilla.com/D164625
2023-03-03 21:54:36 +00:00
Stanca Serban
ba2c013d86 Backed out changeset 51080108cc0d (bug 1805589) for causing mochitests failures in browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js. CLOSED TREE 2023-03-03 21:29:55 +02:00
scott
89b0078202 Bug 1805589 - Pocket newtab add Discovery Stream topsites to topsites list earlier. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D164625
2023-03-03 18:22:34 +00:00
Jason Prickett
3e83df4f60 Bug 1790424 - Adding functionality for onboarding and about welcome messages to be filtered with targeting r=omc-reviewers,barret,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D170719
2023-03-03 00:26:26 +00:00
Sandor Molnar
ffa80a3221 Backed out 4 changesets (bug 1805511, bug 1805509) for causing bc and xpc failures. CLOSED TREE
Backed out changeset 31a8dcad0d88 (bug 1805509)
Backed out changeset 3dd1735b85fa (bug 1805509)
Backed out changeset 87641a6eee2b (bug 1805509)
Backed out changeset e5bd4ad558f2 (bug 1805511)
2023-03-02 23:26:06 +02:00
Barret Rennie
716e5614da Bug 1805511 - Add targeting for default PDF and HTML handlers r=nalexander,omc-reviewers,emcminn
This also fixes a bug in ASRouter devtools that prevented evaluation of
expressions containing nested promises. Objects containing promises are now
correctly serialized to the ASRouter devtools and expressions evaluate
correctly.

Differential Revision: https://phabricator.services.mozilla.com/D169408
2023-03-02 20:33:21 +00:00
Sandor Molnar
5ace18f79f Backed out 4 changesets (bug 1805509, bug 1805511) for causing node newtab failures. CLOSED TREE
Backed out changeset 1c1d335d4ef5 (bug 1805509)
Backed out changeset 0bf2579bccd7 (bug 1805509)
Backed out changeset a87f459f2caa (bug 1805509)
Backed out changeset ae16a9890f22 (bug 1805511)
2023-03-02 21:03:45 +02:00
Barret Rennie
7d6f95873a Bug 1805511 - Add targeting for default PDF and HTML handlers r=nalexander,omc-reviewers,emcminn
This also fixes a bug in ASRouter devtools that prevented evaluation of
expressions containing nested promises. Objects containing promises are now
correctly serialized to the ASRouter devtools and expressions evaluate
correctly.

Differential Revision: https://phabricator.services.mozilla.com/D169408
2023-03-02 18:27:13 +00:00
Emily McMinn
a9c88ddfdd Bug 1720763 - Remove topsites & region support from about:welcome r=pdahiya,omc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D170943
2023-02-28 22:46:45 +00:00
Emily McMinn
e9e3d4b0fe Bug 1818437 - Fix RTAMO page to account for its having a single screen r=aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D171078
2023-02-27 22:38:37 +00:00
Noemi Erli
b09b0911e7 Bug 1812050 - Disable browser/browser_aboutwelcome_multistage_mr.js on linux for frequent failures r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D171085
2023-02-27 14:10:14 +00:00