Name Description Size
android
components.conf 641
IOUtils.cpp Platform-specific (e.g. Windows, Unix) implementations of XPCOM APIs may report I/O errors inconsistently. For convenience, this function will attempt to match a |nsresult| against known results which imply a file cannot be found. @see nsLocalFileWin.cpp @see nsLocalFileUnix.cpp 102153
IOUtils.h Utility class to be used with |UniquePtr| to automatically close NSPR file descriptors when they go out of scope. Example: UniquePtr<PRFileDesc, PR_CloseDelete> fd = PR_Open(path, flags, mode); 34003
linux
mac
moz.build 2872
NetworkGeolocationProvider.jsm 13938
nsDeviceSensors.cpp 17586
nsDeviceSensors.h 2388
nsIOSFileConstantsService.idl Inject module OS.Constants in the environment. This method must be called only from the main thread. Method is idempotent. 899
nsIOSPermissionRequest.idl The permission state is not known. As an example, on macOS this is used to indicate the user has not been prompted to authorize or deny access and there is no policy in place to deny access. 2731
nsOSPermissionRequest.h The default implementation of nsOSPermissionRequestBase used on platforms that don't have a platform-specific version. 675
nsOSPermissionRequestBase.cpp access authorized 2642
nsOSPermissionRequestBase.h The base implementation of nsIOSPermissionRequest to be subclassed on platforms that require permission requests for access to resources such as media captures devices. This implementation always returns results indicating access is permitted. 1212
OSFileConstants.cpp This module defines the basic libc constants (error numbers, open modes, etc.) used by OS.File and possibly other OS-bound JavaScript libraries. 28301
OSFileConstants.h XPConnect initializer, for use in the main thread. This class is thread-safe but it must be first be initialized on the main-thread. 1452
PathUtils.cpp static 19607
PathUtils.h Initialize the given nsIFile with the given path. This is equivalent to calling nsIFile::InitWithPath() with the caveat that on Windows debug or during Windows CI tests, we will crash if the path contains a forward slash. @param aFile The file to initialize. @param aPath The path to initialize the file with. @return The result of calling nsIFile::InitWithPath. 9162
tests
windows