filips123 / PWAsForFirefox

A tool to install, manage and use Progressive Web Apps (PWAs) in Mozilla Firefox
https://pwasforfirefox.filips.si
Mozilla Public License 2.0
2.28k stars 52 forks source link

Installation of Google Translate as PWA prompts an error #275

Closed Aleksandra0056 closed 1 year ago

Aleksandra0056 commented 1 year ago

Description

Installation of Google Translate PWA prompts an error. Or the error won't prompt, but the installation time would be infinite. Code of error is: “Failed to parse web app manifest: invalid MIME: invalid token, '*' at position 6 at line 1 column 208”

Steps to Reproduce

  1. Go to https://translate.google.com/
  2. Try to install this site as PWA
  3. Error will prompt.

Additional Information

(Nothing)

Affected Websites

https://translate.google.com/

Environment

filips123 commented 1 year ago

For some reason, Google Translate sets the icon's MIME type to image/* in the web app manifest. Because the manifest parser uses hyperium/mime, which does not allow MIME patterns/ranges by default, the parsing will fail and result in that error.

As a workaround, you can install Google Translate if you uncheck "Use the manifest for determining app properties". I'll check if I can also allow MIME patterns in the parser.