Commit graph

784 commits

Author SHA1 Message Date
Sam Foster
1ad98ad75b Bug 1875587 - Remove unused onToggleContainer function. r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D199160
2024-01-22 17:52:06 +00:00
Erik Nordin
2a01092c90 Bug 1875090 - Rename BrowserTestUtils.is_visible() to isVisible() r=Gijs,settings-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,sgalich,bytesized,sfoster
Renames all instances of the snake_case identifier to
camelCase to match more closely to idiomatic JavaScript
and to existing conventions throughout the code base.

Differential Revision: https://phabricator.services.mozilla.com/D198826
2024-01-19 02:15:33 +00:00
Erik Nordin
736a5983b8 Bug 1875090 - Rename BrowserTestUtils.is_hidden() to isHidden() r=Gijs,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,sgalich,mhowell
Renames all instances of the snake_case identifier to
camelCase to match more closely to idiomatic JavaScript
and to existing conventions throughout the code base.

Differential Revision: https://phabricator.services.mozilla.com/D198825
2024-01-19 02:15:33 +00:00
Nikki Sharpley
57db0ea127 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
Sarah Clements
f4e12df251 Bug 1868583 - Ensure scroll position moves to top when searching in fxview r=fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D198709
2024-01-18 10:43:35 +00:00
Kelly Cochrane
f5671a5615 Bug 1859358 - Remove hardcoded limit of 25 recently closed tabs in Firefox View r=fxview-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D198824
2024-01-17 22:12:28 +00:00
Cristian Tuns
014080f990 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
80020bf88f 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
Jonathan Sudiaman
17232b0f01 Bug 1872851 - Firefox View longer typed terms will extend the search results box out of view in History section r=kcochrane,fxview-reviewers
Use zero width to indicate that the header should only take up the width of its parent container.

https://stackoverflow.com/a/55041133/6268626

Differential Revision: https://phabricator.services.mozilla.com/D198047
2024-01-16 20:34:43 +00:00
Kelly Cochrane
a493fe5451 Bug 1873683 - Ensure card collapsed state is preserved on the History page when the view is changed in Fx View r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D198164
2024-01-16 14:32:21 +00:00
Norisz Fay
ae3df68e9b Backed out changeset 1ec7a77be890 (bug 1869836) for causing bc and lint failures CLOSED TREE 2024-01-15 19:09:33 +02:00
Nikki Sharpley
ea95272239 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
Sandor Molnar
8eec585846 Bug 1852963 - Fix typo in browser_tab_close_last_tab.js. a=merge 2024-01-14 11:10:38 +02:00
Anna Yeddi
90844b1305 Bug 1873094 - Update the Firefox View Open Tabs test case to send a click on a menuitem itself instead of its container. r=fxview-reviewers,kcochrane
The Firefox View provides a custom menu for Open Tab links. This menu is attempted to be clicked [twice](https://searchfox.org/mozilla-central/rev/6321fb8f7533456a62dfa2aa68ee0477a6c8f693/browser/components/firefoxview/tests/browser/firefoxview-next/browser_opentabs_firefoxview_next.js#134,238) in the test file `browser/components/firefoxview/tests/browser/firefoxview-next/browser_opentabs_firefoxview_next.js`. But since the `<panel-item>` itself has a role of `presentation` and is serving as a container for an accessible `<button role="menuitem">`, the automatic accessibility checks are flagging these clicks as ones on a non-accessible elements. We can update the test case to send a click on a `menuitem` itself to ensure the test is working as expected too, since the keyboard-only users and users of assistive technology would be activating the menuitem.

Since this would allow the a11y_checks to test an actual control and we expect these tests to pass, we need to update the `fail-if` notation in the test manifest to exclude the `panel-item` failure.

Differential Revision: https://phabricator.services.mozilla.com/D197727
2024-01-11 13:38:27 +00:00
Marco Bonardo
84238863a4 Bug 1873914 - Remove PromiseUtils module. r=Standard8,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D198157
2024-01-10 16:34:30 +00:00
Nikki Sharpley
f26d7471aa Bug 1869833 - Remove all legacy Firefox View files and assets. r=sfoster,fxview-reviewers,extension-reviewers
- removes all old View related files and assets
- removes legacy telemetry
- removes tests related to prefs that have since been removed
- remove `browser_all_files_referenced.js` exceptions added in Bug 1869833

Depends on D196093

Differential Revision: https://phabricator.services.mozilla.com/D196208
2024-01-09 20:52:58 +00:00
Kelly Cochrane
bb600ec34a Bug 1870703 - Resolve intermittent test failure on Windows 11 for virtual-list updates on window resize r=fxview-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D197820
2024-01-09 20:45:27 +00:00
Jonathan Sudiaman
aeee249a4b Bug 1867828 - Find in Page shortcut should focus on search input in Firefox View r=fxview-reviewers,sclements
Disable Find in Page in Firefox View, intercept `Ctrl + F` event to focus the search textbox.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=42e21485cf747dca611eb63c453438c8a3d13206

Differential Revision: https://phabricator.services.mozilla.com/D197790
2024-01-09 15:38:15 +00:00
Kelly Cochrane
fd4f8e4eee Bug 1873212 - Ensure that synced tabs lists are restored when clearing search terms on Recent Browsing page of Fx View r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D197814
2024-01-05 21:42:36 +00:00
Mark Banner
8ce23e4908 Bug 1864821 - Replace PromiseUtils.defer() with Promise.withResolvers() in system modules. r=Gijs,perftest-reviewers,necko-reviewers,extension-reviewers,application-update-reviewers,fxview-reviewers,sync-reviewers,sessionstore-reviewers,reusable-components-reviewers,rpl,jesup,hjones,kshampur,skhamis,nalexander,sclements
Differential Revision: https://phabricator.services.mozilla.com/D197489
2024-01-05 09:22:34 +00:00
Nikki Sharpley
cea8dc7d06 Bug 1854957 - remove Firefox View newIcon pref. r=fxview-reviewers,sclements
Since the nimbus experiment is complete, we no longer need the pref for the newIcon.

Differential Revision: https://phabricator.services.mozilla.com/D196884
2024-01-04 19:19:55 +00:00
Stanca Serban
4e1cdb227e Backed out changeset 7eda7968bffa (bug 1869833) for causing mochitests failures in browser_parsable_css.js and in browser_firefoxview_next_general_telemetry.js. CLOSED TREE 2024-01-04 21:17:36 +02:00
Nikki Sharpley
ebc4c40237 Bug 1869833 - Remove all legacy Firefox View files and assets. r=sfoster,fxview-reviewers
- removes all old View related files and assets
- removes legacy telemetry
- removes tests related to prefs that have since been removed
- remove `browser_all_files_referenced.js` exceptions added in Bug 1869833

Differential Revision: https://phabricator.services.mozilla.com/D196208
2024-01-04 17:37:01 +00:00
Nikki Sharpley
81c08a33fb 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
3a810e4572 Backed out changeset 0a133d5fd155 (bug 1864534) for causing screenshot related failures. CLOSED TREE 2024-01-04 18:38:25 +02:00
Nikki Sharpley
cd901e4e4f 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
381e246d01 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
3d437284aa 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
762f24e00a 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
aedf6383fe 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
34f0384067 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
83f0502e28 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
8d5088a9fd 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
76b9416313 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
8e186f1de2 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
be99f386e4 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
c94ba222c4 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
bc999c0b66 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
d113410d83 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
64cdaa81d9 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
fa49da5af5 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
d88427a135 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
e8ad6f11c7 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
f644b5d5cc 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
3c71143b6d 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
7c8ed5281c 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
4ecf155e97 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
f9ea1a2b86 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
bd0f803dd5 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
f1f2984d0e 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