mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix XHR unit test
This commit is contained in:
parent
21b9e9e8e4
commit
f0100d3fdf
@ -1425,7 +1425,7 @@ nsXMLHttpRequest::OpenRequest(const nsACString& method,
|
||||
// Find the load group for the page, and add ourselves to it. This way any
|
||||
// pending requests will be automatically aborted if the user leaves the page.
|
||||
nsCOMPtr<nsILoadGroup> loadGroup;
|
||||
if (!(mState & XML_HTTP_REQUEST_BACKGROUND)) {
|
||||
if (doc && !(mState & XML_HTTP_REQUEST_BACKGROUND)) {
|
||||
loadGroup = doc->GetDocumentLoadGroup();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user