Bug 1905002 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

It looks as though an `xhr.abort()` call is being on an XHR which is still sending, and therefore still has a proxy, but sometime during handling that abort call, the proxy goes away, somewhere in this code: https://searchfox.org/mozilla-central/source/dom/xhr/XMLHttpRequestWorker.cpp#1542-1551 (which only runs because the XHR is sending, from here https://searchfox.org/mozilla-central/source/dom/xhr/XMLHttpRequestWorker.cpp#2109)

I don't really know how the proxy would just go away during the send operation unless the worker is dying, and the strong references to the worker go away. In that case, we might hit this, and we'll just need to add more checks to the code to make sure that if the proxy goes away, we don't crash.
It looks as though an `xhr.abort()` call is being made on an XHR which is still sending, and therefore still has a proxy, but sometime during handling that abort call, the proxy goes away, somewhere in this code: https://searchfox.org/mozilla-central/source/dom/xhr/XMLHttpRequestWorker.cpp#1542-1551 (which only runs because the XHR is sending, from here https://searchfox.org/mozilla-central/source/dom/xhr/XMLHttpRequestWorker.cpp#2109)

I don't really know how the proxy would just go away during the send operation unless the worker is dying, and the strong references to the worker go away. In that case, we might hit this, and we'll just need to add more checks to the code to make sure that if the proxy goes away, we don't crash.
It looks as though an `xhr.abort()` call is being made on an XHR which is still sending, and therefore still has a proxy, but sometime during handling that abort call, the proxy goes away, somewhere during this code being run: https://searchfox.org/mozilla-central/source/dom/xhr/XMLHttpRequestWorker.cpp#1542-1551 (which only runs because the XHR is sending, from here https://searchfox.org/mozilla-central/source/dom/xhr/XMLHttpRequestWorker.cpp#2109)

I don't really know how the proxy would just go away during the send operation unless the worker is dying, and the strong references to the worker go away. In that case, we might hit this, and we'll just need to add more checks to the code to make sure that if the proxy goes away, we don't crash.

Back to Bug 1905002 Comment 3