Commit Graph

959 Commits

Author SHA1 Message Date
Gregory Pappas
ec549b100a Bug 1877883 - More consistently refer to 'your organization' in enterprise policy notices instead of 'your administrator' or 'system administrator' r=mkaply,fluent-reviewers,settings-reviewers,fxview-reviewers,bolsson,sclements,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200328
2024-02-06 08:27:10 +00:00
Sandor Molnar
d0185266b4 Backed out changeset 25aa38248ad9 (bug 1873025) for causing bc failures at browser/base/content/test/tabs/browser_lastSeenActive.js CLOSED TREE 2024-02-06 00:25:46 +02:00
Mike Conley
65ab386408 Bug 1877196 - Move FeatureCallout modules and styles to browser/components/asrouter. r=fxview-reviewers,omc-reviewers,sclements,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D200514
2024-02-05 22:03:16 +00:00
Sam Foster
d07b593bed Bug 1873025 - Fix the displayed relative time for open tabs listing to match the recency sorting.r=jsudiaman,fxview-reviewers,tabbrowser-reviewers,dao
* Carry over lastAccessed times from tabs that haven't been seen/active this session.
* Use the lastSeenActive rather than lastAccessed timestamp for labeling open tabs in firefox view.

Differential Revision: https://phabricator.services.mozilla.com/D198892
2024-02-05 21:21:44 +00:00
Sandor Molnar
1e9196f7fa Backed out changeset 1ce5079e7de7 (bug 1877883) for causing bc failures at toolkit/mozapps/extensions/test/browser/browser_webapi_install.js CLOSED TREE 2024-02-05 21:39:56 +02:00
Gregory Pappas
5d5148317a Bug 1877883 - More consistently refer to 'your organization' in enterprise policy notices instead of 'your administrator' or 'system administrator' r=mkaply,fluent-reviewers,settings-reviewers,fxview-reviewers,bolsson,sclements
Differential Revision: https://phabricator.services.mozilla.com/D200328
2024-02-05 18:41:41 +00:00
Kelly Cochrane
7b849b24e9 Bug 1869765 - Add test coverage for View search telemetry. r=fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D199578
2024-02-05 17:07:45 +00:00
Irene Ni
b933099065 Bug 1854593 - Reduced vertical space between window cards in Open tabs to 16 px. r=cmkm,desktop-theme-reviewers,fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D198439
2024-02-05 16:10:23 +00:00
Kelly Cochrane
c5df8952b1 Bug 1877677 - Prevent intermittent test failures in browser_opentabs_tab_indicators.js r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D200198
2024-02-01 13:54:24 +00:00
Sam Foster
4bd82fe111 Bug 1866667 - Use session restore test utils to batch-open windows and tabs in the show more/less open tabs test. r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200093
2024-01-31 21:36:10 +00:00
Sam Foster
ad882469b1 Bug 1866667 - Ensure open tabs have a fallback url value. r=jsudiaman,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200092
2024-01-31 21:36:10 +00:00
Anna Yeddi
349c558b47 Bug 1872285 - Add a check for a button or link within a listitem in a focusable Firefox View list in the AccessibilityUtils. r=Jamie,fxview-reviewers
In the Firefox View main view, within the `<fxview-tab-list>` list component, there are  `a.fxview-tab-row-main` and `button.fxview-tab-row-secondary-button` elements which focusability is handled by the JavaScript - they are made not focusable by default to reduce the number of tabstops needed for a keyboard user to navigate through the Firefox View and each list has only one control that is made keyboard focusable.

