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:
dlee
2019-03-25 12:47:57 +00:00
parent c93aa956a2
commit 3b26e613f7
21 changed files with 33 additions and 82 deletions

View File

@@ -1264,8 +1264,7 @@ nsresult ScriptLoader::StartLoad(ScriptLoadRequest* aRequest) {
getter_AddRefs(channel), aRequest->mURI, context,
aRequest->TriggeringPrincipal(), securityFlags, contentPolicyType,
nullptr, // aPerformanceStorage
loadGroup, prompter,
nsIRequest::LOAD_NORMAL | nsIChannel::LOAD_CLASSIFY_URI);
loadGroup, prompter);
NS_ENSURE_SUCCESS(rv, rv);