tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 675cd4b2118f4d56cf7f4fc9d0fa5e84d4ee2061
parent 074dc56365f97076f88351985eb54a2d24bf293c
Author: Josh Aas <jaas@kflag.net>
Date:   Wed, 29 Oct 2025 01:42:52 +0000

Bug 1996943 - Drop support for getting an FSSpec via nsILocalFileMac. r=spohl

Differential Revision: https://phabricator.services.mozilla.com/D270388

Diffstat:
Mxpcom/io/nsILocalFileMac.idl | 15---------------
Mxpcom/io/nsLocalFileUnix.cpp | 17-----------------
2 files changed, 0 insertions(+), 32 deletions(-)

diff --git a/xpcom/io/nsILocalFileMac.idl b/xpcom/io/nsILocalFileMac.idl @@ -80,21 +80,6 @@ interface nsILocalFileMac : nsIFile [noscript] FSRef getFSRef(); /** - * getFSSpec - * - * Returns the FSSpec of the file object. - * - * NOTE: Observes the state of the followLinks attribute. - * If the file object is an alias and followLinks is TRUE, returns - * the target of the alias. If followLinks is FALSE, returns - * the unresolved alias file. - * - * @return - * - */ - [noscript] FSSpec getFSSpec(); - - /** * fileType, creator * * File type and creator attributes diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp @@ -2745,23 +2745,6 @@ nsLocalFile::GetFSRef(FSRef* aResult) { } NS_IMETHODIMP -nsLocalFile::GetFSSpec(FSSpec* aResult) { - if (NS_WARN_IF(!aResult)) { - return NS_ERROR_INVALID_ARG; - } - - FSRef fsRef; - nsresult rv = GetFSRef(&fsRef); - if (NS_SUCCEEDED(rv)) { - OSErr err = ::FSGetCatalogInfo(&fsRef, kFSCatInfoNone, nullptr, nullptr, - aResult, nullptr); - return MacErrorMapper(err); - } - - return rv; -} - -NS_IMETHODIMP nsLocalFile::GetFileType(OSType* aFileType) { CFURLRef url; if (NS_SUCCEEDED(GetCFURL(&url))) {