Closed Bug 1428258 Opened 7 years ago Closed 7 years ago

Move nsIFile::GetNativePath to a different interface (or remove it entirely)

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox59 --- wontfix
firefox60 --- fixed

People

(Reporter: emk, Assigned: emk)

References

Details

(Keywords: addon-compat)

Attachments

(6 files)

+++ This bug was initially created as a clone of Bug #685236 +++ nsIFile::GetNativePath is a footgun, because it returns a char* and that breaks on Unicode paths. We should move it to a new interface (nsIFileTotallyUnsafeYouShouldntUseIt) or remove it entirely if it's possible.
Attachment #8949025 - Flags: review?(dtownsend) → review+
Attachment #8949026 - Flags: review?(dtownsend) → review+
Attachment #8949024 - Flags: review?(honzab.moz) → review+
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Attachment #8950897 - Flags: review?(jmuizelaar) → review+
Depends on: 1428568
Comment on attachment 8952183 [details] Bug 1428258 - Disallow nsIFile::GetNativePath on Windows. https://reviewboard.mozilla.org/r/221426/#review227236 Thank you!
Attachment #8952183 - Flags: review?(nfroyd) → review+
Comment on attachment 8950898 [details] Bug 1428258 - Stop using GetNativePath in Telemetry.cpp. https://reviewboard.mozilla.org/r/220154/#review227880 Stealing the review from :gfritzsche before :) This looks good to me!
Attachment #8950898 - Flags: review+
Attachment #8950898 - Flags: review?(gfritzsche)
Pushed by VYV03354@nifty.ne.jp: https://hg.mozilla.org/integration/autoland/rev/ffa5068067a7 Stop using GetNativePath in chrome/. r=mayhemer https://hg.mozilla.org/integration/autoland/rev/c87bbb86f843 Stop using GetNativePath in url-classifier. r=mossop https://hg.mozilla.org/integration/autoland/rev/3089af2474ef Stop using GetNativePath in nsAppRunner.cpp. r=mossop https://hg.mozilla.org/integration/autoland/rev/e3b034c3ac97 Stop using GetNativePath in gfx/. r=jrmuizel https://hg.mozilla.org/integration/autoland/rev/e28a37787c93 Stop using GetNativePath in Telemetry.cpp. r=Dexter https://hg.mozilla.org/integration/autoland/rev/ee1367eae850 Disallow nsIFile::GetNativePath on Windows. r=froydnj
Ah, THIS ONE breaks comm-central build.
Flags: needinfo?(VYV03354)
Depends on: 1440278
Flags: needinfo?(VYV03354)
Depends on: 1441112
Depends on: 1442746
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: