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:
parent
55a302cfab
commit
b11814dbde
@ -1231,7 +1231,16 @@ xhr_set_property_withCredentials(JSContext *ctx, unsigned int argc, JS::Value *v
|
|||||||
if (!xhr) {
|
if (!xhr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (xhr->readyState != UNSENT && xhr->readyState != OPENED) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xhr->isSend) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
xhr->withCredentials = args[0].toBoolean();
|
xhr->withCredentials = args[0].toBoolean();
|
||||||
|
/// TODO Set this’s cross-origin credentials to the given value.
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user