Commit Graph

1682 Commits

Author SHA1 Message Date
Jason Prickett
3f3ecea905 Bug 1805385 - Flip direction of absolutely positioned feature callout in RTL layouts r=mviar
Depends on D164628

Differential Revision: https://phabricator.services.mozilla.com/D164592
2022-12-30 17:35:19 +00:00
Jason Prickett
9d80e97429 Bug 1805413 - Implement relative position for feature callout positioning overrides r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D164628
2022-12-29 20:50:48 +00:00
Iulian Moraru
f7a4c8e6b7 Bug 1785005 - disable browser_topsites_annotation.js on linux x64 debug for causing frequent failures. r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165498
2022-12-27 16:28:03 +00:00
Mark Banner
df47c60747 Bug 1806359 - Convert telemetry imports to direct ES imports. r=necko-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,janerik,mconley,sgalich,bytesized,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165002
2022-12-23 12:37:07 +00:00
Cristian Tuns
b20d6daa49 Backed out 2 changesets (bug 1805413, bug 1805385) for causing mochitest failures CLOSED TREE
Backed out changeset 9010e3c9421e (bug 1805385)
Backed out changeset c168847136ae (bug 1805413)
2022-12-21 21:47:33 -05:00
Jason Prickett
e499ffdb98 Bug 1805385 - Flip direction of absolutely positioned feature callout in RTL layouts r=mviar
Depends on D164628

Differential Revision: https://phabricator.services.mozilla.com/D164592
2022-12-22 01:53:49 +00:00
Jason Prickett
c184d1652c Bug 1805413 - Implement relative position for feature callout positioning overrides r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D164628
2022-12-22 01:53:49 +00:00
Dan Mosedale
225ebe9580 Bug 1805470 - FxMS should save impressions to all groups in a message, r=barret
Differential Revision: https://phabricator.services.mozilla.com/D164626
2022-12-19 21:14:37 +00:00
Shane Hughes
426d10750c Bug 1804954 - isFxASignedIn targeting attribute. r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D164383
2022-12-15 17:54:02 +00:00
Ben Hearsum
eddbb186d3 Bug 1804899: browser/components/newtab/test/browser/browser_aboutwelcome_rtamo.js fails against MSIX packages r=pdahiya
Return-to-AMO is not supported in MSIX builds (yet, anyways) - and this test fails when run against them.

Differential Revision: https://phabricator.services.mozilla.com/D164669
2022-12-15 14:30:10 +00:00
Ben Hearsum
c167bcedb4 Bug 1804894: Don't write postSigningData in MSIX builds r=nalexander
This is only done by the Return-to-AMO flow, which is not supported in MSIX anyways.

Also, disable the RTAMO test for MSIX builds while we're here.

Differential Revision: https://phabricator.services.mozilla.com/D164666
2022-12-15 14:30:09 +00:00
Emilio Cobos Álvarez
0f61b77b68 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-15 03:11:55 +00:00
Barret Rennie
d463dc5949 Bug 1775849 - Import messages from messaging-system-inflight-assets as test cases for schema validation r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D161629
2022-12-15 01:52:09 +00:00
Iulian Moraru
929d19c3de Backed out 11 changesets (bug 1804903, bug 1804902, bug 1804900, bug 1804899, bug 1712329, bug 1804898, bug 1804894, bug 1804904, bug 1804896, bug 1804905) for breaking gecko decision task. CLOSED TREE
Backed out changeset 9e7813271e6b (bug 1712329)
Backed out changeset 29aa1d032dd3 (bug 1804903)
Backed out changeset 22ef0b00cc99 (bug 1804905)
Backed out changeset 8fad832a574e (bug 1804904)
Backed out changeset 60f185a3a485 (bug 1804902)
Backed out changeset 8b69824de6e2 (bug 1804900)
Backed out changeset 140f75f3f919 (bug 1804899)
Backed out changeset f4da44b1a219 (bug 1804898)
Backed out changeset 7cf946ae8295 (bug 1804896)
Backed out changeset 07d62af0767f (bug 1804894)
Backed out changeset 1e3e02cc3b1f (bug 1712329)
2022-12-15 03:16:41 +02:00
Ben Hearsum
26264c7356 Bug 1804899: browser/components/newtab/test/browser/browser_aboutwelcome_rtamo.js fails against MSIX packages r=pdahiya
Return-to-AMO is not supported in MSIX builds (yet, anyways) - and this test fails when run against them.

Differential Revision: https://phabricator.services.mozilla.com/D164669
2022-12-15 00:45:14 +00:00
Ben Hearsum
20e93dfd50 Bug 1804894: Don't write postSigningData in MSIX builds r=nalexander
This is only done by the Return-to-AMO flow, which is not supported in MSIX anyways.

Also, disable the RTAMO test for MSIX builds while we're here.

Differential Revision: https://phabricator.services.mozilla.com/D164666
2022-12-15 00:45:13 +00:00
Nick Alexander
98d1c4c0c2 Bug 1804988 - Determine toast notification tag from experiment:branch slug in backgroundTaskMessage experiments. r=barret
This commit uses a "pull" approach, where the experiment details are
fished at presentation-time and the content `tag` updated.

A few notes:

- With this approach, the update function is pushed down to the leaf
  node (the toast notification presentation layer).  It would be nice to
  do this at the experiment layer, but that layer doesn't resolve the
  presentation layer at this time, so it would perhaps violate the
  abstraction to lift the work higher.

- No effort has been made to mark `tag` as invalid in the messaging
  experiment schemas.  At this time, there's no provision for fields
  accepted at the presentation layer (`ToastNotification.schema.json`)
  but not at the experiment layer aggregating
  presentations (`BackgroundTaskMessagingExperiment.schema.json`,
  `MessagingExperiment.schema.json`).  It's likely possible to arrange
  this but not worth the effort at this time.

- The actual tag displayed is not captured in the message as it flows
  through ASRouter.  This is not likely to pose a problem.

- The actual tag displayed might be `optin-...`, potentially
  complicating data analysis.  Since it's essentially impossible for
  regular users to opt-in to _background task_ messages, that's not a
  pressing concern.

Differential Revision: https://phabricator.services.mozilla.com/D164508
2022-12-14 18:52:34 +00:00
yoenzhang
1d7b0adfd1 Bug 1801973 Remove Colorways Specific messages and targeting attributes r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D163342
2022-12-14 15:57:30 +00:00
Cristian Tuns
c9c42bc174 Backed out 2 changesets (bug 1805415) for causing dt failures on browser_net_telemetry_throttle_changed.js CLOSED TREE
Backed out changeset 5056d7df9f1e (bug 1805415)
Backed out changeset e13513500184 (bug 1805415)
2022-12-14 08:52:21 -05:00
Emilio Cobos Álvarez
9a53f8dea3 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-14 10:25:17 +00:00
Shane Hughes
ea74f8cc33 Bug 1804726 - Refactor about:welcome transitions. r=emcminn
This patch accomplishes a couple different things in one go.
about:welcome has a feature to allow switching screens by history
navigation. But the screen transitions don't play in that case. There
was also an issue (see bug 1804098) where rounding inconsistencies could
cause 1px gaps to appear in the animated progress bar, because of the
use of transform. By converting the progress bar into a single element
and just modulating its width, we can stop using transform and also
enable transitions for history navigation. Technically, this also allows
us to advance by more than 1 screen without messing up the animations,
though this is not currently used. Incidentally, it simplifies the CSS.

Differential Revision: https://phabricator.services.mozilla.com/D164310
2022-12-14 03:32:56 +00:00
Shane Hughes
c145c22abc Bug 1804786 - Fix enzyme unit tests. r=mviar
Modify the enzyme assertions in unit tests so they can fail when
regressed. Update the same tests since now they would fail otherwise.
One of them also required fixing a bug in MSLocalized.jsx.

Differential Revision: https://phabricator.services.mozilla.com/D164403
2022-12-12 18:04:12 +00:00
Mark Banner
06c5ee8204 Bug 1804661 - Convert browser/components/BrowserGlue.jsm to an ES module. r=Gijs,settings-reviewers,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D164204
2022-12-12 14:59:18 +00:00
Cristian Tuns
bbf7fa7f65 Backed out changeset 5d55a5accdeb (bug 1804726) for causing mochitest failures on browser_aboutwelcome_configurable_ui.js CLOSED TREE 2022-12-11 22:13:21 -05:00
Shane Hughes
dfdf59950f Bug 1804726 - Refactor about:welcome transitions. r=emcminn
This patch accomplishes a couple different things in one go.
about:welcome has a feature to allow switching screens by history
navigation. But the screen transitions don't play in that case. There
was also an issue (see bug 1804098) where rounding inconsistencies could
cause 1px gaps to appear in the animated progress bar, because of the
use of transform. By converting the progress bar into a single element
and just modulating its width, we can stop using transform and also
enable transitions for history navigation. Technically, this also allows
us to advance by more than 1 screen without messing up the animations,
though this is not currently used. Incidentally, it simplifies the CSS.

Differential Revision: https://phabricator.services.mozilla.com/D164310
2022-12-12 02:26:42 +00:00
Jason Prickett
8dc33d0067 Bug 1804589 - Refactors pdfjs feature callout instantiation for better performance r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D164174
2022-12-09 20:14:46 +00:00
scott
9d50f3d711 Bug 1804533 - Save to Pocket and Pocket newtab pass rollout metadata to Pocket links r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D164125
2022-12-08 17:39:36 +00:00
Mark Banner
5dad366a3e Bug 1803911 - Automatically replace Cu.reportError with console.error (newtab), and manually fix tests. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D163770
2022-12-08 16:21:28 +00:00
hanna alemu
a6db112731 Bug 1794485 - Remove colorway variation from about:welcome codebase r=pdahiya,dmose,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D159324
2022-12-07 19:05:24 +00:00
Shane Hughes
1d574e4e44 Bug 1804098 - Avoid subpixel rounding inconsistencies in about welcome progress bar. r=negin
Differential Revision: https://phabricator.services.mozilla.com/D163866
2022-12-07 17:03:07 +00:00
Jason Prickett
a880490eae Bug 1803660 - Hide and show feature callout surface when tabs are changed r=mviar
Depends on D163639

