Bug 1853548 - Remove dom.no_unknown_protocol_error.enabled pref r=gregp,smaug

Differential Revision: https://phabricator.services.mozilla.com/D210862
This commit is contained in:
tannal
2024-05-23 10:22:24 +00:00
parent 1104fd06ce
commit dfc90f6697
2 changed files with 0 additions and 8 deletions

View File

@@ -6151,7 +6151,6 @@ nsresult nsDocShell::FilterStatusForErrorPage(
// to see the error page.
nsCOMPtr<nsILoadInfo> info = aChannel->LoadInfo();
if (!info->TriggeringPrincipal()->IsSystemPrincipal() &&
StaticPrefs::dom_no_unknown_protocol_error_enabled() &&
!aIsInitialDocument) {
if (aSkippedUnknownProtocolNavigation) {
*aSkippedUnknownProtocolNavigation = true;