Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2023-12-15 10:29:04 +08:00
commit 5a362aa15b
68 changed files with 186 additions and 2246 deletions

View file

@ -1038,13 +1038,6 @@ nsCORSListenerProxy::CheckPreflightNeeded(nsIChannel* aChannel, UpdateType aUpda
return NS_OK;
}
// A preflight is needed. But if we've already been cross-site, then
// we already did a preflight when that happened, and so we're not allowed
// to do another preflight again.
if (aUpdateType != UpdateType::InternalOrHSTSRedirect) {
NS_ENSURE_FALSE(mHasBeenCrossSite, NS_ERROR_DOM_BAD_URI);
}
nsCOMPtr<nsIHttpChannelInternal> internal = do_QueryInterface(http);
NS_ENSURE_TRUE(internal, NS_ERROR_DOM_BAD_URI);