The main view of Firefox View has `role="application"` set which communicates to a screen reader user that a custom navigation pattern is to be expected. But since hyperlinks and buttons are expected to be made individually focusable, Tier 2 a11y_checks are currently failing the [ifKeyboardFocusable](https://searchfox.org/mozilla-central/rev/f6776253b65c05351b4004fe7c3353cac8d8a4af/testing/mochitest/tests/SimpleTest/AccessibilityUtils.js#348-386) check for these controls.

We need to add an custom exemption check for the Firefox View tab-row controls in the AccessibilityUtils to automatically pass these elements while the current navigation pattern is used.

Since some Firefox View tests will start passing a11y_checks, we also update the appropriate test manifests correcting the `fail-if` notations.

Differential Revision: https://phabricator.services.mozilla.com/D197387
2024-01-31 20:58:02 +00:00
Sebastian Hengst
8751460255 Bug 1877594 - temporarily disable permafailing browser_history_firefoxview.js 2024-01-31 10:50:01 +01:00
Kelly Cochrane
b3dfa7a67a Bug 1857005 - Add indicators to open tabs in Fx View r=desktop-theme-reviewers,fxview-reviewers,fluent-reviewers,sfoster,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D199119
2024-01-30 19:52:31 +00:00
Brad Werth
ae73ae6819 Bug 1865372 Part 2: Update test timings. r=fxview-reviewers,sfoster
This changes browser_opentabs_recency.js to check for window occlusion
before calling window.restore, and if waiting for the
occlusionstatechange event, waiting an extra event loop to ensure that
all the listeners have fired. This is necessary to ensure that the
browsing context has become active, which is the next check in the
helper function.

Differential Revision: https://phabricator.services.mozilla.com/D199647
2024-01-30 18:07:40 +00:00
Mike Conley
db503acdb4 Bug 1868838 - Move ASRouter into browser/components/asrouter/modules. r=pdahiya,pip-reviewers,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D198874
2024-01-29 18:52:20 +00:00
Sam Foster
e2508dd237 Bug 1855704 - Implement a shared module for getting lists of tabs and notification of changes to those lists. r=Gijs,fxview-reviewers,sclements CLOSED TREE
* Add the shared module. It uses EveryWindow to listen for tab-related events and collapses them
  into a single dispatched event.
* The class extends EventTarget, and only monitors window and tab events when a listener is added.
* Update the firefox-view consumers and their tests to use the module. Note that triggering a
  tab-state change and seeing the tab change/recency events is async now.
* Add a new browser mochitest for the module and both TabChange and TabRecencyChange events.
* The module provides a potential home for optimizations like smarter caching and sorting of the tab
  lists, but implementing these will belong to other bugs.

Differential Revision: https://phabricator.services.mozilla.com/D191502
2024-01-27 00:30:22 +00:00
Sandor Molnar
943300c574 Backed out changeset 99babcb9f349 (bug 1855704) for causing mochitest failures at dom/animation/test/chrome/test_animation_observers_async.html CLOSED TREE 2024-01-27 03:18:38 +02:00
Sam Foster
26b81676a6 Bug 1855704 - Implement a shared module for getting lists of tabs and notification of changes to those lists. r=Gijs,fxview-reviewers,sclements
* Add the shared module. It uses EveryWindow to listen for tab-related events and collapses them
  into a single dispatched event.
* The class extends EventTarget, and only monitors window and tab events when a listener is added.
* Update the firefox-view consumers and their tests to use the module. Note that triggering a
  tab-state change and seeing the tab change/recency events is async now.
* Add a new browser mochitest for the module and both TabChange and TabRecencyChange events.
* The module provides a potential home for optimizations like smarter caching and sorting of the tab
  lists, but implementing these will belong to other bugs.

Differential Revision: https://phabricator.services.mozilla.com/D191502
2024-01-27 00:30:22 +00:00
Sandor Molnar
778333649c Backed out changeset 2be67d91cf16 (bug 1868866) for causing Mn failures at toolkit/xre/test/marionette/test_exitcode.py CLOSED TREE 2024-01-27 00:15:22 +02:00
Tom Marble
920ed4a927 Bug 1868866 - adds ManifestParser TOML linter r=jmaher,linter-reviewers,ahal,webdriver-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,cookie-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,valentin,whimboo,Standard8,sclements,jesup
Differential Revision: https://phabricator.services.mozilla.com/D199054
2024-01-26 20:06:56 +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
Jonathan Sudiaman
dd5a5ba498 Bug 1869443 - Provide a default value for targetURI fluent variable r=sfoster,nsharpley,fxview-reviewers
Sanity check `targetURI` to ensure that Fluent won't error out.

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

Differential Revision: https://phabricator.services.mozilla.com/D199569
2024-01-25 14:27:22 +00:00
Gijs Kruitbosch
532c3bc439 Bug 1780071 - autofix browser/ violations of no-comparison-or-assignment-inside-ok, r=Standard8,webcompat-reviewers,extension-reviewers,settings-reviewers,credential-management-reviewers,fxview-reviewers,sessionstore-reviewers,places-reviewers,sgalich,dao,twisniewski,mconley,sclements
Differential Revision: https://phabricator.services.mozilla.com/D198974
2024-01-24 17:03:13 +00:00
Jonathan Sudiaman
4a83d4aaac Bug 1845013 - Fix intermittent browser/components/firefoxview/tests/browser/browser_syncedtabs_firefoxview.js failures. r=nsharpley,fxview-reviewers,sclements
Adjustments to make the test more stable, and to explain the "steps" a bit better.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=0d0334048a7568eb5693b7636c6a961bdbeb6d4e

Differential Revision: https://phabricator.services.mozilla.com/D199277
2024-01-24 13:33:16 +00:00
Sam Foster
32163b5986 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
5bb63471e3 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
857bffe429 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
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
Sarah Clements
3acd84eaf2 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
72d5f891b7 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
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
Jonathan Sudiaman
e897ea4e01 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
e55a0a81fb 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
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
Sandor Molnar
fdf2dcb8cb Bug 1852963 - Fix typo in browser_tab_close_last_tab.js. a=merge 2024-01-14 11:10:38 +02:00
Anna Yeddi
d953a7c533 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
d209ccd77b 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
ca1dc84fa7 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
847dc9eb18 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
07b98e1a08 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
4f7ffcd8f7 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
e2e80f646d 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
47ce8a31cb 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
20610cad88 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
0bcd4efffc 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
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