-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore ability to redirect xhr to image resources
The ability to redirect xmlhttprequest to binary resources was lost when redirectable/injectable resources became immutable in commit 152cea2. This commit restores the ability to redirect a xmlhttprequest to a binary resource by making it possible to derive a data: URI from the content of binary resources such as images. Addtionally a redirect to a data: URI can be forced by prefixing the resource token with `%`. This is a non-official feature at this point, i.e. it could be removed at any time.
- Loading branch information
Showing
2 changed files
with
168 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
7ac7b02
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have noted that I found only one instance of such xhr redirection to an image, which I removed when I refactored resource management:
uBlockOrigin/uAssets@1e0b6bb
I verified the filter was obsolete but it does show that the case for such filter can arise.