Commit Graph

78 Commits

Author SHA1 Message Date
Sarah Clements
7d2061ccba Bug 1923753 - Update empty and error state assets for sidebar and firefox view r=sidebar-reviewers,fxview-reviewers,kcochrane,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D226906
2024-10-30 18:27:18 +00:00
Sammy Khamis
9b8c4c982e Bug 1920852: Add closing tabs remotely to Firefox View r=lina,fxview-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D223448
2024-10-01 21:08:02 +00:00
Florian Quèze
03b00e2a53 Bug 1918702 - Migrate telemetry events to use Glean APIs for firefoxview, r=chutten,fxview-reviewers,jsudiaman.
Differential Revision: https://phabricator.services.mozilla.com/D222416
2024-09-20 13:58:15 +00:00
Sukhmeet
3ad327de7f Bug 1893013 - Remove browser.firefox-view.search.enabled preference r=kcochrane,fxview-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D211353
2024-06-03 15:12:53 +00:00
Anna Yeddi
d93e7b17d9 Bug 1884986 - Ensure the control on an empty card on Firefox View would announce the group info. r=fxview-reviewers,Jamie
Since the wrapper of the `<details>` element cannot access its labeling element (included in the slot), we could move the grouping attributes to the `<card-container>` element itself. This would also allow us to remove an additional `<section>` container and reduce the number of nested groups exposed to the Accessibility API, including the case where another `<details>` element is being added for the inner card.

This patch also removes the extra `group` container for an empty card to reduce the verbocity of the announcement and the nesting complexity, while keeping the grouping programmatically indicated (just not duplicated in the case of an empty card where the additional card template is added).

Differential Revision: https://phabricator.services.mozilla.com/D206261
2024-04-16 23:57:18 +00:00
Sandor Molnar
417a655e3b Backed out 2 changesets (bug 1884981, bug 1884986) for causing bc failures @ browser_firefoxview.js CLOSED TREE
Backed out changeset ae9729a59875 (bug 1884981)
Backed out changeset 2ad302b112b2 (bug 1884986)
2024-04-16 00:10:30 +03:00
Anna Yeddi
5dbcf00651 Bug 1884986 - Ensure the control on an empty card on Firefox View would announce the group info. r=fxview-reviewers,Jamie
Since the wrapper of the `<details>` element cannot access its labeling element (included in the slot), we could move the grouping attributes to the `<card-container>` element itself. This would also allow us to remove an additional `<section>` container and reduce the number of nested groups exposed to the Accessibility API, including the case where another `<details>` element is being added for the inner card.

This patch also removes the extra `group` container for an empty card to reduce the verbocity of the announcement and the nesting complexity, while keeping the grouping programmatically indicated (just not duplicated in the case of an empty card where the additional card template is added).

Differential Revision: https://phabricator.services.mozilla.com/D206261
2024-04-15 18:41:00 +00:00
Jonathan Sudiaman
caf6e435c1 Bug 1879925 - Replace Synced Tabs component in sidebar r=sidebar-reviewers,fxview-reviewers,nsharpley,sfoster,desktop-theme-reviewers,sclements
https://treeherder.mozilla.org/jobs?repo=try&revision=b2e04c07c3582baefbc4cc8e219ba33626788180

Differential Revision: https://phabricator.services.mozilla.com/D205646
2024-04-11 14:35:43 +00:00
Jonathan Sudiaman
e1987c2eb6 Bug 1887647 - Tabs from other devices doesn't render on first load r=fxview-reviewers,nsharpley,sfoster
Ensure that we always call `requestUpdate()` when needed.

Differential Revision: https://phabricator.services.mozilla.com/D205582
2024-03-28 13:42:33 +00:00
Jonathan Sudiaman
500347dd76 Bug 1880539 - Refactor firefoxview/syncedtabs.mjs to make business logic more reusable r=fxview-reviewers,nsharpley,sclements
Decoupling complex business logic from UI components.

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

Differential Revision: https://phabricator.services.mozilla.com/D204081
2024-03-19 23:21:13 +00:00
Sandor Molnar
ac42f14d15 Backed out changeset 2092d43bfaae (bug 1880539) for causing bc failures @ browser/components/firefoxview/tests/browser/<...> CLOSED TREE 2024-03-19 18:29:33 +02:00
Jonathan Sudiaman
4076b15f24 Bug 1880539 - Refactor firefoxview/syncedtabs.mjs to make business logic more reusable r=fxview-reviewers,nsharpley,sclements
Decoupling complex business logic from UI components.

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

Differential Revision: https://phabricator.services.mozilla.com/D204081
2024-03-19 14:03:41 +00:00
Dave Townsend
a0c83bc943 Bug 1864896: Autofix unused function arguments (browser). r=webcompat-reviewers,mconley,fxview-reviewers,desktop-theme-reviewers,omc-reviewers,migration-reviewers,twisniewski,aminomancer,dao,sclements,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D203005
2024-03-19 09:36:35 +00:00
Nikki Sharpley
c5dc18eeec Bug 1880540 - Refactor History component functionality into Lit controller r=fxview-reviewers,jsudiaman,sclements,hjones
Extrapolate common history functionality to a controller that can be used across view and sidebar.
This includes the ability to delete from history, visit a link from history, sort by options, search history and format results.

Differential Revision: https://phabricator.services.mozilla.com/D202726
2024-03-18 04:59:43 +00:00
Nikki Sharpley
5357a2cc6f Bug 1884170 - Missing options button icon in history fixed r=fxview-reviewers,kcochrane
Added correct secondary class names to show options button icon in history.

Differential Revision: https://phabricator.services.mozilla.com/D203928
2024-03-07 21:39:31 +00:00
Nikki Sharpley
487579b587 Bug 1857298 - Add close button to open tabs in view r=fxview-reviewers,fluent-reviewers,desktop-theme-reviewers,bolsson,sclements
- created tertiary button option for tab rows, styled by a class prop
- added close button to open tabs rows
- removed close tab from open tab context menu
- updated tests to reflect removed panel item in open tab context menu
- added test for the new open tabs close button
- added telemetry for close open tab (requires data review)
- added test suite for keyboard navigation across tab row buttons

Depends on D201652

Differential Revision: https://phabricator.services.mozilla.com/D200689
2024-02-28 19:37:22 +00:00
Stanca Serban
c67b0bdbfc Backed out 2 changesets (bug 1857298) for causing mochitests failures in browser_parsable_css.js. CLOSED TREE
Backed out changeset 32ca524f7abf (bug 1857298)
Backed out changeset c4ed2e3e1ff2 (bug 1857298)
2024-02-28 20:47:18 +02:00
Nikki Sharpley
0fc9567678 Bug 1857298 - Add close button to open tabs in view r=fxview-reviewers,fluent-reviewers,desktop-theme-reviewers,bolsson,sclements
- created tertiary button option for tab rows, styled by a class prop
- added close button to open tabs rows
- removed close tab from open tab context menu
- updated tests to reflect removed panel item in open tab context menu
- added test for the new open tabs close button
- added telemetry for close open tab (requires data review)
- added test suite for keyboard navigation across tab row buttons

Differential Revision: https://phabricator.services.mozilla.com/D200689
2024-02-28 17:31:17 +00:00
Iulian Moraru
3725609047 Backed out changeset 37ef0aa2d2b5 (bug 1857298) for causing bc failures on browser_recentlyclosed_firefoxview.js. 2024-02-20 18:06:25 +02:00
Nikki Sharpley
c6710ccaf5 Bug 1857298 - Add close button to open tabs in view r=fxview-reviewers,fluent-reviewers,desktop-theme-reviewers,bolsson,sclements
- created tertiary button option for tab rows, styled by a class prop
- added close button to open tabs rows
- removed close tab from open tab context menu
- updated tests to reflect removed panel item in open tab context menu
- added test for the new open tabs close button
- added telemetry for close open tab (requires data review)
- added test suite for keyboard navigation across tab row buttons

Differential Revision: https://phabricator.services.mozilla.com/D200689
2024-02-20 14:50:25 +00:00
Jules Simplicio
dbf6341376 Bug 1877793 - Standardize headings 1-3 r=kcochrane,desktop-theme-reviewers,settings-reviewers,fxview-reviewers,dao,hjones,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D200203
2024-02-09 15:15:11 +00:00
Nikki Sharpley
7e42a6aec5 Bug 1869765 - Add telemetry to Firefox View search. r=fxview-reviewers,kcochrane
- record frequency and page of search
- record how often show all search results is clicked on recent browsing and from which section
- record how often sort by date or site is clicked on history
- record how many searches are made before clicking on a search result

Differential Revision: https://phabricator.services.mozilla.com/D199285
2024-01-26 19:52:59 +00:00
Nikki Sharpley
17c37d523d Bug 1869836 - Rename files with Firefox View Next to Firefox View. r=fxview-reviewers,sfoster
- rename files to exclude "next" suffix
- move tests out of firefoxview-next folder into parent folder
- updat AboutRedirector to point at firefoxview.html
- this patch also resolves Bug 1872919 by adding a scroll into view during the `search_synced_tabs_recent_browsing` test

Differential Revision: https://phabricator.services.mozilla.com/D196347
2024-01-18 14:32:33 +00:00
Cristian Tuns
7368009cd2 Backed out changeset 7ec1dad4bca4 (bug 1869836) for causing bc failures in browser_syncedtabs_firefoxview.js CLOSED TREE 2024-01-16 17:36:03 -05:00
Nikki Sharpley
ac2d496df5 Bug 1869836 - Rename files with Firefox View Next to Firefox View. r=fxview-reviewers,sfoster
- rename files to exclude "next" suffix
- move tests out of firefoxview-next folder into parent folder
- updat AboutRedirector to point at firefoxview.html

Differential Revision: https://phabricator.services.mozilla.com/D196347
2024-01-16 21:46:47 +00:00
Norisz Fay
920554c646 Backed out changeset 1ec7a77be890 (bug 1869836) for causing bc and lint failures CLOSED TREE 2024-01-15 19:09:33 +02:00
Nikki Sharpley
9e4b7d5342 Bug 1869836 - Rename files with Firefox View Next to Firefox View. r=fxview-reviewers,sfoster
- rename files to exclude "next" suffix
- move tests out of firefoxview-next folder into parent folder
- updat AboutRedirector to point at firefoxview.html

Differential Revision: https://phabricator.services.mozilla.com/D196347
2024-01-15 15:34:34 +00:00
Nikki Sharpley
12407fd178 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
Cosmin Sabou
7cd8c743d7 Backed out changeset 0a133d5fd155 (bug 1864534) for causing screenshot related failures. CLOSED TREE 2024-01-04 18:38:25 +02:00
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
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
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
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
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
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
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
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
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
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
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
Sam Foster
05f5892ee7 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
Nikki Sharpley
dd8a3b0f67 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
Kelly Cochrane
8261fe6f9c 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
Kelly Cochrane
a9b6eb260a 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
Jules Simplicio
b966a0d435 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
Jonathan Sudiaman
4976d39f36 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