1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[spidermonkey] Implemented setter for withCredentials.

Not fully
This commit is contained in:
Witold Filipczyk 2022-09-22 17:36:37 +02:00
parent 55a302cfab
commit b11814dbde

View File

@ -1231,7 +1231,16 @@ xhr_set_property_withCredentials(JSContext *ctx, unsigned int argc, JS::Value *v
if (!xhr) {
return false;
}
if (xhr->readyState != UNSENT && xhr->readyState != OPENED) {
return false;
}
if (xhr->isSend) {
return false;
}
xhr->withCredentials = args[0].toBoolean();
/// TODO Set thiss cross-origin credentials to the given value.
return true;
}