duckmole
(duckmole@tutanota.com)
September 19, 2021, 6:32am
1
I am writing a WebExtension to communicate with a server using XMLHttpRequest.
I load this WebExtension temporarily by about:debugging. It works well if I do not login into my Firefox account. It can get data from the server.
But after logining into my account, it returns “xmlhttp.status: 0” immediately when I trying to do the same thing.
Then I removed all my add-ons, but still I have this problem. I have to refresh Firefox to make my add-on work again.
Any suggestions will be appreciated.
duckmole
(duckmole@tutanota.com)
September 29, 2021, 5:38am
2
xhr returns “Network request failed” immediately after trying to open connection.
jscher2000
(jscher2000)
September 29, 2021, 3:49pm
3
Hmm, could a non-default preference value stored in your Firefox Account Sync data be interfering with XHR requests??
You could try a “before and after” text compare of your prefs.js file (in your currently active profile folder ).
1 Like
Status 0 usually means either the network is offline or the loading of the resource was blocked, for example by tracking protection. Not sure what kind of settings get synced via Firefox Account, but it might sync something in that causes the resource to be blocked.
duckmole
(duckmole@tutanota.com)
October 26, 2021, 7:40am
5
thanks a lot jscher, i will try it.
duckmole
(duckmole@tutanota.com)
October 26, 2021, 7:42am
6
Yes, that is the point, I have no idea which one cause the problem.