Open Softvision-AndreeaCupsa opened 5 years ago
@fzzzy the base64 encoding only applies to intent triggered files, right? So if it's also slow for files added from the 'add files' button then the slowness is all within the webview.
@dannycoates good point! my main guess at the moment is that the cryptofill is being used because the webview doesn't have some api, or because the user agent is set to "send android"
android can't be loading the crypto polyfill because it never calls getCapabilities()
I have retested this issue using the latest Android Send version (org.mozilla.sendandroid-2019-03-01-release-signed.apk) compared with the Send v2 website by uploading a 100 Mb file. Unfortunately I haven't observed any noticeable improvements. Here are the results:
@SoftVision-CosminMuntean Are you testing uploading with the Chrome browser on the same android device you are testing the app on? Because I am not seeing any of that behavior on my S8.
@fzzzy I have tested with Firefox 65.0.1 browser on the same Android device where the app is installed.
However, I just verified on Chrome browser on the same Android device and it seems that 100Mb file takes ~3m10s to be uploaded and on Firefox browser only ~20s.
@SoftVision-CosminMuntean Ok, great, that is very good news. That means switching to GeckoView will most likely fix this. However, there are no engineers on the project at the moment, as I am starting on rust-components today. If Send becomes a priority again and engineers are assigned to the project, there is a clear path to speeding it up.
[Notes]:
[Affected Platforms]:
[Prerequisites]:
[Steps to reproduce]:
[Expected result]:
[Actual result]:
[Notes]: