Commit Graph

122 Commits

Author SHA1 Message Date
Shane Hughes
d5a866bbec Bug 1792014 - Fix migration wizard blocking execution in the Spotlight dialog. r=Mardak
Also update tests that individually accounted for this bug.

Differential Revision: https://phabricator.services.mozilla.com/D157947
2022-09-22 20:30:38 +00:00
Sarah Clements
e04c7ffb66 Bug 1787979 - keyboard shortcut navigates to the wrong tab from Firefox View tab r=dao
* Remove index: 0 in FirefoxViewHandler.openTab
* Add condition in tabbrowser _selectNextTab for FirefoxView tab
* Fix tests

Differential Revision: https://phabricator.services.mozilla.com/D156688
2022-09-14 15:20:01 +00:00
Meg Viar
067eaadd58 Bug 1788991 - Add Messaging Trigger for the nth Closed Tab r=dmose,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D156905
2022-09-13 21:03:46 +00:00
Sandor Molnar
adc341e323 Backed out changeset 658be3acc41a (bug 1788991) for causing bc failures in toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_docs.js CLOSED TREE 2022-09-13 23:01:38 +03:00
Meg Viar
edd8a30169 Bug 1788991 - Add Messaging Trigger for the nth Closed Tab r=dmose,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D156905
2022-09-13 18:48:17 +00:00
Sandor Molnar
03d1865f8f Backed out changeset a224934d4790 (bug 1786523) for causing multiple failures in browser_siteData_multi_select/browser_aboutwelcome_multistage_mr CLOSED TREE 2022-09-13 22:27:08 +03:00
Emily McMinn
ec1c592456 Bug 1786523 - Add a where prop to FXA Accounts to allow opening in a new tab r=negin
Differential Revision: https://phabricator.services.mozilla.com/D156206
2022-09-13 17:53:08 +00:00
Meg Viar
2a8638fb36 Bug 1788231 - Add ability to trigger a button on parent page from Feature Callout CTA and implement for Firefox View: Tab pick up message r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D156203
2022-09-08 21:50:37 +00:00
Ben Hearsum
5f9ef20b27 Bug 1782295: Rename private window separation pref. r=pbz
I don't see any reason to keep this under the same namespace as the other former `privacySegmentation` prefs - but perhaps I'm missing something here.

Depends on D156733

Differential Revision: https://phabricator.services.mozilla.com/D156734
2022-09-08 13:09:11 +00:00
Marian-Vasile Laza
dec9aef2c5 Backed out changeset 8c4f4626a3e6 (bug 1788231) for causing bc failures on browser_sma_click_element.js. CLOSED TREE 2022-09-07 00:04:24 +03:00
Meg Viar
6bc9091c7b Bug 1788231 - Add ability to trigger a button on parent page from Feature Callout CTA and implement for Firefox View: Tab pick up message r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D156203
2022-09-06 20:09:44 +00:00
Cristian Tuns
5f5728da34 Backed out changeset 179824908d2d (bug 1788231) for causing mochitest failures on browser_sma_click_element.js CLOSED TREE 2022-09-02 16:59:41 -04:00
Meg Viar
59445898aa Bug 1788231 - Add ability to trigger a button on parent page from Feature Callout CTA and implement for Firefox View: Tab pick up message r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D156203
2022-09-02 20:17:49 +00:00
Paul Zuehlcke
adc21c4e40 Bug 1788697 - Rename browser.privacySegmentation.enabled pref. r=pdahiya,timhuang,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D156194
2022-09-02 10:46:46 +00:00
Meg Viar
248755e275 Bug 1786647 - Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D155524
2022-08-31 16:09:26 +00:00
Sandor Molnar
8aaea79f98 Backed out changeset 225b8bbe0912 (bug 1786647) for causing browser-chrome failures in toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_docs.js CLOSED TREE 2022-08-30 01:43:39 +03:00
Meg Viar
91ba440ce8 Bug 1786647 - Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D155524
2022-08-29 20:19:16 +00:00
Csoregi Natalia
591eeff1af Backed out changeset ba0784c1646a (bug 1786647) for fxms failures. CLOSED TREE 2022-08-29 19:51:17 +03:00
Meg Viar
4f744927cf Bug 1786647 - Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D155524
2022-08-29 16:18:42 +00:00
criss
351bc28d66 Backed out changeset 56ba242e0732 (bug 1786647) for causing python fxms failures . CLOSED TREE 2022-08-29 17:14:11 +03:00
Meg Viar
605bbe0b26 Bug 1786647 - Split up Feature Callout messages and fetch from ASRouter on page load, focus, and screen advance r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D155524
2022-08-29 13:29:31 +00:00
Dan Mosedale
e926022574 Bug 1781361 - impl set home page option for upgraders, r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D154851
2022-08-26 16:41:00 +00:00
Dan Mosedale
ccf2536884 Bug 1783049 - about:welcome should open FxView in its pinned tab, r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D154478
2022-08-17 16:36:39 +00:00
Barret Rennie
a8e3bb32ff Bug 1779950 - Keep FxMS test corpus up-to-date for make-schemas.py r=nalexander
The fxms schema job has been updated with a script that writes out the test
corpus for the test. This means we no longer need to keep these JSON files in
tree, since the test will automatically generate them.

Differential Revision: https://phabricator.services.mozilla.com/D151985
2022-07-21 00:47:46 +00:00
Barret Rennie
6c9a4ed36a Bug 1775187 - Refactor out common elements of FxMS schema r=Mardak
The following propertie have been refactored out into the top-level message
schema so that they don't have to be repeated in each template's schema:

- `frequency`
- `groups`
- `id`
- `priority`

A definition for the `trigger` property has been added to the common schemas as
`MessageTrigger` so that messages that require triggering can reference this
definition.

Each template schema now requires only its template (as a const value or enum)
and its content, as well as any additional top-level properties that are
message specific (e.g., `order` for `WhatsNewMessage`).

`id`, `content`, and `template` properties are required for all messages.
Individual template schemas do not need to mark `content` and `template` as
required since they are required by the top-level schema. Messages that
require triggering or targeting must define those properties.

Differential Revision: https://phabricator.services.mozilla.com/D150705
2022-07-21 00:47:45 +00:00
Barret Rennie
e30f98e555 Bug 1779109 - Add a schema for protections_panel template r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D151560
2022-07-21 00:47:44 +00:00
Barret Rennie
8fbde5b119 Bug 1775187 - Refactor out localizableText and localizedText from FxMS schemas r=nalexander,dmose
Several kinds of FxMS messages support a common pattern of taking either a
string or an object containing a string ID, allowing for both raw strings and
translated string IDs to be used in messages. This patch refactors that pattern
out into a common definition (localizedText and localizableText) in a common
schema which other schemas can then reference.

Our schema bundling script has been updated to bundle these definitions from
the common schema as top-level definitions (and subsequently rewrite the
references from FxMSCOmmon.schema.json to the generated schema) because Nimbus
and Experimenter only support a single schema file per feature.

To ensure compatability with Experimenter, all our in-tree messages have been
extracted into a test corpus that is validated with the Experimenter JSON
Schema validator. A future patch in this series will clean this up so we don't
need to have separate copies of messages in the tree.

We are now also validating all messages from the CFRMessageProvider with our
in-tree JSON Schema validator that Nimbus uses. The OnboardingMessageProvider
and PanelTestProvider tests have also been updated so that all three are using
the same testing infrastructure.

Differential Revision: https://phabricator.services.mozilla.com/D150704
2022-07-21 00:47:44 +00:00
Iulian Moraru
df431be6b8 Backed out 3 changesets (bug 1780074, bug 1780347) for causing multiple failures. CLOSED TREE
Backed out changeset ee4c4d34816c (bug 1780347)
Backed out changeset a13d3939b98a (bug 1780074)
Backed out changeset 3bc739f7de43 (bug 1780074)
2022-07-20 14:57:48 +03:00
Mark Banner
9e59e52e55 Bug 1780074 - Migrate newtab consumers to use ESM imports directly. r=daleharvey,application-update-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D152114
2022-07-20 10:36:52 +00:00
Nick Alexander
6e9303448d Bug 1775128 - Add toast_notification message template for displaying (native) toast notifications. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D150073
2022-07-20 02:58:42 +00:00
Punam Dahiya
86153c8869 Bug 1779654- Add SpecialMessageAction BLOCK_MESSAGE that allows to block message r=jprickett
To be used in about:privatebrowsing Pin Private Window promo message. BLOCK_MESSAGE will be used in a multi action call after user clicks 'Pin To taskbar'. This will help in hiding Pin promo message on current and preloaded tabs

