How to perform arbitrary commands file URIs via ECMAScript in FF, as a user?

@guest271314, yep! It turns out that that does work!

However:

Actually, there are a few. The most important one demonstrates why the restriction didn’t remain for you, but did for me:

  1. Visit about:config:

    #!/usr/bin/env sh
    firefox 'about:config'
    
  2. Search for the key “security.fileuri.strict_origin_policy”.

  3. Set the value to false:

    "security.fileuri.strict_origin_policy": false
    
  4. “Quit” (Control + Q).

  5. Reinitialise firefox:

    #!/usr/bin/env sh
    firefox
    
  6. Window Dimension Specification

    Invoke the command to generate the window *with absolute window dimensions. This means that the undermentioned shall merely generate a tab:

    #!/usr/bin/env firefox
    window.open("file:///home/RokeJulianLockhart/Documents/@%7B'Name'='Curriculum%20Vit%C3%A6'%7D%23.PDF", "_blank")
    

    …whereas the undermentioned shall generate a window:

    #!/usr/bin/env firefox
    window.open("file:///home/RokeJulianLockhart/Documents/@%7B'Name'='Curriculum%20Vit%C3%A6'%7D%23.PDF", "_blank", "left=100,top=100,width=320,height=320")
    

Thank you!