2
  • Orion incorrectly escapes quotes in headers to WebExtensions

  • BugsDesktopDone

Steps to reproduce:

  1. Have a WebExtension use the webRequest API to intercept requests.
  2. Send a request with a header with the value containing a quote, for example
    fetch("myserver.com", {headers: {"Hello": JSON.stringify("World") }})
    Expected behavior:
    In Chrome, the extension recieves the header as expected, however in Orion, all " quotes are replaced with \".

Orion, OS version; hardware type:
Version 0.99.122-beta (WebKit 615.1.11.7)
macOS Ventura 13.2 build 22D49
MacBook Pro (M1 Max, Late 2021)

Image/Video:

Example extension:

archive.zip
39kB
    theLMGN changed the title to Orion incorrectly escapes quotes in headers to WebExtensions .

      Tested in Version 0.99.123.1-beta (WebKit 615.1.16.1). Still broken

        2 months later
        No one is typing