Comment by williamcotton

12 hours ago

  fetch("file:///C:/Users/You/Documents/secrets.txt")

"Chrome wants to access 'secrets.txt'. Allow | Deny"

  • Imagine a very plausible situation. You have 1 HTML file at the top that wants to access hundreds of files in a subfolder. There is no way you can show Allow | Deny for every one of them. On the other hand, it's also possible for someone to take that file and put it in a folder like Documents or Downloads, so blanket allowing it access to siblings would allow access to all those files.

    This could easily be solved by some simple contract like "webgame.html can only access files in a webpage/ subdirectory," but the powers that be deemed such thing not worth the trouble.