follow-up Issue #1691 - Part 6b, fix code that codepath is removed by upstream but remaining here

This commit is contained in:
roytam1 2023-04-30 21:45:57 +08:00
commit 80d11ebc38

View file

@ -2702,7 +2702,7 @@ ScriptLoader::HandleLoadError(ScriptLoadRequest *aRequest, nsresult aResult) {
* array of blocked tracking nodes under its parent document.
*/
if (aResult == NS_ERROR_TRACKING_URI) {
nsCOMPtr<nsIContent> cont = do_QueryInterface(aRequest->mElement);
nsCOMPtr<nsIContent> cont = do_QueryInterface(aRequest->Element());
mDocument->AddBlockedTrackingNode(cont);
}