So, the directory index is generated from [nsDirectoryIndexStream.cpp](https://searchfox.org/mozilla-central/rev/887d4b5da89a11920ed0fd96b7b7f066927a67db/netwerk/base/nsDirectoryIndexStream.cpp) and that stream is parsed into a web page by [nsIndexedToHTML.cpp](https://searchfox.org/mozilla-central/rev/887d4b5da89a11920ed0fd96b7b7f066927a67db/netwerk/streamconv/converters/nsIndexedToHTML.cpp) I'm not sure exactly how we can differentiated between files in the sandbox and files outside the sandbox. @Sven, do you know if there's an API for that?
Bug 1837182 Comment 5 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
So, the directory index is generated from [nsDirectoryIndexStream.cpp](https://searchfox.org/mozilla-central/rev/887d4b5da89a11920ed0fd96b7b7f066927a67db/netwerk/base/nsDirectoryIndexStream.cpp) and that stream is parsed into a web page by [nsIndexedToHTML.cpp](https://searchfox.org/mozilla-central/rev/887d4b5da89a11920ed0fd96b7b7f066927a67db/netwerk/streamconv/converters/nsIndexedToHTML.cpp) I'm not sure exactly how we can differentiate between files in the sandbox and files outside the sandbox. @Sven, do you know if there's an API for that?