Commit Graph

585 Commits

Author SHA1 Message Date
Hanna Jones
dbf0f29e8a Bug 1788800 - fix new colorways card intermittent r=sfoster
From what I can tell switching to `withFirefoxView` and opening a new window to run these tests in + closing that window before disabling the theme messed with the timing of these tests in such a way that we started getting that vsync error shown in the logs. I've switched to running all these tests in the same window, which looks good from a couple of try pushes:

https://treeherder.mozilla.org/jobs?repo=try&revision=9a5f379ecc48bda08eab67210278b547f558f856

https://treeherder.mozilla.org/jobs?repo=try&revision=76b909924455fda54165ffeaa00b3654b4decd09

I'll file a follow up bug to change the default behaviour of `withFirefoxView` is to run tests in the same window, as this has come up before.

Also worth noting that even if this patch lands and fixes the new frequent intermittent we will likely still see the less frequent intermittents that happened prior to the change for Bug 1780441.

Differential Revision: https://phabricator.services.mozilla.com/D162617
2022-11-24 14:40:36 +00:00
Butkovits Atila
732bdfaac1 Backed out 2 changesets (bug 1685180) for causing Xpcshell failures at test_l10nCache.js. CLOSED TREE
Backed out changeset c05d7c567c19 (bug 1685180)
Backed out changeset be4603eff17c (bug 1685180)
2022-11-21 19:51:30 +02:00
Greg Tatum
3395329186 Bug 1685180 - Ensure tests all properly set fluent args; r=nordzilla,settings-reviewers,Gijs
Either provide the dynamic data correctly in tests, or provide empty
strings when it doesn't exist.

Differential Revision: https://phabricator.services.mozilla.com/D162336
2022-11-21 16:14:06 +00:00
Hanna Jones
d6f904e4a2 Bug 1800478 - fix intermittent failure in fx view accessibility tests r=tgiles
The switch to using `withFirefoxView` caused another onboarding prompt to show. After the fx view tabstrip button has been clicked for the 3rd time we display a new message. This wasn't happening before because the pref that controls this is tied to that button click, so didn't get incremented when we were opening about:firefoxview in a new tab.

