Commit Graph

959 Commits

Author SHA1 Message Date
Nikki Sharpley
c4649017a7 Bug 1864534 - remove firefox-view-next pref and update about AboutRedirector r=fxview-reviewers,Gijs
- removes `about:firefoxview-next` route
- `about:firefoxview` now points to `firefoxview-next.html` (until we rename)
- remove pref for `browser.tabs.firefox-view-next`
- preserve pref for `browser.tabs.firefox-view-newIcon` as part of firefoxViewNext feature manifest (until experiment is over)
- whitelist unreferenced files in `browser_all_files_referenced.js` as they will be removed in child Bug 1869833

Differential Revision: https://phabricator.services.mozilla.com/D196093
2024-01-04 15:40:22 +00:00
Noemi Erli
7d4856299a Backed out changeset 6aab4af4cab8 (bug 1864534) for causing failures in browser_syncedtabs_firefoxview_next.js CLOSED TREE 2024-01-03 19:30:19 +02:00
Nikki Sharpley
c3ee3b9dcd Bug 1864534 - remove firefox-view-next pref and update about AboutRedirector r=fxview-reviewers,Gijs
- removes `about:firefoxview-next` route
- `about:firefoxview` now points to `firefoxview-next.html` (until we rename)
- remove pref for `browser.tabs.firefox-view-next`
- preserve pref for `browser.tabs.firefox-view-newIcon` as part of firefoxViewNext feature manifest (until experiment is over)
- whitelist unreferenced files in `browser_all_files_referenced.js` as they will be removed in child Bug 1869833

Differential Revision: https://phabricator.services.mozilla.com/D196093
2024-01-03 16:17:03 +00:00
Kelly Cochrane
9b59af3abc Bug 1872560 - Remove fail-if condition for Fx View history test r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D197538
2024-01-02 20:37:58 +00:00
Nikki Sharpley
fb5090e99d Bug 1869605 - Remove all legacy Firefox View related tests. r=sfoster,fxview-reviewers
This patch removes all tests covering the old Firefox View whilst preserving those that cover Next.
- Removed tests that have been replaced/amended for the new incarnation of View can be found in browser/components/firefoxview/tests/browser/firefoxview-next/.
- Test coverage that still requires porting over to the new incarnation is documented in bug 1869643.
- `browser_sma_open_firefoxview.js` also removed as referenced in meta bug 1850501.
- Skip feature callout tests as tests reference legacy view elements which are removed in bug 1869833. Feature callout to be removed in bug 1870296
- Remove `browser_sma_click_element.js` as tests reference legacy view elements which are removed in bug 1869833

Ideally this patch will be landed alongside patches that:
- update the view pref
- update the about redirector
- remove all legacy Firefox View files and assets

Differential Revision: https://phabricator.services.mozilla.com/D196080
2024-01-02 18:01:22 +00:00
Kelly Cochrane
2015711b58 Bug 1872560 - Fix calculation of date one month ago when current date is in January causing perma test failures r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D197516
2024-01-02 16:18:41 +00:00
Anna Yeddi
19d7ed1289 Bug 1867378 - Pt.2. Update the test manifest for FXVIEW-CATEGORY-BUTTON cases that are passing a11y-checks. r=fxview-reviewers,sclements
When the D195198 would be ready to land, there are a few tests that are going to be passing all a11y-checks or some of them, thus we need to update the manifest to remove `skip-if` notations when appropriate and update the comments in the remaining tests

Depends on D195198

Differential Revision: https://phabricator.services.mozilla.com/D195745
2024-01-02 15:13:26 +00:00
Jonathan Sudiaman
7e33046f35 Bug 1868776 - "Search recently closed tabs" placeholder text is cut off in the search box in Firefox View r=fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D196216
2024-01-02 14:56:54 +00:00
Cristian Tuns
5d2a443dc4 Bug 1872560 - Disable browser_history_firefoxview_next.js on all platforms.
Differential Revision: https://phabricator.services.mozilla.com/D197466
2024-01-01 00:57:12 +00:00
Anna Yeddi
5b057d0148 Bug 1872174 - Add programmatic role to Show All controls in Firefox View. r=fxview-reviewers,kcochrane
Several `show-all-link` controls lack interactive role - this would prevent users of speech-to-text/Voice Control from being able to send a click to it by calling its label and screen reader users and users of other assistive technology would not be able to get to this control via shortcuts like a list of controls, etc. Being focusable with keyboard does not guarantee that assistive technology could guess that this programmatically static text is, in fact, interactive.

