зеркало из https://github.com/mozilla/gecko-dev.git
c3cf53a7ef
Changes ExtensionProtocolHandler to use remote streams for moz-extension loads of file and JAR URI's to allow for filesystem read-access sandboxing. Adds messaging to PNecko to allow child processes to request an input stream or file descriptor for moz-extension URI's. Add ExtensionProtocolHandler singleton so that NeckoParent can call methods directly and ExtensionProtocolHandler::NewFD can use a new member variable |mFileOpenerThread| to open files. Adds FileDescriptorFile, a limited implementation of nsIFile that wraps a file descriptor, to be sideloaded into nsJARChannels so that extension JAR files can be read using a file descriptor without accessing the filesystem directly. MozReview-Commit-ID: 1pcnIpjz2yR --HG-- extra : rebase_source : 9d7334778fc81837b11b98d4e32603f7e5eb3a27 |
||
---|---|---|
.. | ||
moz.build | ||
nsNetCID.h | ||
nsNetModule.cpp |