sienori / Tab-Session-Manager

WebExtensions for restoring and saving window / tab states
https://tab-session-manager.sienori.com/
Mozilla Public License 2.0
1.91k stars 188 forks source link

Import session crashes when trying to import file names with non-English characters #1270

Open www-wagner opened 11 months ago

www-wagner commented 11 months ago

Short description

When trying to import a session file with name containing non-English characters (like á, ã, ê) the extension crashes!

Steps to reproduce

  1. Go to extension settings -> Sessions -> Import sessions
  2. Click Browse: and choose any file containing non-English characters (example 2023-12-06-15-00-00 - Fundo Imobiliário #finance #article - [e39301a8-3035-4409-b1d7-3c20f0e942d4].json)
  3. The extension crashes before showing the import list.

Expected result

image In this try, the file name has been sanitized, replacing non-English characters.

Actual result

image image

Platform information

Additional context

The non-English characters are from Portuguese language.