kiwix / kiwix-js

Fully portable & lightweight ZIM reader in Javascript
https://www.kiwix.org/
GNU General Public License v3.0
311 stars 135 forks source link

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

Closed Jaifroid closed 4 months ago

Jaifroid commented 6 months ago

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 commented 5 months ago

I confirm that the current release (v4.0.1) doesn't have this bug, so it is indeed a regression and must be fixed before releasing v4.1.