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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user