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
In other words, as soon as txt is truthy, the test PASSes.
This means that if the Reading System returns a spurious string in request.responseText (e.g., Cordova returns ERROR whitelist rejection: $URL if the requested URL is not in the app whitelist) the test PASSes, albeit the Reading System did not actually access the remote file.
Proposed: probing the response code instead, or -- even better -- testing against a precise (known a priori) value for txt, containing the expected text of the remote file.
Rationale: avoid false positives.
The text was updated successfully, but these errors were encountered:
Current: the possibility of opening remote files via XHR is deemed available with the following code:
In other words, as soon as
txt
is truthy, the test PASSes.This means that if the Reading System returns a spurious string in
request.responseText
(e.g., Cordova returnsERROR whitelist rejection: $URL
if the requested URL is not in the app whitelist) the test PASSes, albeit the Reading System did not actually access the remote file.Proposed: probing the response code instead, or -- even better -- testing against a precise (known a priori) value for
txt
, containing the expected text of the remote file.Rationale: avoid false positives.
The text was updated successfully, but these errors were encountered: