Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Ref #5374: Ignore data schemes for request blocking (#5679)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuba authored Jul 11, 2022
1 parent 18a59a8 commit 9b269a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Client/WebFilters/AdblockRustEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ extension AdblockEngine {
// Note: `baseDomain` returns etld+1
let isThirdParty = requestURL.baseDomain != sourceURL.baseDomain

guard requestURL.scheme != "data" else {
// TODO: @JS Investigate if we need to deal with data schemes and if so, how?
return false
}

guard sourceURL.absoluteString != "about:blank" else {
// TODO: @JS Investigate why sometimes `sourceURL` is `about:blank` and find out how to deal with it
return false
Expand Down

0 comments on commit 9b269a0

Please sign in to comment.