Closed Palloxin closed 1 year ago
Thank you for the report! Can you please post the exact URL and complete steps for reproducing? Does the issue happens on other browsers also?
-https://yandex.com/images then follow the steps in the video, the touch of the finger is visible. -i don't know, this has been happening for a long time. i reported just because a was very tired of it. since i know about this issue for a long time i doubt this happens on other android browsers
Thank you for the details! Seems like the website does allow searching by image by tapping on this button
The image used for searching can be an existing one from the available storage or a new one taken from camera.
Testing on Chrome I see that the camera permission is asked only when the user chooses the camera as the image source:
i see, but i would like fenix to allow me to upload the image/files without asking for camera permission. there is no other way to do so without giving the permission of the camera (if there is, please show me)
Agree that we should try to avoid asking for the camera permission beforehand and only ask for this permission when it is actually needed, similar to how the website behaves on Chrome.
I have investigated this bug and traced the problem all the way to the FilePicker in feature-prompts package in Android Components. The issue seems to be that when asked to handle a file request, the picker iterates through all of the MimeTypes and checks if there are any permissions required in order to display multiple choices in the chooser. It should ask for these permissions only if the user selects certain option from chooser (camera for example). Here is one solution I have tried but with no avail: https://stackoverflow.com/questions/44822840/request-permission-after-selected-optioneither-camera-or-gallery-from-intent-c
Some alternatives would be to implement a similar screen like chrome and some other browser do or use a different picker, similar to how duck duck go does it.
Chrome example (custom screen with possibility to take a picture with camera, browse more pictures or quickly select from most recent photos):
Duck Duck Go example, no permission required, going straight into android file picker, having recent images:
implementing a similar screen to chrome will do, i guess
Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1813429
Change performed by the Move to Bugzilla add-on.
Steps to reproduce
https://user-images.githubusercontent.com/75091899/199284887-4691fc17-b9fc-4bfa-a8ac-e31dd2771442.mp4
Expected behaviour
should not ask camera permissions, and just open the archive of my files since fenix has the storage permission
Actual behaviour
fenix asks camera permission to upload file despite it having already storage permissions
Device name
Huawei p8 lite 2017
Android version
Android 8 Miui 8
Firefox release type
Firefox Nightly
Firefox version
106.1.0
Device logs
No response
Additional information
No response
┆Issue is synchronized with this Jira Task