Commit graph

707 commits

Author SHA1 Message Date
Nikki Sharpley
17d1423a14 Bug 1836474 - added tests for the fxview-category-navigation component r=fxview-reviewers,kcochrane,sfoster
The new side component `fxview-category-navigation` required tests after being implemented in [[https://bugzilla.mozilla.org/show_bug.cgi?id=1832668 | Bug 1832668]]
- added tests to verify clicking each `fxview-category-button` navigates to the correct view/page
- added tests to verify keyboard navigation to each `fxview-category-button` navigates to the correct view/page
- added tests to verify direct navigation updates the category from the hash accordibly

Differential Revision: https://phabricator.services.mozilla.com/D193579
2023-11-24 21:11:53 +00:00
Sam Foster
2cd97ee94c Bug 1863783 - Ensure fxview page content only listens/observes and renders updates when visible. r=fxview-reviewers,sclements,jsudiaman
* Add a type=page to the top-level ViewPage instances
* Rename viewTabVisibleCallback and viewTabHiddenCallback to view*Callback and call each when selectedness or visiblity changes
* Ensure active view/pages are always properly initialized during page load and category switching
* Add a test to verify no mutations happen when tabs change while firefox view is inactive
* Fix tests to better account for loading and readiness sequence when activating firefox view

Differential Revision: https://phabricator.services.mozilla.com/D193744
2023-11-23 07:57:33 +00:00
Jonathan Sudiaman
fd64955080 Bug 1859829 - Add search to recently closed tabs r=fxview-reviewers,fluent-reviewers,bolsson,sclements
Linear search through the list of recently closed tabs, and some light refactoring for the sake of upcoming search enhancements.

Differential Revision: https://phabricator.services.mozilla.com/D193692
2023-11-21 18:01:05 +00:00
Nikki Sharpley
24f6d90750 Bug 1861527 - On change of category, scroll to the top of the page r=fxview-reviewers,kcochrane
- added `window.scrollTo(0, 0)` to `change-category` event listener callback

Differential Revision: https://phabricator.services.mozilla.com/D193969
2023-11-21 12:12:34 +00:00
Nikki Sharpley
8f16768aba Bug 1854605 - Remove drop shadows from empty states r=sclements,fxview-reviewers
As per bug report, added an empty state flag to the relevant card containers.

{F5609867}

Differential Revision: https://phabricator.services.mozilla.com/D193094
2023-11-13 14:55:53 +00:00
Nikki Sharpley
a016cd65d5 Bug 1849558 Fix Firefox View navigation focus ring visibility r=fxview-reviewers,sfoster
Use the --in-content-focus-outline-inset variable to fix the outline offset on the navigation items

Differential Revision: https://phabricator.services.mozilla.com/D193108
2023-11-09 23:45:32 +00:00
Jonathan Sudiaman
3645ff1757 Bug 1826328 - Add search capability to view in history r=fxview-reviewers,places-reviewers,fluent-reviewers,flod,mak,sclements
Leverages `AUTOCOMPLETE_MATCH` in order to add search functionality to Fx View History.

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

Differential Revision: https://phabricator.services.mozilla.com/D190844
2023-11-08 02:17:13 +00:00
hanna alemu
6229b6aba7 Bug 1860892 - Remove Firefox View CFR message r=fxview-reviewers,omc-reviewers,aminomancer,sclements
Differential Revision: https://phabricator.services.mozilla.com/D192374
2023-11-07 18:09:39 +00:00
Sam Foster
8432b2e96d Bug 1862798 - Move the copyLink implementation to firefoxview/helpers.mjs r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D192640
2023-11-07 00:07:38 +00:00
Mark Banner
a505a80fe2 Bug 1861865 - Fix ESLint valid-jsdoc issues in Firefox view code. r=sclements,fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D192155
2023-11-01 17:20:38 +00:00
Kelly Cochrane
0823f19583 Bug 1861705 - Update Firefox View tests to ensure tab items have fully rendered before continuing r=sfoster,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D192092
2023-10-27 20:35:34 +00:00
Logan Rosen
ba0d5e580e Bug 1860931 - fix bug in fxview-tab-list.mjs r=fxview-reviewers,sclements
There are two equals signs when there should be just one. This was made more obvious after applying Prettier v3's auto formatting.

Differential Revision: https://phabricator.services.mozilla.com/D190411
2023-10-25 09:41:31 +00:00
Anna Yeddi
bcf5ee5295 Bug 1860643 - Disable a11y_check for two mouse-specific test cases on .brand-logo in Firefox View. r=kcochrane,Jamie,fxview-reviewers
There are 2 failing test cases for the `div`/`img` with class name `brand-logo` that appear to test not user-facing behavior: the test cases are sending clicks to brand-logo as a container. This test target appears to be to confirm the feature tour pref change after a custom FEATURE_CALLOUT messages are dismissed by these clicks on a non-actionable element, while there are other ways to dismiss/pass the tour messages that are accessible.

This is not expected or does not have to be done by a user of an assistive technology and it does not have to confirm the accessibility of this element.

Thus, we are excluding these click events from accessibility checks and removing the `fail-if` annotation from the test manifest that was added by bug 1854625 and meta bug 1858037 before the investigation in the meta bug 1854233.

Differential Revision: https://phabricator.services.mozilla.com/D191686
2023-10-24 16:30:55 +00:00
Anna Yeddi
6849b4577f Bug 1858041 - Temporarily skip of fail-if some Tier 2 a11y_checks failing or crashing on Autoland. r=Jamie,fxview-reviewers,ochameau,devtools-reviewers,places-reviewers,mixedpuppy
There are some a11y_checks that are intermittently failing on Autoland and pass on Try and vice versa. Also, a couple of tests are crashing while performing a11y_checks, thus they are to be skipped while we continue the investigation into each of them.

Related bugs:
- Fail-if tests: meta bug 1848402
- Explore capturing click events for a11y_checks: bug 1692110

Differential Revision: https://phabricator.services.mozilla.com/D190890
2023-10-17 18:00:05 +00:00
Kelly Cochrane
d7be52313a Bug 1854603 - Truncate domains to one line for list items in Firefox View r=desktop-theme-reviewers,fxview-reviewers,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D190822
2023-10-16 16:12:26 +00:00
Mike Kaply
ce74e44531 Bug 1858403 - Remove extraneous character. r=kcochrane,fxview-reviewers DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D190735
2023-10-12 15:56:06 +00:00
Sam Foster
ce30877412 Bug 1857118 - Avoid rendering tab lists and stop the interval timer when not visible. r=jsudiaman,fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D190242
2023-10-11 17:52:03 +00:00
Sam Foster
dcab5f4cb1 Bug 1841797 - Port the opentabs-view tests over to a browser-chrome mochitest. r=jsudiaman,fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D190518
2023-10-11 17:52:03 +00:00
Sandor Molnar
bbd31940fd Backed out 2 changesets (bug 1857118, bug 1841797) for causing bc failures on browser/components/firefoxview/tests/browser/firefoxview-next/browser_opentabs_recency_next.js
Backed out changeset 08d1791bf44b (bug 1857118)
Backed out changeset 444f6de78b7e (bug 1841797)
2023-10-11 09:31:47 +03:00
Sam Foster
63d2d8af99 Bug 1857118 - Avoid rendering tab lists and stop the interval timer when not visible. r=jsudiaman,fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D190242
2023-10-10 21:59:46 +00:00
Sam Foster
83d3011099 Bug 1841797 - Port the opentabs-view tests over to a browser-chrome mochitest. r=jsudiaman,fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D190518
2023-10-10 21:59:45 +00:00
Jonathan Sudiaman
cd02e39d66 Bug 1851197 - Add more context for telemetry when selecting options in the context menu when right clicking a tab in Firefox View r=fxview-reviewers,Gijs,sclements
Adds an additional event under the `firefoxview_next` category whenever a link is opened in a new tab, window, etc.

Not being able to access the "trigger node" is a somewhat limiting factor. I raised [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1855743 | Bug 1855743 ]] to address this. Because of this, I could not exactly capture "what type of tab data you're dealing with (Recently closed tabs, Open tabs, Synced tabs, etc)". So I opted to capture the page hash instead as a workaround.

Differential Revision: https://phabricator.services.mozilla.com/D189520
2023-10-10 19:07:57 +00:00
Anna Yeddi
5bdafed82b Bug 1854625 - Temporarily fail-if some Tier 2 a11y_checks for Firefox View. r=fxview-reviewers,kcochrane
We are working on [enabling Tier 2 a11y-checks to ensure our products have basic accessibility built-in (bug 1692110)](https://bugzilla.mozilla.org/show_bug.cgi?id=1692110) and before that, we need to prepare the existing code base. While we triage and investigate existent tests that would fail once the a11y-checks are enabled in the CI, we are going to fail-if the failing tests altogether and then handle each one of them individually.

This task is to add `fail-if` condition of the failing tests while we continue investigation into the reasons these tests failed and to be able to backtrack these tests once they're resolved.

Related bugs:
- Disabling tests: meta bug 1848402
- Investigation and remediation for components with disabled tests: meta bugs 1848394 and 1854227, Firefox View-specific meta bug 1854626
- Explore capturing click events for a11y_checks: bug 1692110

Depends on D188927

Differential Revision: https://phabricator.services.mozilla.com/D188990
2023-10-09 18:20:21 +00:00
Norisz Fay
a7813860d4 Backed out changeset 9dfc3bfb7943 (bug 1857118) for causing mochitest failures on test_opentabs.html 2023-10-09 20:23:18 +03:00
Sam Foster
3a6a37c59a Bug 1857118 - Avoid rendering tab lists and stop the interval timer when not visible. r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D190242
2023-10-09 13:44:04 +00:00
Cristian Tuns
6b9650b822 Backed out 30 changesets (bug 1854447, bug 1855491, bug 1854646, bug 1854520, bug 1854528, bug 1854506, bug 1854502, bug 1854443, bug 1854538, bug 1854525, bug 1854660, bug 1854514, bug 1854460, bug 1854625, bug 1854228, bug 1854517, bug 1854533, bug 1692110, bug 1854636, bug 1849021, bug 1854512, bug 1854522, bug 1854509, bug 1854452, bug 1854536, bug 1854531) for causing multiple tier 2 failures on a11y-checks. CLOSED TREE
Backed out changeset 5714b7239b70 (bug 1849021)
Backed out changeset 91e5d7de3484 (bug 1849021)
Backed out changeset cc3142b909f6 (bug 1854660)
Backed out changeset 76d2a8ae9c19 (bug 1854646)
Backed out changeset 36460a147684 (bug 1854636)
Backed out changeset c7529a962a8c (bug 1854625)
Backed out changeset 791f9b03ea96 (bug 1854538)
Backed out changeset bd3f3cb434a5 (bug 1854536)
Backed out changeset 16f4f5bdcaa7 (bug 1855491)
Backed out changeset 6258bab20196 (bug 1854533)
Backed out changeset 29dca16eee2e (bug 1854531)
Backed out changeset 3a69d2c3f562 (bug 1854528)
Backed out changeset 0c63a9ea8b34 (bug 1854525)
Backed out changeset 5795bb6187a5 (bug 1854522)
Backed out changeset 7d4a123a432f (bug 1854520)
Backed out changeset ec95287bd702 (bug 1854517)
Backed out changeset 9914c1481f0d (bug 1854514)
Backed out changeset 25d85e656905 (bug 1854512)
Backed out changeset 828657f2ab73 (bug 1854509)
Backed out changeset 9d8b2e14c375 (bug 1854506)
Backed out changeset 1b3ee1e46e12 (bug 1854502)
Backed out changeset 37c2ec0851dc (bug 1854460)
Backed out changeset c2a60a8fc2d3 (bug 1854452)
Backed out changeset 744a163f2bd1 (bug 1854447)
Backed out changeset 1a9629dae7d5 (bug 1854443)
Backed out changeset c3d5c1ba2a84 (bug 1854228)
Backed out changeset dcd05518b004 (bug 1692110)
Backed out changeset 1c65a4cb618c (bug 1692110)
Backed out changeset 603b891147bd (bug 1692110)
Backed out changeset 53e2fac79d84 (bug 1692110)
2023-10-07 14:43:05 -04:00
Anna Yeddi
83a1d27929 Bug 1854625 - Temporarily disable some Tier 2 a11y_checks for Firefox View. r=fxview-reviewers,kcochrane
We are working on [enabling Tier 2 a11y-checks to ensure our products have basic accessibility built-in (bug 1692110)](https://bugzilla.mozilla.org/show_bug.cgi?id=1692110) and before that, we need to prepare the existing code base. While we triage and investigate existent tests that would fail once the a11y-checks are enabled in the CI, we are going to skip the failing tests altogether and then handle each one of them individually.

This task is to skip with `fail-if` condition of the failing tests while we continue investigation into the reasons these tests failed and to be able to backtrack these tests once they're resolved.

Related bugs:
- Disabling tests: meta bug 1848402
- Investigation and remediation for components with disabled tests: meta bugs 1848394 and 1854227, Firefox View-specific meta bug 1854626
- Explore capturing click events for a11y_checks: bug 1692110

Differential Revision: https://phabricator.services.mozilla.com/D188990
2023-10-06 18:11:39 +00:00
Sam Foster
6e6ac6197e Bug 1852622 - Track a lastSetActive property on each tab and use that when sorting open tabs for recency in firefox view. r=jsudiaman,Gijs,fxview-reviewers,tabbrowser-reviewers,mak,sclements
Differential Revision: https://phabricator.services.mozilla.com/D189444
2023-10-05 23:44:57 +00:00
Sam Foster
3d1fa88e86 Bug 1852622 - Add a test-only firefoxview-entered notification, and modify the test helpers to use it. r=sclements,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189443
2023-10-05 23:44:56 +00:00
Mark Banner
7b16815000 Bug 1854785 - Convert AboutWelcomeChild/AboutWelcomeParent to ES modules. r=amy,fxview-reviewers,sclements
Depends on D189045

Differential Revision: https://phabricator.services.mozilla.com/D189047
2023-10-05 09:43:29 +00:00
Kelly Cochrane
6b1aed3e54 Bug 1855532 - Define page background-color variable for HCM in Firefox View r=sfoster,desktop-theme-reviewers,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189839
2023-10-03 15:44:59 +00:00
Kelly Cochrane
786fd316d9 Bug 1855996 - Fix vertical alignment of h1 in fxview-category-navigation r=sfoster,desktop-theme-reviewers,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189826
2023-10-03 13:00:20 +00:00
Sylvestre Ledru
4c29c24344 Bug 1856530 - run file-whitespace on toml files r=linter-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D189896
2023-10-03 09:22:18 +00:00
Kelly Cochrane
15d4f61222 Bug 1854604 - Fix visible margin-inline-end on fxview-category-navigation in HCM on Windows r=sfoster,desktop-theme-reviewers,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189563
2023-10-02 13:40:13 +00:00
Kelly Cochrane
9a6092b559 Bug 1852989 - Add telemetry probe for Firefox View tab clicks r=sclements,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D188854
2023-09-29 18:49:12 +00:00
Kelly Cochrane
2e1621b77a Bug 1854997 - Record 'page' extra key for synced_tabs telemetry probe in Firefox View r=jsudiaman,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D189176
2023-09-28 17:39:23 +00:00
Sandor Molnar
067ffdbbc7 Backed out changeset 3220838c5990 (bug 1852989) for causing bc failures on browser/components/firefoxview/tests/browser/browser_recently_closed_tabs.js CLOSED TREE 2023-09-28 21:11:30 +03:00
Kelly Cochrane
b81d391f3f Bug 1852989 - Add telemetry probe for Firefox View tab clicks r=sclements,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D188854
2023-09-28 13:36:16 +00:00
Mark Striemer
e4b8f25d32 Bug 1852350 - Let scrolls on sidebar scroll main content in fxview-next r=fxview-reviewers,desktop-theme-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D187819
2023-09-27 15:22:47 +00:00
Sarah Clements
746e764f2c Bug 1833669 - Add telemetry for open tabs r=fxview-reviewers,kcochrane
* Add events to new context menu items and open tab clicks

Differential Revision: https://phabricator.services.mozilla.com/D188962
2023-09-26 12:40:46 +00:00
Jules Simplicio
cf45a952a0 Bug 1854930 - Apply heading large styles to Firefox View's h2 r=sclements,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189147
2023-09-25 19:48:16 +00:00
Kelly Cochrane
5f4040f3b7 Bug 1852148 - Switch Open Tabs card layout to 2 columns on narrow viewports in Firefox View r=jsudiaman,desktop-theme-reviewers,fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D188876
2023-09-23 16:36:31 +00:00
Cristian Tuns
36a0e62e44 Backed out changeset f6ecdc6c2215 (bug 1852148) for causing mochitest failures in test_opentabs.html CLOSED TREE 2023-09-22 21:11:50 -04:00
Kelly Cochrane
ba0fca5c2e Bug 1852148 - Switch Open Tabs card layout to 2 columns on narrow viewports in Firefox View r=jsudiaman,desktop-theme-reviewers,fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D188876
2023-09-22 22:50:07 +00:00
Kelly Cochrane
51bd0826d5 Bug 1833674 - Add Telemetry for History in Firefox View r=jsudiaman,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D188628
2023-09-22 15:26:38 +00:00
Tom Marble
d596ebea8e Bug 1853243 - convert .ini manifests to .toml: batch 5 browser/**/browser.ini r=jmaher,mossop,webcompat-reviewers,twisniewski,search-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D188427
2023-09-21 22:47:07 +00:00
Sarah Clements
24889f6a8c Bug 1845333 - Add submenu items to open tabs more menu r=mstriemer,fxview-reviewers,fluent-reviewers,desktop-theme-reviewers,reusable-components-reviewers,sfoster,flod,tgiles
* Modify panel-list and panel-item to support submenu list items
* Add submenu items for Move Tabs and Send Tabs to Devices to open tabs
* Add test coverage for submenu items in open tabs

Differential Revision: https://phabricator.services.mozilla.com/D186471
2023-09-21 07:31:44 +00:00
Jonathan Sudiaman
31120cda00 Bug 1833671 - Add Telemetry for Tabs from Other Devices r=kcochrane,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D188670
2023-09-20 20:59:21 +00:00
Iulian Moraru
a1c7cd6b4c Backed out changeset 0769835cb15d (bug 1833674) for causing bc failures on browser_history_firefoxview_next.js. CLOSED TREE 2023-09-20 23:56:40 +03:00
Kelly Cochrane
4c5476f29b Bug 1833674 - Add Telemetry for History in Firefox View r=jsudiaman,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D188628
2023-09-20 18:37:48 +00:00