Commit graph

76 commits

Author SHA1 Message Date
Jonathan Sudiaman
e0e15ff907 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
Dave Townsend
a9a51bf046 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
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
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
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
Gregory Pappas
3eac12bbd7 Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
Mike Kaply
98be406dc0 Bug 1844672 - No need to look for current device, it's not in the tab array. r=fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D184169
2023-07-23 16:02:54 +00:00
Mike Kaply
134b5be624 Bug 1826608 - Implement open tabs from other device in new Firefox View. r=sclements,kcochrane,fluent-reviewers,fxview-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D180836
2023-07-18 19:08:04 +00:00
Mark Banner
130a655906 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Jonathan Sudiaman
beffbf20b6 Bug 1829847 - Move Synced Tabs error handling into its own component r=fxview-reviewers,sfoster
Add a new component which handles managing the error states for synced tabs. Refactor `tab-pickup-container.js` and `firefox-view-tabs-setup-manager.js` to utilize the new component.

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

Differential Revision: https://phabricator.services.mozilla.com/D177551
2023-05-12 15:31:22 +00:00
Sam Foster
2a3e4f2928 Bug 1809661 - Keep track of time spent with 0 tabs after a new device is added, and record a telemetry event with the time elapsed until new tabs are shown. r=kcochrane
* Keep track of the tab-pickup-container views in TabsSetupFlowManager and their visibility
* Fix visibilitychange handling in tab-pickup-container and add some tests
* Capture a timestamp when a device has been added and there are 0 tabs to show, with at least one visible tab-pickup-container view
* Record telemetry when there are > 0 tabs in these conditions
* Small change to rename the `_waitingForTabs` internal tracking property to  `_waitingForNextTabSync` to better clarify its use and meaning
* Use a consistent pattern in some of the existing tests with how we mock SyncedTabs.getRecentTabs

Differential Revision: https://phabricator.services.mozilla.com/D170526
2023-03-23 23:55:49 +00:00
Butkovits Atila
fdef81b168 Backed out changeset 649252a67839 (bug 1809661) for causing failures complaining about _createRecentTabsList . CLOSED TREE 2023-03-08 21:12:35 +02:00
Sam Foster
67e77c6bad Bug 1809661 - Keep track of time spent with 0 tabs after a new device is added, and record a telemetry event with the time elapsed until new tabs are shown. r=kcochrane
* Keep track of the tab-pickup-container views in TabsSetupFlowManager and their visibility
* Fix visibilitychange handling in tab-pickup-container and add some tests
* Capture a timestamp when a device has been added and there are 0 tabs to show, with at least one visible tab-pickup-container view
* Record telemetry when there are > 0 tabs in these conditions

Differential Revision: https://phabricator.services.mozilla.com/D170526
2023-03-08 17:21:11 +00:00
Sammy Khamis
6f260cff5b Bug 1791478 - SyncedTabs should check if pp is locked before syncing r=markh,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D157874
2023-03-08 04:21:56 +00:00
Csoregi Natalia
2663a62047 Backed out changeset d609e38d7305 (bug 1809661) for failures on browser_tab_pickup_device_added_telemetry.js. CLOSED TREE 2023-02-27 23:21:07 +02:00
Sam Foster
8e9a796f8a Bug 1809661 - Keep track of time spent with 0 tabs after a new device is added, and record a telemetry event with the time elapsed until new tabs are shown. r=kcochrane
* Keep track of the tab-pickup-container views in TabsSetupFlowManager and their visibility
* Fix visibilitychange handling in tab-pickup-container and add some tests
* Capture a timestamp when a device has been added and there are 0 tabs to show, with at least one visible tab-pickup-container view
* Record telemetry when there are > 0 tabs in these conditions

