Closed Bug 315333 Opened 19 years ago Closed 9 years ago

file datasource failures on osx

Categories

(Core Graveyard :: RDF, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: shanec, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051025 Firefox/1.5
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051025 Firefox/1.5

1. using an rdf:files datasource with ref="file:///" results in a root directory with no children.  You can also get that with ref="file:///Volumes/", which will show you the primary hard drive on the system, but it has no children.

2. None of the osx code was being used, and in one place, using the unix code, ref="NC:FilesRoot" would just be wrong.  NC:FilesRoot should be equivelent to file:///Volumes/.

The patch (to be attached) fixes all the mac specific code in the file datasource, and adds some osx specific code to handle NC:FilesRoot more correctly.  

You will also see a "break" replaced with a "continue".  That is the  change that fixes #1 above.  There may be a better fix for this elsewhere.

The change in Makefile.in is required for building with the mac specific code.


Reproducible: Always

Steps to Reproduce:
use the template example from http://www.xulplanet.com/tutorials/xultu/treetempl.html
Attachment #202053 - Flags: review?(bsmedberg)
Comment on attachment 202053 [details] [diff] [review]
osx_file_datasource.patch

(not my real bugmail!)
Attachment #202053 - Flags: review?(bsmedberg) → review?(benjamin)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 202053 [details] [diff] [review]
osx_file_datasource.patch

>Index: rdf/datasource/src/nsFileSystemDataSource.cpp

>+#if defined(XP_MAC) || defined(XP_MACOSX)

XP_MAC is dead, please remove all references of it

>-#if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_WIN)
>+#if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_WIN) || defined(XP_MACOSX)

XP_MACOSX is XP_UNIX, this is not needed.

Also, please have a mac-head review this code, josh or mento.
Attachment #202053 - Flags: review?(benjamin) → review-
Blocks: 450553
Expired.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: