Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin

Replacing js and text occurences of asyncOpen2
Replacing open2 with open

Differential Revision: https://phabricator.services.mozilla.com/D16885
This commit is contained in:
Jonathan Kingston
2019-02-12 16:08:25 +00:00
parent da0e4b44fc
commit 58708e007c
330 changed files with 921 additions and 1314 deletions

View File

@@ -1244,7 +1244,7 @@ class HTMLMediaElement::ChannelLoader final {
return;
}
// determine what security checks need to be performed in AsyncOpen2().
// determine what security checks need to be performed in AsyncOpen().
nsSecurityFlags securityFlags =
aElement->ShouldCheckAllowOrigin()
? nsILoadInfo::SEC_REQUIRE_CORS_DATA_INHERITS
@@ -1337,7 +1337,7 @@ class HTMLMediaElement::ChannelLoader final {
aElement->SetRequestHeaders(hc);
}
rv = channel->AsyncOpen2(loadListener);
rv = channel->AsyncOpen(loadListener);
if (NS_FAILED(rv)) {
// Notify load error so the element will try next resource candidate.
aElement->NotifyLoadError(NS_LITERAL_CSTRING("Failed to open channel"));