Differential Revision: https://phabricator.services.mozilla.com/D162427
2022-11-21 15:56:49 +00:00
Hanna Jones
c7f85ea5bb Bug 1801328 - remove duplicate keyboard focus test r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D162411
2022-11-18 16:05:04 +00:00
Dão Gottwald
cfc7cc8b18 Bug 1801037 - Remove "New colorways are on the way" message from Firefox View. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D162264
2022-11-18 06:25:41 +00:00
Tim Giles
e65dbcf363 Bug 1800689 - Remove colorways null state. r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D162154
2022-11-17 17:05:27 +00:00
Hanna Jones
6b7f672eaf Bug 1780441 - standardize tests to use withFirefoxView r=sfoster
There are a handful of callout tests still opening `about:firefoxview` in a new tab. [Bug 1797815](https://bugzilla.mozilla.org/show_bug.cgi?id=1797815) will cover updating those tests.

Differential Revision: https://phabricator.services.mozilla.com/D160557
2022-11-14 14:16:14 +00:00
Marian-Vasile Laza
cb5a3644d1 Backed out changeset de61491bc549 (bug 1795894) for causing bc failures on browser_protocol_ask_dialog.js. CLOSED TREE 2022-11-11 01:14:04 +02:00
Sammy Khamis
01a28f937c Bug 1799255: Revert the SyncedTabs lastUsed change and any changes from consumers r=markh,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D161661
2022-11-10 21:28:42 +00:00
Meg Viar
9e1c9a7613 Bug 1795894 - Enable triggering Feature Callouts in chrome by content location r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D160503
2022-11-10 21:01:22 +00:00
Marian-Vasile Laza
4582bdf7cb Backed out changeset 2023e8659017 (bug 1795894) for causing multiple bc failures on featureCallout.mjs. CLOSED TREE 2022-11-10 21:42:43 +02:00
Tim Giles
9c31a0c2b4 Bug 1794435 - Fix intermittent tab pickup test. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D161474
2022-11-10 19:18:25 +00:00
Meg Viar
ed1f5ee2a9 Bug 1795894 - Enable triggering Feature Callouts in chrome by content location r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D160503
2022-11-10 18:47:04 +00:00
Meg Viar
94b9dcae12 Bug 1797963 - Only count feature callout message impressions and don't allow load config to be called again until first call resolves r=Mardak,hanna_a
Differential Revision: https://phabricator.services.mozilla.com/D161073
2022-11-08 17:03:24 +00:00
Katherine Patenio
17a4ba821d Bug 1794624: add test for drop and drag fix for RTL builds after opening FxView tab r=dao
Differential Revision: https://phabricator.services.mozilla.com/D158888
2022-11-07 18:34:20 +00:00
Bernard Igiri
4b27d1890a Bug 1785272 - Fix Fx View Button VO Announcement r=Gijs
Changed the aria role from tab to button to fix the VO announcement so that it correctly reports when the Fx View tab is actually selected.

Differential Revision: https://phabricator.services.mozilla.com/D159887
2022-11-07 07:07:20 +00:00
Tim Giles
4d7e252046 Bug 1792505 - Move test_keyboard_accessibility into separate a11y file. r=sfoster
This commit moves the test_keyboard_accessibility task into the
firefoxview_accessibility test file.
Additionally, a shared variable and a cleanup function are moved to
head.js.
The cleanup function is renamed for clarity.

Differential Revision: https://phabricator.services.mozilla.com/D160961
2022-11-04 14:55:16 +00:00
Tim Giles
994ec689ac Bug 1792505 - Clean up duplicated variables in recently closed tests. r=sfoster
This commit moves some duplicated variables and functions
into the head.js file.

Differential Revision: https://phabricator.services.mozilla.com/D160959
2022-11-04 14:55:15 +00:00
Tim Giles
d54ecc3525 Bug 1792505 - Move browser_feature_callout_resize a11y test to separate file. r=sfoster
This commit moves the "feature_callout_is_accessible" task to the
"browser_firefoxview_feature_callout_a11y" test.
This change required some additional refactoring as well, moving some
shared selectors and functions to head.js.
The waitForCalloutScreen function was refactored to take full string IDs
as there were multiple implementations of this function that conflicted
with each other.
This waitForCalloutScreen change also caused these tests to use an
explicit ID such as "FEATURE_CALLOUT_1" or
"FIREFOX_VIEW_COLORWAYS_REMINDER".

Differential Revision: https://phabricator.services.mozilla.com/D160957
2022-11-04 14:55:15 +00:00
Tim Giles
454e12c6ed Bug 1792505 - Move browser_setup_state a11y test to separate file. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D160956
2022-11-04 14:55:14 +00:00
Bernard Igiri
511d17c548 Bug 1790971 - Prevent Firefox View Tab from being autoselected on tab closing r=dao
Prevent pinned Firefox View Tab from being autoselected on tab closing.

Differential Revision: https://phabricator.services.mozilla.com/D161218
2022-11-04 13:35:13 +00:00
yozhangmozilla
4cb5b243e0 Bug 1790133 Adjust Feature Callout Container vertical positioning depending on target's height r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D158170
2022-11-03 16:08:40 +00:00
Sarah Clements
12a28bcf6b Bug 1798692 - Fix timestamp used in Tab Pickup list r=sfoster
* Remove multiplication of lastUsed by 1000 due to changes in bug 1791851

Differential Revision: https://phabricator.services.mozilla.com/D161039
2022-11-03 11:28:27 +00:00
Jason Prickett
b79b303d74 Bug 1794651 - Adding custom position override to feature callout r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D159556
2022-11-02 17:32:08 +00:00
Kelly Cochrane
68b7ec47c7 Bug 1793088 - Make first available tab focusable when Fx View is open r=dao
Differential Revision: https://phabricator.services.mozilla.com/D159766
2022-11-01 15:45:45 +00:00
Tim Giles
a5a829f7ec Bug 1789875 - Move recently closed keyboard test to separate file. r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D160539
2022-10-31 13:54:33 +00:00
Tim Giles
66cd4e5a23 Bug 1789875 - Allow restoring recently closed tabs with Space bar. r=sclements,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D160538
2022-10-31 13:54:33 +00:00
Tim Giles
ab61c86b6a Bug 1789875 - Add list style keyboard navigation for synced tabs list. r=sclements,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D158152
2022-10-31 13:54:32 +00:00
Tim Giles
3a7d010064 Bug 1789875 - Add list style keyboard navigation to the recently closed list. r=sclements,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D158151
2022-10-31 13:54:32 +00:00
Sebastian Hengst
c602098f04 Bug 1794435 - disable browser/components/firefoxview/tests/browser/browser_tab_pickup_list.js on Linux debug r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D160647
2022-10-28 14:11:23 +00:00
William Durand
646444ad1e Bug 1797050 - Part 4 - Use browser_specific_settings instead of applications in remaining tests. r=rpl,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160060
2022-10-28 09:53:10 +00:00
Gijs Kruitbosch
6f5d442adc Bug 1797540 - Firefox View should send telemetry for 0 tabs as well, r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D160426
2022-10-27 11:06:49 +00:00
Sandor Molnar
9fbee3a9f1 Backed out changeset 53ce60b1b515 (bug 1797050) for causing bc failures in browser/components/preferences/tests/browser_extension_controlled.js CLOSED TREE 2022-10-26 15:01:23 +03:00
William Durand
00c4a3becb Bug 1797050 - Part 4 - Use browser_specific_settings instead of applications in remaining tests. r=rpl,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160060
2022-10-26 11:15:12 +00:00
Sammy Khamis
0c4a2fad3b Bug 1791851 - replace desktop tabs with the rust tabs engine r=teshaq,LougeniaBailey,markh,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D157981
2022-10-25 20:03:23 +00:00
negin
c9abcc5baf Bug 1790382 - Update Firefox View Feature Callout so that screenreaders read expected content in the proper order r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D159762
2022-10-25 16:14:06 +00:00
Hanna Jones
bc09027cd8 Bug 1791474 - show more specific message for locked primary password error r=sfoster,fluent-reviewers
* Updated the error message to use the text [here](https://www.figma.com/file/SE4xHgOW84yLiv7vFugm9R/Firefox-View-Stepping-Stone)
* Updated the existing password test to verify the message contents

Differential Revision: https://phabricator.services.mozilla.com/D159787
2022-10-24 18:29:53 +00:00
Marian-Vasile Laza
22a37b6925 Backed out changeset caddc49839d3 (bug 1793088) for causing bc failures on browser_firefoxview_tab.js. CLOSED TREE 2022-10-24 17:49:47 +03:00
Kelly Cochrane
3305772c50 Bug 1793088 - Make first available tab focusable when Fx View is open r=dao
Differential Revision: https://phabricator.services.mozilla.com/D159766
2022-10-24 12:32:44 +00:00
Niklas Baumgardner
c19d5f3962 Bug 1785734 - Add test for keyboard focus in Firefox View. r=sfoster,ayeddi,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D155253
2022-10-20 18:57:30 +00:00
Noemi Erli
55e26cd909 Backed out changeset 0a1431ca8979 (bug 1793088) for causing failures browser_firefoxview_tab.js CLOSED TREE 2022-10-20 18:53:41 +03:00
Kelly Cochrane
1c701caf06 Bug 1793088 - Make first available tab focusable when Fx View is open r=dao
Differential Revision: https://phabricator.services.mozilla.com/D159766
2022-10-20 14:43:31 +00:00
Gijs Kruitbosch
49893169f5 Bug 1787980 - add a pref for the firefox view tab notification dot and disable it by default, r=niklas
I opted to add a pref and effectively disable things by default rather than
just removing everything, because it seems likely we'll want to re-introduce
this in some form at some point soon, plus this is a much smaller change to
uplift and keeps the test coverage for now, too.

Differential Revision: https://phabricator.services.mozilla.com/D159707
2022-10-19 19:35:57 +00:00
Shane Hughes
7a6dea3750 Bug 1787532 - Let Feature Callouts perform actions on page events. r=mviar
Add a new module and feature callout functions to support messages
performing actions when a specified event is dispatched from the
content. This will allow Feature Callout messages to be dismissed when a
button is clicked within the page in which they are rendered. A screen
just needs to provide a `page_event_listeners` property, which is an
array of objects, each containing event listener parameters (event type,
target selector, and optional parameters) and an action specification
like those already used for buttons. The event listener will be added to
all elements matching the selector, so multiple different buttons could
dismiss or advance the message, if necessary. The new screen property
has this form:
```
page_event_listeners: [
  {
    params: {
      type: string,
      selectors: string,
      options?: {
        capture?: boolean,
        once?: boolean,
        preventDefault?: boolean,
      },
    },
    action: {
      type?: string,
      data?: object,
      dismiss?: boolean,
      etc...
    },
  },
]
```

Differential Revision: https://phabricator.services.mozilla.com/D158899
2022-10-18 14:29:27 +00:00
Sam Foster
0d9a297863 Bug 1795752 - Use fx-view rather than firefoxview as the entry point param for FxA signin/signup. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D159528
2022-10-18 00:22:26 +00:00
Tim Giles
9fa180f7e9 Bug 1794474 - Force tabs sync when a user reloads Firefox View. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D159401
2022-10-17 18:39:27 +00:00
negin
c8bf42e95d Bug 1792667 - The “Tab Pickup” callout message points to another section when the “Tab Pickup” section is collapsed r=mviar,emcminn
try: https://hg.mozilla.org/try/rev/92340ece620dd2d64e2f2c9826a4f6d9a387acc6

Differential Revision: https://phabricator.services.mozilla.com/D158699
2022-10-17 15:18:39 +00:00
hanna alemu
34fd1f0af1 Bug 1794592 - Investigate use of message property in Fx view messages/ remove if not used r=mviar
The "message" property of the pref "browser.firefox-view.feature-tour" seems to have no actual use, and only one value of "FIREFOX_VIEW_FEATURE_TOUR". We can remove it to reduce complexity.

Differential Revision: https://phabricator.services.mozilla.com/D159131
2022-10-13 19:41:01 +00:00
Bernard Igiri
24a6b79c9b Bug 1784323 - Prevent hidden Firefox View tab from triggering the closing multiple tabs warning r=dao,Gijs
Updated the tab closing prompt logic to use the number of visible tabs open to determine if the prompt should show.

Differential Revision: https://phabricator.services.mozilla.com/D157965
2022-10-13 16:39:41 +00:00