-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: allow resources surrogates #4394
Conversation
refs https://github.com/gorhill/uBlock/wiki/Resources-Library refs ghostery#4392 fixes ghostery#4393 test: allow scriptlets being used as resources fix: allow redirect resources surrogates test: drop outdated tests fix: always query with file extension chore: strictly check content type test: resources surrogate test: drop outdated
7c60ded
to
0119d6a
Compare
@@ -272,6 +280,12 @@ describe('#Resources', function () { | |||
it('includes setup for scritplet globals', function () { | |||
expect(resources.getScriptlet('a')).to.include('var scriptletGlobals = {};'); | |||
}); | |||
|
|||
it('allows resources surrogate', function () { | |||
expect(resources.getScriptlet('surrogate')) |
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.
are those things always called without .js
?
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.
Yes, resources surrogates are always called without suffix or file extension. Also, uBo gradually plan to drop calling scriptlets with suffix or file extension in the future.
Co-authored-by: Krzysztof Modras <[email protected]>
refs https://github.com/gorhill/uBlock/wiki/Resources-Library
refs #4392
fixes #4393