Firefox webextension with proxy array does not work

I was about to make an add-on for FF, generating an array of proxies, all those after the first one as failover options. After endless debugging, I am frustrated to find that only the first proxy is tried by the browser. Put there a dummy as the first proxy, and the browser will never try the second. Connection is never successful if the first proxy fails.
Here is the code:

browser.proxy.onRequest.addListener(handleP, {urls: ["<all_urls>"]});
function handleP(requestInfo)
{
return [{type: “socks”, host: “g.kuomuDummy.xyz”, port: 1443,proxyDNS:true,failoverTimeout:5},{type: “socks”, host: “g.kuomu.xyz”, port: 1443,proxyDNS:true,failoverTimeout:5}];
}

Please do NOT advise using PacScript mode with the proxy.settings.set API, since Firefox Android does not support it.

You are not alone, I also found the same issue.

I read the documentation 10 times and found no more information and I don’t know how it failovers.

If it doesn’t work, what is the point of its existence?

I think it does work, but not with the timeout I set.
Instead, it times out after a maximum of about 50 seconds.

This post was flagged by the community and is temporarily hidden.