Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan
nsIChannel.LOAD_CLASSIFY_URI is no longer required so we can remove it from the codebase. In the mean time, we add a new LOAD_BYPASS_URL_CLASSIFIER load flag for channel creator to be able to force channel to bypass URL classifier check. The use of the new LOAD_BYPASS_URL_CLASSIFIER flag will be addressed in the other patches. Differential Revision: https://phabricator.services.mozilla.com/D22111
This commit is contained in:
@@ -2310,14 +2310,14 @@ nsresult nsObjectLoadingContent::OpenChannel() {
|
||||
|
||||
nsContentPolicyType contentPolicyType = GetContentPolicyType();
|
||||
|
||||
rv = NS_NewChannel(
|
||||
getter_AddRefs(chan), mURI, thisContent, securityFlags, contentPolicyType,
|
||||
nullptr, // aPerformanceStorage
|
||||
group, // aLoadGroup
|
||||
shim, // aCallbacks
|
||||
nsIChannel::LOAD_CALL_CONTENT_SNIFFERS | nsIChannel::LOAD_CLASSIFY_URI |
|
||||
nsIChannel::LOAD_BYPASS_SERVICE_WORKER |
|
||||
nsIRequest::LOAD_HTML_OBJECT_DATA);
|
||||
rv = NS_NewChannel(getter_AddRefs(chan), mURI, thisContent, securityFlags,
|
||||
contentPolicyType,
|
||||
nullptr, // aPerformanceStorage
|
||||
group, // aLoadGroup
|
||||
shim, // aCallbacks
|
||||
nsIChannel::LOAD_CALL_CONTENT_SNIFFERS |
|
||||
nsIChannel::LOAD_BYPASS_SERVICE_WORKER |
|
||||
nsIRequest::LOAD_HTML_OBJECT_DATA);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (inherit) {
|
||||
nsCOMPtr<nsILoadInfo> loadinfo = chan->LoadInfo();
|
||||
|
||||
Reference in New Issue
Block a user