But that's not possible, hence it being listed among the issues.
This sends the file directly to the other browser which can then do as it pleases with the data. No filesystem knowledge required, and share sheets are common mobile user knowledge.
The short story is that the permission model would have to be changed; they have to add an Android permission for sharing browsing data that apps would have to declare and users would have to opt into. And of course that increases the risk surface area; We know from past examples that malicious apps sneak through (or non-malicious apps previously signed off on end up purchased by someone else and become malicious) and users really don't understand security.
The state is extractable via Google take out and the safest solution might honestly be to not support this directly on Android and instead require Mozilla to figure out how to import a takeout archive via the cloud.
Something that Firefox on Android doesn't support, by the way :facepalm: https://github.com/mozilla-mobile/fenix/issues/417
Android is able to mediate access to other sensitive data with user consent.>That's an obvious privacy leak!
No it's not. It's only a leak if they access that data without your permission. There's nothing wrong with them being able to request that data, with you-the-user being able to respond to that request "fuck no".
As a user, why the hell do I want third party applications to be able to access my browser's history, bookmarked sites, and cookies?
That's an obvious privacy leak!
Firefox can have that data when it's generated by Firefox while I'm using Firefox and not in other contexts.