Differential Revision: https://phabricator.services.mozilla.com/D163642
2022-12-06 23:22:50 +00:00
Noemi Erli
38df0ec770 Backed out changeset ab219eb65432 (bug 1803660) for causing failures in /browser_newtab_ping.js CLOSED TREE 2022-12-06 22:29:16 +02:00
Jason Prickett
fd2e0452f9 Bug 1803660 - Hide and show feature callout surface when tabs are changed r=mviar
Depends on D163639

Differential Revision: https://phabricator.services.mozilla.com/D163642
2022-12-06 19:27:40 +00:00
Shane Hughes
744fb4aff2 Bug 1800535 - Re-enable onboarding video test. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D163788
2022-12-06 17:37:26 +00:00
hanna alemu
5c19b2d176 Bug 1803367 - [Cleanup] Remove test messages and Strings used for the TCP rollout r=aminomancer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D163520
2022-12-02 19:16:15 +00:00
Shane Hughes
83343af82b Bug 1794702 - Add a wipe transition for MR onboarding progress bar. r=yozhang
Differential Revision: https://phabricator.services.mozilla.com/D159821
2022-12-02 07:03:56 +00:00
Shane Hughes
abf1e16f6c Bug 1801301 - Fix idle message trigger firing after wake. r=barret
Add a 1s grace period after waking from sleep in which notifications
from the idle service will be ignored. Break out the idle trigger tests
because we've reached the max statements per function limit.

Differential Revision: https://phabricator.services.mozilla.com/D163303
2022-12-01 23:29:55 +00:00
scott
81b2abcdfd Bug 1803410 - Pocket newtab topsites, fixing replaced pinned edge cases. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D163510
2022-12-01 17:38:57 +00:00
Shane Hughes
7f3ae4ffc8 Bug 1799997 - Support media autoplay on about:welcome. r=pdahiya,pbz
Add the autoplay permission to about:welcome through the default
permissions file. If we add onboarding videos to other messaging
surfaces (like the multistage spotlight for existing user onboarding),
it won't be necessary to add permissions since autoplay is only blocked
in content. This also incidentally reduces the severity of bug 1799935.
The error still happens, breaking the video controls. But since the
video autoplays, the bug is only noticeable if you try to interact with
the video controls. Otherwise, the video will just play on its own and
advance to the next screen when it's finished.

Differential Revision: https://phabricator.services.mozilla.com/D162162
2022-11-30 04:18:24 +00:00
scott
34d6c900b7 Bug 1803206 - Pocket newtab sponsored topsite fixing image resize. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D163363
2022-11-30 03:57:12 +00:00
Meg Viar
18abc909b1 Bug 1795894 - Enable triggering Feature Callouts in chrome by content location r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D160503
2022-11-30 01:47:23 +00:00
Iulian Moraru
e4cb785520 Backed out 3 changesets (bug 1801092) for causing newtab failures.
Backed out changeset 9153de956154
Backed out changeset 9df9c279c28d (bug 1801092)
Backed out changeset 7323c7444941 (bug 1801092)
2022-11-30 00:28:42 +02:00
Otto Länd
dbb211d8a1 No bug: apply code formatting via Lando
# ignore-this-changeset
2022-11-29 21:46:36 +00:00
scott
e6e0377789 Bug 1803107 - Pocket newtab topsites fixing pinning issue with sponsored Pocket tile. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D163339
2022-11-29 19:10:47 +00:00
Sandor Molnar
61f05197c3 Backed out changeset 28484915dc1b (bug 1795894) for causing mochitest failures. CLOSED TREE 2022-11-28 04:33:07 +02:00
Meg Viar
3633b07781 Bug 1795894 - Enable triggering Feature Callouts in chrome by content location r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D160503
2022-11-28 00:54:14 +00:00
Barret Rennie
d1a2566d45 Bug 1541508 - Use Services.env in browser/ r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D160136
2022-11-25 19:09:06 +00:00
Shane Hughes
f15f8a12bf Bug 1802333 - Idle trigger debug logging. r=barret
To debug the idle trigger's interaction with OS sleep state, it's
helpful to know whether sleep/wake notifications were sent. This allows
most of the idle trigger activity to be logged to the console, if the
pref `messaging-system.log` is set to `debug`. The new logging will also
be used to debug the behavior reported in bug 1801301.

Differential Revision: https://phabricator.services.mozilla.com/D163010
2022-11-25 10:42:25 +00:00
Chris H-C
a741773afc 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
Cristian Tuns
77cb29f0f8 Backed out changeset 4a504fa8d156 (bug 1802207) for causing bc failures CLOSED TREE 2022-11-24 10:46:53 -05:00