Differential Revision: https://phabricator.services.mozilla.com/D151888
2022-07-19 23:11:31 +00:00
Jason Prickett
8a55d13751 Bug 1779329 - Correcting links and file paths in messaging schema documentation r=barret DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152201
2022-07-19 20:38:28 +00:00
Jason Prickett
1ede905055 Bug 1777386 - Special Message Action MULTI_ACTION r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D151188
2022-07-14 15:55:02 +00:00
Tooru Fujisawa
328d63ce7f Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel
f009ba2983 Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa
bf0a8b781b Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Jason Prickett
ffef5ab4ee Bug 1776744 - Add special message action for setting prefs r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D150509
2022-07-08 22:47:34 +00:00
Barret Rennie
b3e2605f2b Bug 1771073 - Correct FxMS features and keep them up to date with tests r=dmose,pdahiya
The Nimbus Features corresponding to FxMS messaging surfaces are actually
intended to map to FxMS message groups, which can accept *any* FxMS message.
The features have been updated with schemas that accept any FxMS message.

As part of this, all FxMS schemas have been updated with an `$id` so that they
can be bundled into feature schemas and have their internal `$ref`s work.
(Otherwise, a `$ref` would be relative to the top-level schema instead of the
sub-schema).

Schemas for individual message types are no longer exposed as resource:// URIs,
except in tests, as indivual schemas are no longer required at runtime.

Additionally, each FxMS schema has had its `template` field become required and
requires a constant value for that schema (e.g., Spotlight requires a template
value of "spotlight").

A test has been added to ensure that if any of the messaging surfaces schemas
change that the feature schemas are also updated. The feature schemas can be
regenerated via:

```
cd ./browser/components/newtab/content-src/asrouter/schemas
../../../../../../mach make-schemas.py
```

Differential Revision: https://phabricator.services.mozilla.com/D147332
2022-06-29 23:01:37 +00:00
Barret Rennie
98e3fa932d Bug 1775512 - Do not track SpecialMessageActionSchemas and TriggerActionSchemas from nimbus-shared r=pdahiya
These schemas are only used in Fx Desktop. As such, there is a change in
nimbus-shared to remove the generation of these schemas. The versions in m-c
can now be the canonical versions.

Differential Revision: https://phabricator.services.mozilla.com/D150017
2022-06-23 15:48:12 +00:00
Meg Viar
22b39fd57a Bug 1754314 - Special message action needed for the private browsing taskbar pin r=emcminn,barret
Differential Revision: https://phabricator.services.mozilla.com/D148436
2022-06-22 17:54:32 +00:00
Barret Rennie
02c2614389 Bug 1766434 - Make checking for and pinning app to taskbar async on Windows r=bhearsum
Previously `nsIWindowsShellService::{Check,}PinCurrrentAppToTaskbar` was doing
main thread IO. They have been replaced with async versions that do their work
on a background thread.

Differential Revision: https://phabricator.services.mozilla.com/D145244
2022-05-05 18:48:44 +00:00
Paul Zuehlcke
cf639de6ec Bug 1766441 - Remove study prefs set on TCP rollout opt-in/out. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D144721
2022-04-27 10:35:50 +00:00
Tim Huang
99f2096654 Bug 1765949 - Change the search params for TCP rollout. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D144397
2022-04-22 15:38:14 +00:00
Narcis Beleuzu
7b13e833aa Backed out changeset 4c742ffdfbbf (bug 1765949) as req by timhuang in order to divide the fixes. CLOSED TREE 2022-04-22 18:02:43 +03:00
Tim Huang
7570afe58a Bug 1765949 - Change the search params for TCP rollout. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D144397
2022-04-22 09:42:40 +00:00
Barret Rennie
9fd0588403 Bug 1759039 - Replace Ajv with JsonSchema.jsm in toolkit/components/messaging-system r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D142877
2022-04-06 17:07:35 +00:00
Gijs Kruitbosch
edda40141b Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 16:16:42 +00:00
Norisz Fay
e1d7571cc8 Backed out 2 changesets (bug 1753696) for causing multiple dt and bc failures CLOSED TREE
Backed out changeset 67fd9edfbcea (bug 1753696)
Backed out changeset a9d957ea887b (bug 1753696)
2022-03-30 12:17:55 +03:00
Gijs Kruitbosch
1214ac636b Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 08:18:51 +00:00
Punam Dahiya
e28e4a6574 Bug 1759989 - Intermittent browser_sma_open_spotlight_dialog test fix by restoring stub r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D141393
2022-03-17 19:09:48 +00:00