While providing an explicit ARIA `role` to the element is going [against the First Rule of ARIA](https://www.w3.org/TR/using-aria/#rule1) while semantically appropriate HTML elements exist - `<a>` anchor (for the visual appearance of this control) or `<button>` (for the actual functionality that this control performs) - this patch would at least remove the barrier for assistive technology to be able to set interactivity expectations to this control appropriately.

No test manifests are being updated, because there are other elements in the updated test files that are failing a11y-checks, besides these `show-all-link` controls.

Differential Revision: https://phabricator.services.mozilla.com/D197349
2023-12-28 14:37:24 +00:00
Cosmin Sabou
5ca60a29c4 Backed out 2 changesets (bug 1869605, bug 1864534) for bc failures on browser_all_files_referenced.js.
Backed out changeset 576e61e3970b (bug 1864534)
Backed out changeset 05b09125b90b (bug 1869605)
2023-12-22 21:08:31 +02:00
Nikki Sharpley
cae4c89958 Bug 1864534 - remove firefox-view-next pref and update about AboutRedirector r=fxview-reviewers,Gijs
- removes about:firefoxview-next route
- about:firefoxview now points to firefoxview-next.html (until we rename)
- remove pref for browser.tabs.firefox-view-next
- preserve pref for browser.tabs.firefox-view-newIcon as part of firefoxViewNext feature manifest (until experiment is over)

Depends on D196080

Differential Revision: https://phabricator.services.mozilla.com/D196093
2023-12-22 17:57:50 +00:00
Nikki Sharpley
a6f7c300e5 Bug 1869605 - Remove all legacy Firefox View related tests. r=sfoster,fxview-reviewers
This patch removes all tests covering the old Firefox View whilst preserving those that cover Next.
- Removed tests that have been replaced/amended for the new incarnation of View can be found in browser/components/firefoxview/tests/browser/firefoxview-next/.
- Test coverage that still requires porting over to the new incarnation is documented in bug 1869643.
- `browser_sma_open_firefoxview.js` also removed as referenced in meta bug 1850501.

Ideally this patch will be landed alongside patches that:
- update the view pref
- update the about redirector
- remove all legacy Firefox View files and assets

Differential Revision: https://phabricator.services.mozilla.com/D196080
2023-12-22 17:57:49 +00:00
Natalia Csoregi
bf7cbfc17e Backed out changeset 8e11ea7d34e4 (bug 1868776) for causing failures on browser_firefoxview_paused.js. CLOSED TREE 2023-12-22 19:10:28 +02:00
Kelly Cochrane
beedd99590 Bug 1868847 - Debounce search in Fx View r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D196970
2023-12-22 16:48:56 +00:00
Jonathan Sudiaman
675b8cf666 Bug 1868776 - "Search recently closed tabs" placeholder text is cut off in the search box in Firefox View r=fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D196216
2023-12-22 16:33:33 +00:00
Cristian Tuns
2595ce3656 Backed out changeset 84f22b125d8b (bug 1868847) for causing bc failures in firefoxview-next/browser_syncedtabs_firefoxview_next.js CLOSED TREE 2023-12-21 16:39:51 -05:00
Kelly Cochrane
7681267c72 Bug 1868847 - Debounce search in Fx View r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D196970
2023-12-21 21:03:20 +00:00
Mark Banner
68e21879ac Bug 1862464 - Enable TypeScript style JSDoc definitions for jsdocs. r=mossop,webdriver-reviewers,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D196539
2023-12-21 14:00:32 +00:00
Cosmin Sabou
7edbd20a0e Backed out changeset 7b2ffe9a4d06 (bug 1869605) for causing bc failures on browser_notification_dot.js. CLOSED TREE 2023-12-20 18:20:50 +02:00
Nikki Sharpley
f312025292 Bug 1869605 - Remove all legacy Firefox View related tests. r=sfoster,fxview-reviewers
This patch removes all tests covering the old Firefox View whilst preserving those that cover Next.
- Removed tests that have been replaced/amended for the new incarnation of View can be found in browser/components/firefoxview/tests/browser/firefoxview-next/.
- Test coverage that still requires porting over to the new incarnation is documented in bug 1869643.
- `browser_sma_open_firefoxview.js` also removed as referenced in meta bug 1850501.

Ideally this patch will be landed alongside patches that:
- update the view pref
- update the about redirector
- remove all legacy Firefox View files and assets

Differential Revision: https://phabricator.services.mozilla.com/D196080
2023-12-20 15:20:57 +00:00
Kelly Cochrane
df687f08ae Bug 1868853 - Flip search and virtualizer prefs to true r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D196745
2023-12-19 21:11:49 +00:00
Jonathan Sudiaman
3e9e72a476 Bug 1868567 - Firefox View longer searched terms will overflow the message box r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D196357
2023-12-19 14:09:54 +00:00
Kelly Cochrane
02a25c8f6a Bug 1870141 - Only recalculate maxRenderCountEstimate in virtual-list if itemHeightEstimate is greater than 0 r=sclements,fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D196588
2023-12-18 16:46:55 +00:00
Kelly Cochrane
5caef610c9 Bug 1870224 - Ensure card-container visibility is updated when recently closed items are updated in Fx View r=sclements,fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D196557
2023-12-18 16:46:41 +00:00
Kelly Cochrane
63dcda04b9 Bug 1869532 - Recalculate virtual-list maxRenderCountEstimate on window resize r=fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D196231
2023-12-18 16:46:22 +00:00
Kelly Cochrane
107a7965a3 Bug 1869895 - Ensure synced tabs are reloaded after clearing a search on Recent Browsing in Fx View r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D196463
2023-12-14 19:21:11 +00:00
Anna Yeddi
82e42b8bd6 Bug 1868707 - Make Clear-icon control in the search field in Firefox View keyboard actionable. r=fxview-reviewers,kcochrane
Ensuring the `Enter` and `Space` keys are working to activate the Clear button in Firefox View and adding a few tests to prevent regressions.

Differential Revision: https://phabricator.services.mozilla.com/D196070
2023-12-12 21:55:03 +00:00
Kelly Cochrane
93848884bc Bug 1857634 - Pause updates and clear interval time in fxview-tab-list when containing cards are collapsed r=sfoster,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D194421
2023-12-12 21:50:56 +00:00
Noemi Erli
3e946ffda9 Backed out changeset c5f52ea7e7d0 (bug 1857634) for causing failures in test_fxview_tab_list.html 2023-12-12 22:39:33 +02:00
Kelly Cochrane
5870650e8d Bug 1857634 - Pause updates and clear interval time in fxview-tab-list when containing cards are collapsed r=sfoster,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D194421
2023-12-12 18:02:04 +00:00
Jonathan Sudiaman
007ee7e78c Bug 1867325 - Small UI updates to Search in Recently closed tabs and History r=fxview-reviewers,desktop-theme-reviewers,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D195893
2023-12-11 15:49:57 +00:00
Jonathan Sudiaman
030e6a6131 Bug 1867030 - Hardcode the value for limiting history search results r=fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D195894
2023-12-08 18:46:26 +00:00
Jonathan Sudiaman
0bb46ef02c Bug 1851447 - Add search for recent browsing r=fxview-reviewers,fluent-reviewers,flod,sclements,kcochrane
Slightly different from the previous search revisions. In this case, rather than having their own search boxes, the recent browsing components share a single search box located within the parent element. Thus, `fxview-search-textbox-query` event listeners are added/removed from the //parent// component rather than the components themselves.

Differential Revision: https://phabricator.services.mozilla.com/D195596
2023-12-08 15:56:08 +00:00
Kelly Cochrane
187108a7a7 Bug 1868443 - Update calculation for viewport height in Firefox View r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D195723
2023-12-07 13:54:25 +00:00
Anna Yeddi
932f6dd99d Bug 1868707 - Make Clear-icon control in the search field in Firefox View accessible. r=fxview-reviewers,sclements
Adding a role and including the implicit button in the logical focus order of the page.

Differential Revision: https://phabricator.services.mozilla.com/D195742
2023-12-07 11:50:08 +00:00
Sam Foster
64aa7a8980 Bug 1863642 - Move the open tabs context menu functionality to its own component. r=fxview-reviewers,sclements
* Create a new OpenTabsContextMenu to replace the inlined menu content in the open tabs template
* Fetch the devices list when the menu opens, rather than updating it in the background
* Add a getLogger to the helpers module to easily create named loggers

Differential Revision: https://phabricator.services.mozilla.com/D193138
2023-12-05 23:29:16 +00:00
Sarah Clements
c1ec906f3c Bug 1867773 - Set up triage rotation r=fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D195231
2023-12-05 10:46:24 +00:00
Anna Yeddi
45a064e6b8 Bug 1866598 - Temporary fail-if two Tier 2 a11y-checks for Firefox View side navigation. r=fxview-reviewers,sfoster
There are 2 tests that are related to the bug 1867170 changes to the AccessibilityUtils, and the general case of the `<fxview-category-button>` and other navigation sidebar-related focusability false-positive a11y-check fails. We are temporary add `skip-if` condition to these two failing tests while we continue working on the bug 1867378 work to fine-tune the AccessibilityUtils. The bug 1867378 patch would also include removing those temporary `skip-if`s from the Fx View manifest too.

Related Firefox View bugs:
- Disabling tests: meta bug 1854625
- Investigation and remediation for components with disabled tests: meta bugs 1854625 and 1858041
- Explore capturing click events for a11y_checks: bug 1692110

Differential Revision: https://phabricator.services.mozilla.com/D195461
2023-12-04 20:30:30 +00:00
Kelly Cochrane
c3711a4fb7 Bug 1859788 - Implement virtualizer to improve performance of history in Firefox View r=jsudiaman,fxview-reviewers,reusable-components-reviewers,hjones,sfoster,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D184581
2023-12-04 17:50:04 +00:00
Nikki Sharpley
04bac1a986 Bug 1864505 - Move "Connect another device" button to top of the page of "Tabs from other devices" r=desktop-theme-reviewers,fxview-reviewers,kcochrane
- Moved "footer" to within sticky container above cards and renamed to "header".
- Update "Connect another device" button to use the `.small-button` styling
- Conditionally display `Recently closed tabs` `h2` on the corresponding view only (an existing bug revealed in this patch)
- Update `.sticky-container` to reflect upcoming styling with the inclusion of search and other secondary headers.

Please see link to bug for screenshot of intended appearance.

Differential Revision: https://phabricator.services.mozilla.com/D193930
2023-12-04 17:16:29 +00:00
Jonathan Sudiaman
8c45bc42ac Bug 1831142 - Search all Open Tabs r=fxview-reviewers,fluent-reviewers,flod,sclements
Differential Revision: https://phabricator.services.mozilla.com/D194906
2023-12-01 06:26:44 +00:00
Cosmin Sabou
c4e9d6e90f Backed out changeset e1b32d718ed1 (bug 1859788) for high frequency failures on browser_firefoxview_next_general_telemetry.js. 2023-11-30 20:33:51 +02:00
Kelly Cochrane
844d64ea75 Bug 1859788 - Implement virtualizer to improve performance of history in Firefox View r=jsudiaman,fxview-reviewers,reusable-components-reviewers,hjones,sfoster,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D184581
2023-11-30 16:54:08 +00:00
Kelly Cochrane
cfe9853751 Bug 1833102 - Add search to Tabs from other devices page in Fx View r=jsudiaman,fluent-reviewers,fxview-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D195004
2023-11-30 14:46:41 +00:00
Nikki Sharpley
a58869bea7 Bug 1854599 - Fix Cards sub-headings and spacing to spec r=desktop-theme-reviewers,fxview-reviewers,kcochrane,jules,dao
- Increase vertical padding for card subheaders
- Updated device headers to font size 15px
- Decreased space between rows to 6px
- Fix vertical alightment of headers and rows
- Update device headers to fontweight 500

Differential Revision: https://phabricator.services.mozilla.com/D193848
2023-11-29 15:13:44 +00:00
Nikki Sharpley
1cc2cba0cd Bug 1860833 - optimize number of calls to getTabClient r=fxview-reviewers,sfoster
Amending the `getRecentTabs` function eliminates one of the duplicate calls to `getTabClients`. I opted for this approach as opposed
to getting tabs from clients or vice versa because that involved a larger refactor that ended up adding unnecessary noise to the
`getRecentTabs` and `getTabClients` return values. Combined with a patch by @sfoster, we have reduced the number of calls from 9 to 1.

Differential Revision: https://phabricator.services.mozilla.com/D194656
2023-11-29 14:40:39 +00:00
Norisz Fay
2de1da1790 Backed out changeset 3128a39910aa (bug 1860833) for causing bc failures on browser_opentabs_firefoxview_next.js, browser_feature_callout_targeting.js 2023-11-29 01:05:15 +02:00
Nikki Sharpley
d097632d78 Bug 1860833 - optimize number of calls to getTabClient r=fxview-reviewers,sfoster
Amending the `getRecentTabs` function eliminates one of the duplicate calls to `getTabClients`. I opted for this approach as opposed
to getting tabs from clients or vice versa because that involved a larger refactor that ended up adding unnecessary noise to the
`getRecentTabs` and `getTabClients` return values. Combined with a patch by @sfoster, we have reduced the number of calls from 9 to 1.

Differential Revision: https://phabricator.services.mozilla.com/D194656
2023-11-28 20:47:40 +00:00
Norisz Fay
d8c0cbb618 Backed out changeset d3d999e4ff71 (bug 1859788) for causing bc failures on browser_firefoxview_next.js 2023-11-28 20:31:50 +02:00