Loading caps/nsScriptSecurityManager.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -1053,6 +1053,12 @@ nsresult nsScriptSecurityManager::CheckLoadURIFlags( return NS_OK; } } else if (targetScheme.EqualsLiteral("chrome")) { nsAutoCString path; if (NS_SUCCEEDED(aTargetURI->GetPathQueryRef(path)) && StringBeginsWith(path, "/locale/"_ns)) { return NS_ERROR_DOM_BAD_URI; } // Allow the load only if the chrome package is allowlisted. nsCOMPtr<nsIXULChromeRegistry> reg( do_GetService(NS_CHROMEREGISTRY_CONTRACTID)); Loading Loading
caps/nsScriptSecurityManager.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -1053,6 +1053,12 @@ nsresult nsScriptSecurityManager::CheckLoadURIFlags( return NS_OK; } } else if (targetScheme.EqualsLiteral("chrome")) { nsAutoCString path; if (NS_SUCCEEDED(aTargetURI->GetPathQueryRef(path)) && StringBeginsWith(path, "/locale/"_ns)) { return NS_ERROR_DOM_BAD_URI; } // Allow the load only if the chrome package is allowlisted. nsCOMPtr<nsIXULChromeRegistry> reg( do_GetService(NS_CHROMEREGISTRY_CONTRACTID)); Loading