onivim / oni

Oni: Modern Modal Editing - powered by Neovim
https://www.onivim.io
MIT License
11.36k stars 301 forks source link

Browser cannot open local files #2666

Open luator opened 5 years ago

luator commented 5 years ago

Oni Version: 0.3.7 Neovim Version (Linux only): 0.3.1 Operating System: Ubuntu 16.04

Issue: The embedded browser does not open local HTML files with the file:// protocol.

Expected behavior: The file should be opened just like some http://... file.

Actual behavior: The browser stays empty.

Steps to reproduce: Create a local HTML file. Enter the path to the file in the address field of the embedded browser using file:// (e.g. file:///home/luator/some_file.html).

oni-bot[bot] commented 5 years ago

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

CrossR commented 5 years ago

Hi!

As far as I know, this is done by default in electron for security reasons. We can enable the functionality back again, though I think before that there needs to be a look into the security concerns of why it is blocked by default. I think all plugins that are normally enabled (such as the PDF reader etc) are also disabled inside electron.