Fix timeline markers in Firefox (regression from #13887) (#13889)
Fix timeline markers in Firefox (regression from #13887) (#13889)

Unfortunately, Firefox does not support the `keepalive` parameter
I used in the previous PR. However it supports the `navigator.sendBeacon`
API that allows that kind of things, but does not allow setting headers.

Therefore, this PR replaces it with a `sendBeacon` call that passes the
bearer token in the POST data.

Doorkeeper will then handle the auth token out of the box, as long as
it is passed as form data. Passing the query as JSON does not work.
tootcafe/mastodon,ikuradon/mastodon,yi0713/mastodon,masto-donte-com-br/mastodon,musashino205/mastodon,tootcafe/mastodon,primenumber/mastodon,h3zjp/mastodon,maa123/mastodon,pinfort/mastodon,ykzts/mastodon,MitarashiDango/mastodon,lindwurm/mastodon,imas/mastodon,maa123/mastodon,theoria24/mastodon,MitarashiDango/mastodon,ikuradon/mastodon,tootsuite/mastodon,imas/mastodon,Nyoho/mastodon,theoria24/mastodon,Kirishima21/mastodon,cobodo/mastodon,theoria24/mastodon,theoria24/mastodon,pinfort/mastodon,Ryanaka/mastodon,h3zjp/mastodon,maa123/mastodon,abcang/mastodon,yukimochi/mastodon,lynlynlynx/mastodon,Kirishima21/mastodon,gol-cha/mastodon,Nyoho/mastodon,musashino205/mastodon,gol-cha/mastodon,yukimochi/mastodon,primenumber/mastodon,im-in-space/mastodon,h3zjp/mastodon,cobodo/mastodon,musashino205/mastodon,Kirishima21/mastodon,glitch-soc/mastodon,Nyoho/mastodon,im-in-space/mastodon,lindwurm/mastodon,masto-donte-com-br/mastodon,pinfort/mastodon,danhunsaker/mastodon,cobodo/mastodon,ikuradon/mastodon,ykzts/mastodon,koba-lab/mastodon,koba-lab/mastodon,koba-lab/mastodon,cobodo/mastodon,tootsuite/mastodon,glitch-soc/mastodon,ikuradon/mastodon,lynlynlynx/mastodon,yukimochi/mastodon,abcang/mastodon,pinfort/mastodon,primenumber/mastodon,ykzts/mastodon,yi0713/mastodon,tootsuite/mastodon,masto-donte-com-br/mastodon,tri-star/mastodon,masto-donte-com-br/mastodon,gol-cha/mastodon,Nyoho/mastodon,danhunsaker/mastodon,danhunsaker/mastodon,tri-star/mastodon,lindwurm/mastodon,Ryanaka/mastodon,MitarashiDango/mastodon,glitch-soc/mastodon,abcang/mastodon,lynlynlynx/mastodon,danhunsaker/mastodon,gol-cha/mastodon,tri-star/mastodon,yukimochi/mastodon,im-in-space/mastodon,im-in-space/mastodon,MitarashiDango/mastodon,yi0713/mastodon,Kirishima21/mastodon,glitch-soc/mastodon,Ryanaka/mastodon,lindwurm/mastodon,yi0713/mastodon,musashino205/mastodon,Ryanaka/mastodon,maa123/mastodon,primenumber/mastodon,imas/mastodon,imas/mastodon,ykzts/mastodon,koba-lab/mastodon,lynlynlynx/mastodon,tri-star/mastodon,tootsuite/mastodon,tootcafe/mastodon,abcang/mastodon,tootcafe/mastodon,h3zjp/mastodon