ubports / morph-browser

Moved to https://gitlab.com/ubports/core/morph-browser
https://gitlab.com/ubports/core/morph-browser
GNU General Public License v3.0
45 stars 35 forks source link

Add Firefox sync support. #24

Open padraic7a opened 6 years ago

padraic7a commented 6 years ago

Add ability to sync bookmarks, history, passwords and open tabs with Firefox.

Could we add Firefox Sync to Browser Next?

At the moment there is no way for the user to share bookmarks, history or passwords with another browser. I currently use Firefox sync to share information between three different desktop browsers and an Android device. Lack of any kind of synchronisation facility means that I will sometimes put my Ubports tablet to one side and fire up a laptop in order to find something I previously worked on / viewed.

Firefox sync support would allow the syncing of bookmarks, history, passwords, and open tabs with other browser-ng instances and as well as both desktop and mobile Firefox.

For users of Firefox it would make Ubuntu Touch a more attractive prospect. For existing users it would add functionality.

Reading material

Mozilla documentation

Mozilla host their sync client documentation here: https://moz-services-docs.readthedocs.io/en/latest/sync/ There is also a range of documentation here for "for people who wish to understand the details of how Sync is implemented or wish to interact with it": https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Firefox_Sync

Firefox Sync on MDN (Mozilla Developer Network) Webdocs: https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Firefox_Sync Sync Javascript Client API on MDN (Mozilla Developer Network) Webdocs: https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Firefox_Sync/JavaScript_Client_API

Other implementations

Epiphany (gnome browser) have added this feature and the following might be useful for understanding how they did it:

bhdouglass commented 6 years ago

This would be huge for me, I use Firefox sync between desktop and android and it's wonderul.

padraic7a commented 6 years ago

Illustrations

Signing in to Firefox sync in Epiphany 3.26 (elementaryOS)

^ Signing in to Firefox sync in Epiphany 3.26 (elementaryOS)

Firefox sync settings in Epiphany 3.26 (Arch)

^Firefox sync settings in Epiphany 3.26 (Arch)

padraic7a commented 6 years ago

Mockups (based on the M10 tablet)

Sync (now) button in the Browser Next Menu

browser_menu_tablet

Browser Settings including Sync Settings

browser_settings_tablet

Firefox Sync settings

These match the settings as seen in the screenshot from Epiphany above. The slider should have a range on it - e.g. from 5 minutes to 60 minutes, or perhaps radio buttons would be a better choice. I'll add a screen for signing in to Firefox Sync later on.

browser_sync_settings_tablet

Fuseteam commented 3 years ago

i found a thing that could help with this: https://discourse.mozilla.org/t/firefox-sync-on-chrome/58935/5