Differential Revision: https://phabricator.services.mozilla.com/D170526
2023-02-27 20:06:25 +00:00
Mark Banner
7a655466af Bug 1817183 - Update consumers of services/fxaccounts to import ES modules directly. r=markh,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D170062
2023-02-17 16:34:43 +00:00
Cristian Tuns
b3bf09cc0d Backed out 6 changesets (bug 1816934, bug 1817182, bug 1817179, bug 1817183) for causing dt failures in browser_jsterm_autocomplete_null.js CLOSED TREE
Backed out changeset 17d4c013ed92 (bug 1817183)
Backed out changeset cfed8d9c23f3 (bug 1817183)
Backed out changeset 62fe2f589efe (bug 1817182)
Backed out changeset 557bd773fb85 (bug 1817179)
Backed out changeset 7f8a7865868b (bug 1816934)
Backed out changeset d6c1d4c0d2a0 (bug 1816934)
2023-02-17 10:51:33 -05:00
Mark Banner
0ba34b9422 Bug 1817183 - Update consumers of services/fxaccounts to import ES modules directly. r=markh,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D170062
2023-02-17 09:01:45 +00:00
Mark Banner
cdf8548a04 Bug 1814931 - Convert services/sync imports to direct ES imports. r=markh,settings-reviewers,credential-management-reviewers,mconley,dimi
Differential Revision: https://phabricator.services.mozilla.com/D168837
2023-02-13 11:44:29 +00:00
Kelly Cochrane
ee5be13d7b Bug 1802889 - Resolve Fx View mobile promo message being incorrectly shown when signing out of current FxA device r=Gijs
There are two things I've added here:
  - The observers for when FxA devices are connected/disconnected were not added/removed as part of this update: https://phabricator.services.mozilla.com/D153069.
  - When a mobile device is the only synced device beyond the current one (desktop) and you remove the current device (desktop), then sign back in from Fx View Tab Pickup banner, `fxAccounts.device.recentDeviceList` only returns the mobile device for some reason (possibly due to device cache). This causes our checks for a secondary device to fail (as we now only have access to the mobile device from `recentDeviceList`, and we're assuming the one device we DO have access to is our current device - which is not the case). This is why Tab Pickup was incorrectly displaying the "Connect a mobile device" message. I've added a check at the start of `refreshDevices()` to manually refresh the device list (ignoring device cache) if the `recentDeviceList` doesn't contain a device with `isCurrentDevice` set to `true`. This is really a workaround for the caching stuff going on behind the scenes, but this does seem to fix things from our end.

Differential Revision: https://phabricator.services.mozilla.com/D165960
2023-01-06 13:11:01 +00:00
Sarah Clements
6fffe2e852 Bug 1794610 - Change error state for password change r=sfoster,kcochrane,fluent-reviewers,flod
* Add new strings and add a new signed-out error type
* Update tests

Differential Revision: https://phabricator.services.mozilla.com/D162275
2022-12-06 14:30:39 +00:00
Mark Banner
9613c19f16 Bug 1795880 - Add an ESLint rule to enforce using static imports where possible. r=arai,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D160131
2022-10-26 09:37:46 +00:00
Sammy Khamis
bb000b691f Bug 1791851 - replace desktop tabs with the rust tabs engine r=teshaq,LougeniaBailey,markh,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D157981
2022-10-25 20:03:23 +00:00
Hanna Jones
aa990624c1 Bug 1791474 - show more specific message for locked primary password error r=sfoster,fluent-reviewers
* Updated the error message to use the text [here](https://www.figma.com/file/SE4xHgOW84yLiv7vFugm9R/Firefox-View-Stepping-Stone)
* Updated the existing password test to verify the message contents

Differential Revision: https://phabricator.services.mozilla.com/D159787
2022-10-24 18:29:53 +00:00
Sam Foster
968de3c515 Bug 1795752 - Use fx-view rather than firefoxview as the entry point param for FxA signin/signup. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D159528
2022-10-18 00:22:26 +00:00
Cristian Tuns
6c7ed40390 Backed out changeset d734d1d10478 (bug 1795752) for causing mochitest failures on browser_feature_callout.js CLOSED TREE 2022-10-17 17:17:49 -04:00
Sam Foster
ca077475ed Bug 1795752 - Use fx-view rather than firefoxview as the entry point param for FxA signin/signup. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D159528
2022-10-17 20:35:31 +00:00
Tim Giles
cb9c26280e Bug 1794474 - Force tabs sync when a user reloads Firefox View. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D159401
2022-10-17 18:39:27 +00:00
Mark Hammond
36b2282d01 Bug 1792550 - ensure the primary password is unlocked before signing in to sync. r=Mardak,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D158719
2022-10-12 22:31:37 +00:00
Sarah Clements
2b04f2ef7c Bug 1785853 - Close device connected tab after user returns to Firefox View r=sfoster
* Add _closeDeviceConnectedTab to FirefoxViewHandler that's called by the TabSelect event handler
* Add test coverage

Differential Revision: https://phabricator.services.mozilla.com/D158031
2022-10-12 16:39:39 +00:00
Norisz Fay
6e29272e17 Backed out changeset 9b1e2e6ceb70 (bug 1785853) for causing mochitest failures on browser_setup_state.js CLOSED TREE 2022-10-12 17:50:02 +03:00
Sarah Clements
ca8d94bc2d Bug 1785853 - Close device connected tab after user returns to Firefox View r=sfoster
* Add _closeDeviceConnectedTab to FirefoxViewHandler that's called by the TabSelect event handler
* Add test coverage

Differential Revision: https://phabricator.services.mozilla.com/D158031
2022-10-12 13:26:41 +00:00
Sarah Clements
76ccfc801e Bug 1793754 - Fix sync error when user disconnects a device r=sfoster
* Only show sync error if user is not signed in and give them a way out when try again button is clicked

Differential Revision: https://phabricator.services.mozilla.com/D158972
2022-10-12 10:12:36 +00:00
Hanna Jones
9fba91d012 Bug 1789982 - handle case where sync is connected but user is logged out r=sclements
This patch adds logic to show an error when a user becomes disconnected due to changing their password on another device. We will now show the `sync-disconnected` error, which should direct the user to their sync settings where they can enter their new password/sign in again.

This patch also includes a test for this new error case, as well as some small changes to an existing test that started failing due to a slight mismatch between the UIState representation used in the test and the UIState we expect when a user logs out.

Differential Revision: https://phabricator.services.mozilla.com/D158043
2022-10-11 18:34:24 +00:00
Sarah Clements
aa533d899e Bug 1792191 - Fix the Turn on syncing to continue error state r=sfoster
* Rename fxaSignedIn to fxaSignedInAndSyncEnabled to better reflect what its doing
* Re-enable the test_sync_disconnected_error test case and add another

Differential Revision: https://phabricator.services.mozilla.com/D158201
2022-10-07 10:04:35 +00:00
Csoregi Natalia
13179f500d Backed out changeset d91a621a39be (bug 1785853) for multiple failures e.g.browser_setup_state.js CLOSED TREE 2022-10-03 19:48:44 +03:00
Sarah Clements
2fad8f1409 Bug 1785853 - Close device connected tab after user returns to Firefox View r=sfoster
* Add _closeDeviceConnectedTab to FirefoxViewHandler that's called by the TabSelect event handler
* Add test coverage

Differential Revision: https://phabricator.services.mozilla.com/D158031
2022-10-03 16:07:54 +00:00
Mark Banner
8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Mark Banner
a9ba6e830d Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 21:47:50 +00:00
Marian-Vasile Laza
130adc5d9a Backed out changeset 0679274d6ed5 (bug 1792398) for causing bc failures on browser_sendQuery.js. CLOSED TREE 2022-09-26 22:53:00 +03:00
Mark Banner
3e99025d45 Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 18:51:57 +00:00
Narcis Beleuzu
6c2d0d8cea Backed out changeset 849faf753208 (bug 1792398) for bc failures on browser_sendQuery.js . CLOSED TREE 2022-09-26 20:44:40 +03:00
Mark Banner
05dcda5a7f Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 16:51:10 +00:00
Kelly Cochrane
c68146e9ab Bug 1791707 - Check for tablets when showing Fx View mobile promo r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157936
2022-09-22 18:45:53 +00:00