Commit Graph

315 Commits

Author SHA1 Message Date
Sam Foster
030d364ae0 Bug 1784979 - Move some firefoxview test helpers to a shareable module. r=sclements,aminomancer
* Create a sharable module for the core Firefox-View test helpers
* Adjust firefoxview's tests (head.js) to use the helper module
* Adjust messaging-system tests to use the helper module  where these helpers were temporarily duplicated
* Adjust newtab tests to use the helper module

Differential Revision: https://phabricator.services.mozilla.com/D167589
2023-01-24 22:40:44 +00:00
Kelly Cochrane
9e73c55f7b Bug 1792017 - Prevent ability to multiselect hidden tabs such as Fx View r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D167306
2023-01-23 14:44:23 +00:00
Meg Viar
04e1d3b419 Bug 1806425 - Make value of source in Feature Callout and page in its telementry more consistent r=jprickett,aminomancer
Unify the values of "source" and "page" as used in FeatureCallout.sys.mjs:
- Explicitly pass in a value for "page" when instantiating a Feature Callout and use this for the value of "page" when sending Feature Callout telemetry and as the "source" when making calls to `sendTriggerMessage`. This avoids the risk of including non-about: page URLs or PDF file extensions in our telemetry.
- Set the value of "page" in an HTML data attribute that can be accessed for use in about:welcome telemetry for Spotlight and Feature Callouts.
- Update references to the page value previously used as the page/source for telemetry from `about:firefoxview` Feature Callouts from "firefoxview"  to "about:firefoxview"
- Pass the token "chrome" when creating a callout from the browser chrome and update references to the source in PDF.js messages' targeting
- Update the page value expected in automated tests as needed

Differential Revision: https://phabricator.services.mozilla.com/D165910
2023-01-20 16:53:30 +00:00
Kelly Cochrane
522db5de48 Bug 1796409 - Don't display synced tabs with duplicate URLs unless it's the most recently accessed instance r=sclements,markh
Differential Revision: https://phabricator.services.mozilla.com/D166579
2023-01-20 16:37:14 +00:00
Gijs Kruitbosch
5a903703c5 Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - browser - r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D167153
2023-01-19 20:16:42 +00:00
Shane Hughes
8c9da4944a Bug 1810653 - Update feature callout position tests. r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D166979
2023-01-18 11:22:19 +00:00
Cosmin Sabou
bff0bdcee9 Bug 1784343 - disable browser_feature_callout_position and browser_firefoxview_feature_callout_a11y because of permafailures. a=test-only 2023-01-17 04:55:57 +02:00
Kelly Cochrane
7fdda39974 Bug 1804244 - Remove existing tabs in Recently Closed tabs list in Fx View if not found in latest closed tabs data r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D166208
2023-01-12 20:20:55 +00:00
Norisz Fay
6a7b899764 Backed out changeset 2acf2ea39486 (bug 1804244) for causing failures on browser_recently_closed_tabs.js CLOSED TREE 2023-01-12 21:17:15 +02:00
Kelly Cochrane
89fd2e6fb8 Bug 1804244 - Remove existing tabs in Recently Closed tabs list in Fx View if not found in latest closed tabs data r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D166208
2023-01-12 18:35:15 +00:00
Meg Viar
58cfaea214 Bug 1807850 - Firefox View feature reminder messages should not show within 24 hours of skipping feature tour r=aminomancer
Depends on D164824

Differential Revision: https://phabricator.services.mozilla.com/D165629
2022-12-30 20:41:44 +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
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
Sam Foster
e4876baab3 Bug 1805391 - Ensure support links get their hrefs populated. r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D164926
2022-12-19 10:42:57 +00:00
Bernard Igiri
412503fb9c Bug 1799393 - Prevent hidden Fx View tab from triggering the closing multiple tabs warning in Windows and Linux r=Gijs
Updated the tab closing prompt logic to use the number of visible tabs open to determine if the prompt should show in Windows and Linux.

Differential Revision: https://phabricator.services.mozilla.com/D162627
2022-12-13 14:27:17 +00:00
Sam Foster
1cf1592081 Bug 1803505 - Simplify the tab-pickup-container initialization. r=sclements
* Adds a promise that resolves when the tab-pickup-list is ready
* Use that promise to trigger tab data request for the list when we enter the setup-complete state
* Remove the workarounds for overlapping setup and tabs requests

Differential Revision: https://phabricator.services.mozilla.com/D163750
2022-12-07 16:42:19 +00:00
Kelly Cochrane
60c2e8256e Bug 1804099 - Add new telemetry event for recording tab dismissal from Recently Closed tabs in Fx View r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D163878
2022-12-07 15:05:13 +00:00
Shane Hughes
3e873bc26b Bug 1803983 - Refactor feature callout code. r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D163798
2022-12-06 16:04:28 +00:00
Gijs Kruitbosch
965c6e86fc Bug 1803158 - convert session restore consumers to reference the sys.mjs files instead, r=webdriver-reviewers,perftest-reviewers,extension-reviewers,credential-management-reviewers,Standard8,sgalich,whimboo,sparky,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D163350
2022-12-06 16:02:03 +00:00
Sarah Clements
83cc18d749 Bug 1794610 - Change error state for password change r=sfoster,kcochrane,fluent-reviewers,flod
* Add new strings and add a new signed-out error type
* Update tests

Differential Revision: https://phabricator.services.mozilla.com/D162275
2022-12-06 14:30:39 +00:00
Shane Hughes
96765efb25 Bug 1799195 - Adjust feature callout resize test window sizes. r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D163797
2022-12-05 15:38:55 +00:00
Greg Tatum
b9cd5fa6a0 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-12-01 21:40:57 +00:00
Shane Hughes
db26095c40 Bug 1795288 - Feature Callouts: add dismiss telemetry. r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D163531
2022-12-01 16:42:18 +00:00
Hanna Jones
c238132e26 Bug 1788800 - run colorways card tests in the same window take two r=sfoster
This patch completes what I tried to do in D162617. Poking around at this again I realized (embarassingly) that I forgot to change one test to run in the same window, and it was the test that failed consistently on try when run in isolation.

Based on the profile Florian helped me look at it seemed like we had a window leak and were possibly still trying to run animations in a window that had been closed. It  feels plausible that going back to what we were doing before my initial change - running all the tests in the same window and only closing that window once they had all finished - might still be the fix for this intermittent.

Recent try push looked good: https://treeherder.mozilla.org/jobs?repo=try&revision=3836fc6ceeb2f9c522a2d2a0126f6bdc9aea1bb6&selectedTaskRun=arwidi8RROCcJkUY-hMg1g.0

Compared to running similar jobs without this one change: https://treeherder.mozilla.org/jobs?repo=try&revision=8c2345419537e5465104edfd29c270496db90cef

Differential Revision: https://phabricator.services.mozilla.com/D163476
2022-11-30 21:24:16 +00:00
Kelly Cochrane
bacaafe92b Bug 1787945 - Add dismiss functionality to recently closed tabs list items in Fx View r=ayeddi,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D161848
2022-11-30 16:24:15 +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
Meg Viar
5d6cd66915 Bug 1802918 - Update Firefox View Feature Callout tests to work after Colorways expire r=aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D163241
2022-11-29 15:43:49 +00:00
Shane Hughes
129615901b Bug 1799195 - Disable feature callout resize test. r=mviar
We can re-enable this test as part of bug 1795973 when the patch for
that is rebased and fully passing.

Differential Revision: https://phabricator.services.mozilla.com/D162446
2022-11-28 15:48:39 +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
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