You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.Info($"Blocked content request{(windowSettings.UrlPolicy.CanLog()?$" for '{url}'":"")} ({request.ResourceType}, {request.TransitionType}).");
206
+
varresult=filter.Process(newRequest{Url=url});
207
+
208
+
if(result==FilterResult.Block)
209
+
{
210
+
block=true;
211
+
logger.Info($"Blocked content request{(windowSettings.UrlPolicy.CanLog()?$" for '{url}'":"")} ({request.ResourceType}, {request.TransitionType}).");
212
+
}
209
213
}
210
-
}
211
214
212
-
if(!isValidUrl)
213
-
{
214
-
logger.Warn($"Filter could not process request{(windowSettings.UrlPolicy.CanLog()?$" for '{url}'":"")} ({request.ResourceType}, {request.TransitionType})!");
215
+
if(!isValidUrl)
216
+
{
217
+
logger.Warn($"Filter could not process request{(windowSettings.UrlPolicy.CanLog()?$" for '{url}'":"")} ({request.ResourceType}, {request.TransitionType})!");
logger.Info($"Blocked content request{(windowSettings.UrlPolicy.CanLog()?$" for '{url}'":"")} ({request.ResourceType}, {request.TransitionType}).");
160
+
varresult=filter.Process(newRequest{Url=url});
161
+
162
+
if(result==FilterResult.Block)
163
+
{
164
+
block=true;
165
+
logger.Info($"Blocked content request{(windowSettings.UrlPolicy.CanLog()?$" for '{url}'":"")} ({request.ResourceType}, {request.TransitionType}).");
166
+
}
167
+
}
168
+
else
169
+
{
170
+
logger.Warn($"Filter could not process request{(windowSettings.UrlPolicy.CanLog()?$" for '{url}'":"")} ({request.ResourceType}, {request.TransitionType})!");
163
171
}
164
-
}
165
-
elseif(!isValidUri)
166
-
{
167
-
logger.Warn($"Filter could not process request{(windowSettings.UrlPolicy.CanLog()?$" for '{url}'":"")} ({request.ResourceType}, {request.TransitionType})!");
0 commit comments