diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2022-02-26 17:50:31 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-27 20:22:15 +0100 |
commit | 662711fa26de109d4c8fe1d93f17e1983d66ebf3 (patch) | |
tree | c138ed6b424be28e01db85e74f81f5a31632d6f4 /Userland/Applications/Browser | |
parent | 1ba9c821fbfc54562e10981a3403aa25fb6079b3 (diff) | |
download | serenity-662711fa26de109d4c8fe1d93f17e1983d66ebf3.zip |
Browser+LibWeb+WebContent: Allow Browser to load local files
To achieve this goal:
- The Browser unveils "/tmp/portal/filesystemaccess"
- Pass the page through LoadRequest => ResourceLoader
- ResourceLoader requests a file to the FileSystemAccessServer via IPC
- OutOfProcessWebView handles it and sends a file descriptor back to
the Page.
Diffstat (limited to 'Userland/Applications/Browser')
-rw-r--r-- | Userland/Applications/Browser/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/main.cpp b/Userland/Applications/Browser/main.cpp index cd437eb5ab..1c1f22ecc0 100644 --- a/Userland/Applications/Browser/main.cpp +++ b/Userland/Applications/Browser/main.cpp @@ -84,6 +84,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil("/etc/passwd", "r")); TRY(Core::System::unveil("/etc/timezone", "r")); + TRY(Core::System::unveil("/tmp/portal/filesystemaccess", "rw")); TRY(Core::System::unveil("/tmp/portal/image", "rw")); TRY(Core::System::unveil("/tmp/portal/webcontent", "rw")); TRY(Core::System::unveil("/tmp/portal/request", "rw")); |