Closed Bug 1579408 Opened 5 years ago Closed 5 years ago

Media capabilities code in aboutSupport.js does strange path manipulation

Categories

(Core :: Audio/Video: Playback, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: Gijs, Assigned: achronop)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

https://searchfox.org/mozilla-central/rev/2c0a60b5b065ae0fdfcfae168141e82b834fb2d4/toolkit/content/aboutSupport.js#875

This is not how you do path manipulation in a platform-agnostic way.

Use file.append() and then get the path.

Also, I hate to be a stickler about rules, but this patch should have had review from a relevant toolkit/firefox peer - they would probably have flagged this up.

Thanks for the report I will fix it. I missed completely those rule do you have a link to them?

(In reply to Alex Chronopoulos [:achronop] from comment #1)

Thanks for the report I will fix it. I missed completely those rule do you have a link to them?

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Code_Review_FAQ

https://wiki.mozilla.org/Modules/All#Toolkit

(Mossop is in the process of updating the Firefox/Toolkit modules to provide better guidance about who can review what, as well as doing some housekeeping in the list of active peers.)

Use file.append() to create the desired path in a platform agnostic way.

Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/7a5a3aef7880
Fix path manipulation in about support. r=Gijs
Assignee: nobody → achronop
Priority: -- → P2
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: