Closed Bug 1668372 Opened 4 years ago Closed 4 years ago

GMP extraction fails if path to temporary files contains a # character

Categories

(Core :: Audio/Video: GMP, defect, P3)

Desktop
Windows
defect

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: bryce, Assigned: bryce)

Details

Attachments

(2 files)

See https://support.mozilla.org/en-US/questions/1302754#answer-1354535

Something in the GMPExtractor[0] machinery fails if there's a # on the path to the temp directory where the GMP zips are downloaded to.

STR:

  • Create a user with a # character in their name (e.g. Test#).
  • Run Firefox with that user account.
  • Navigate to https://shaka-player-demo.appspot.com/demo/#build=uncompiled
  • The plugins installing notification will appear and only be removed when install times out, the browser console (Ctrl + Shift + J) wil show errors.

Further notes:

  • I've tested and this is a problem even if the profile dir is outside that path.
  • The temp files exist in the temporary directory, so it looks like they're downloaded, but it's the extraction which is failing.

[0] https://searchfox.org/mozilla-central/rev/f21850ca45036ddb84cd25aa355a6969d7c94c4f/toolkit/modules/GMPInstallManager.jsm#512

Users with certain special characters on the path to the temp dirs where GMPs
are saved would not be able to extract GMPS. This fixes this by escaping
characters such as # so that the URIs to the file are treated correctly.

Pushed by bvandyk@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ac12524936de
Test GMPExtractor handles special characters. r=Gijs
https://hg.mozilla.org/integration/autoland/rev/91cfeac746aa
Escape URI GMP zips are extracted from. r=Gijs
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: