Skip to content

Installation of Google Translate as PWA prompts an error #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Aleksandra0056 opened this issue Jan 23, 2023 · 1 comment
Closed

Installation of Google Translate as PWA prompts an error #275

Aleksandra0056 opened this issue Jan 23, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@Aleksandra0056
Copy link

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

  • Operating system: Windows 11 22621.1192
  • System architecture: 64-bit
  • Desktop environment: (Nothing)
  • Installation method: MSI
  • PWAsForFirefox extension version: 2.4.0
  • PWAsForFirefox native version: 2.4.0
  • Firefox version: v109.0 (64-bit)
@Aleksandra0056 Aleksandra0056 added the bug Something isn't working label Jan 23, 2023
@filips123 filips123 moved this to To Do in PWAsForFirefox Jan 23, 2023
@Aleksandra0056 Aleksandra0056 changed the title Installation of Google Translate PWA prompts an error Installation of Google Translate as PWA prompts an error Jan 26, 2023
@filips123
Copy link
Owner

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.

@filips123 filips123 added this to the 2.5.0 milestone Feb 6, 2023
@filips123 filips123 moved this from To Do to In Progress in PWAsForFirefox Feb 6, 2023
@filips123 filips123 modified the milestones: 2.5.0, 2.4.1 Feb 7, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in PWAsForFirefox Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants