kiwix-js icon indicating copy to clipboard operation
kiwix-js copied to clipboard

When opening a folder of archives with FSA API, do not jump straight to the first file

Open Jaifroid opened this issue 1 month ago • 1 comments

I'm not sure when this bug crept in, but opening a folder of archives in a browser where the File System Access API is available immediately opens the first archive in the folder. This is a bit disorientating, and not very user-friendly given the potential security concerns that we flag to the user. Opening a specific archive should be a conscious choice by the user, even if there is only one archive in the folder.

An exception would be re-opening the last-opened archive, IF it is in the list of trusted archives. And only if it was the last archive opened by the user.

Jaifroid avatar May 23 '24 15:05 Jaifroid