You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For onprogress events (where readyState < 4), status is set to null, even though it's available to the extension (e.g. Violentmonkey works fine).
Test script:
// ==UserScript==// @name New Userscript// @namespace http://tampermonkey.net/// @version 0.1// @description try to take over the world!// @author You// @include *// @grant GM.xmlHttpRequest// ==/UserScript==(function(){'use strict';varxhr;varloadfunc=function(resp){if(resp.readyState<2)return;console.log(resp);xhr.abort();};varobj={url: "https://www.google.com/"};if(true){obj.onprogress=loadfunc;// status == null}else{obj.onload=loadfunc;// status == 200}xhr=GM.xmlHttpRequest(obj);})();
This is problematic for my userscript (https://greasyfork.org/en/scripts/36662-image-max-url), as it believes status == 0/null to mean that the website was blocked via either tracking protection or that the domain/ip couldn't be resolved.
The text was updated successfully, but these errors were encountered:
qsniyg
added a commit
to qsniyg/maxurl
that referenced
this issue
Jan 21, 2020
For
onprogress
events (where readyState < 4), status is set to null, even though it's available to the extension (e.g. Violentmonkey works fine).Test script:
This is problematic for my userscript (https://greasyfork.org/en/scripts/36662-image-max-url), as it believes status == 0/null to mean that the website was blocked via either tracking protection or that the domain/ip couldn't be resolved.
The text was updated successfully, but these errors were encountered: