Import from the Chromium Snap profile doesn't work (Firefox can't detect Chromium being installed)
Categories
(Firefox :: Migration, defect, P2)
Tracking
()
People
(Reporter: j.jakhaia, Assigned: axtinemvsn)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Updated•6 years ago
|
Comment 9•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 11•4 years ago
|
||
(In reply to Ken VanDine from comment #9)
A symlink to the current revision of the chromium snap's local data:
$HOME/snap/chromium/current
It looks like on my machine this is actually under:
~/snap/chromium/common/chromium/
which makes sense, because it probably needs to stay accessible when the chromium version changes (ie after updates) - does that look right?
Comment 12•4 years ago
|
||
Yes, that's right. The location where the profile folder is stored for the chromium snap changed recently, it is now in ~/snap/chromium/common/chromium/
.
Comment 13•4 years ago
|
||
(In reply to Olivier Tilloy from comment #12)
Yes, that's right. The location where the profile folder is stored for the chromium snap changed recently, it is now in
~/snap/chromium/common/chromium/
.
Thanks for confirming!
(In reply to Ken VanDine from comment #7)
I know importing from another browser is an existing feature, however we
consider a snap knowing about other snaps that are installed an information
leak. This is a powerful feature of snap confinement.
On macOS (on Mojave 10.14 and later) Safari now does this but only for their own stuff (that is, other applications can't get to Safari's data by default anymore, but Safari can get to Firefox/Chrome/...'s). On macOS, we can holepunch the sandbox by showing a file picker and allowing the user to pick the file they want the application to access, so that we can still offer bookmark import with user consent.
Does snap confinement have any similar way of holepunching the sandbox with user consent?
Comment 15•4 years ago
|
||
:Gijs just to follow up from 1667144, what should happen when there's two profile folders - one in the old location and one in the new snap location.
Comment 16•4 years ago
|
||
(In reply to Sarah Bird from comment #15)
:Gijs just to follow up from 1667144, what should happen when there's two profile folders - one in the old location and one in the new snap location.
Yeeeeaaaah. It should probably use the most recently modified one. We can determine this if we can access the files, but not if we ourselves are in a snap package and can't read the snap files.
Comment 17•4 years ago
|
||
(In reply to :Gijs (back Dec 1; he/him) from comment #13)
Does snap confinement have any similar way of holepunching the sandbox with user consent?
Sorry for the very late reply. Not that I know of. That would really defeat the purpose of strict application confinement.
Comment 18•4 years ago
|
||
(In reply to Olivier Tilloy from comment #17)
(In reply to :Gijs (back Dec 1; he/him) from comment #13)
Does snap confinement have any similar way of holepunching the sandbox with user consent?
Sorry for the very late reply.
No worries!
Not that I know of. That would really defeat the purpose of strict application confinement.
I'm confused. The toolkit (GTK or otherwise) filepicker can navigate to other files, that the snap package cannot otherwise access, right? And then the user can open those files with the snap application, right? (Or does snap completely break opening all files not in the snap package?) That doesn't "defeat the purpose of strict application confinement" - it allows users to pick a specific file that they want to give the file access to.
This is basically the same thing, from my perspective. We want a way for the user to say "yes, Firefox should have access to this file". Is that not possible? Or perhaps only via the toolkit filepicker, if the user manually navigates to the file in question?
Comment 19•4 years ago
|
||
(In reply to :Gijs (he/him) from comment #18)
This is basically the same thing, from my perspective. We want a way for the user to say "yes, Firefox should have access to this file". Is that not possible? Or perhaps only via the toolkit filepicker, if the user manually navigates to the file in question?
That's right, filepickers work because an out-of-process XDG portal is used under the hood (where available). This requires user confirmation.
So if the profile importer uses a filepicker, that would theoretically work. Automatically detecting an existing profile and importing it without user intervention wouldn't work.
Comment 20•4 years ago
|
||
Clearing NI since question was answered by Olivier.
Comment 21•4 years ago
|
||
Given that the only option is using a file picker, is this something we are willing to do? Or is this a WONTFIX.
It's simply not possible to autoimport things outside the Snap sandbox.
Comment 22•4 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #21)
Given that the only option is using a file picker, is this something we are willing to do? Or is this a WONTFIX.
It's simply not possible to autoimport things outside the Snap sandbox.
I think the importer dialog should check whether it's in a Snap or other kind of sandbox and provide some appropriate message, and then use a file picker in response to user request, yes.
Comment 23•2 years ago
|
||
We're going to have Ani explore this space to see what options we have.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 25•2 years ago
|
||
Comment 26•2 years ago
|
||
We've focused this bug to be about importing from Chromium when it's installed as a Snap package (and Firefox is not installed as a Snap package). I've filed bug 1818237 to work on importing when Firefox is installed as a Snap package.
Comment 27•2 years ago
|
||
Comment 28•2 years ago
|
||
bugherder |
Comment 29•2 years ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]:
Users on Ubuntu Linux that are trying to switch from the Chromium Snap package to Firefox will be able to import from Chromium if Firefox is installed (but only if Firefox is not installed as a Snap package).
[Affects Firefox for Android]:
No.
[Suggested wording]:
Ubuntu Linux users can now import their browser data from the Chromium Snap package. Currently, this will only work if Firefox is not also installed as a Snap package, but work is underway to address this!
[Links (documentation, blog post, etc)]:
None.
Comment 30•2 years ago
|
||
I've reproduced this issue in Nightly 109.0a1 (2022-11-30)(not installed as a Snap package) using Ubuntu 22.04.
Also I've checked in the latest Nightly 112.0a1 (2023-02-24)(not installed as a Snap package) where user can import now Browsing History and Bookmarks from Chromium Snap package(both with Chromium closed and opened).
As you mentioned, Browsing History and Bookmarks can not be imported from Chromium Snap package to Firefox installed as a Snap package.
Could you please confirm what items should be imported to Firefox on Ubuntu?
Currently Browsing History and Bookmarks are displayed as options on the "Items to Import" screen to be imported from Chrome or Chromium.
However in Nightly 109.0a1 (2022-11-30), user was able to import Cookies, Browsing History and Bookmarks from Chrome to Firefox. Please see screenshot Migration Wizard_Nightly 109.0a1.
Comment 31•2 years ago
|
||
(In reply to Ina Popescu from comment #30)
Could you please confirm what items should be imported to Firefox on Ubuntu?
Currently Browsing History and Bookmarks are displayed as options on the "Items to Import" screen to be imported from Chrome or Chromium.
However in Nightly 109.0a1 (2022-11-30), user was able to import Cookies, Browsing History and Bookmarks from Chrome to Firefox. Please see screenshot Migration Wizard_Nightly 109.0a1.
Cookie import was removed in bug 1801051.
Comment 32•2 years ago
|
||
Yes, that's right - it is expected that Cookie importing from other browsers no longer appears. History and Bookmarks should be able to be imported. So it sounds like this fix is behaving as expected. Thank you!
Comment 33•2 years ago
|
||
Relnote for nightly is available in https://www.mozilla.org/en-US/firefox/112.0a1/releasenotes/
Updated•2 years ago
|
Description
•