-
Notifications
You must be signed in to change notification settings - Fork 53
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
Hostname exclusion not working with importScripts()
#114
Comments
When looking at Network pane in dev tools, what is the "Initiator" when the script if fetched by the browser? |
What I am wondering is whether the domain of the initiator matches your "No filtering" entry. |
uBOL uses const rule = {
id: TRUSTED_DIRECTIVE_BASE_RULE_ID,
action: { type: 'allowAllRequests' },
condition: {
requestDomains: [ ... ],
resourceTypes: [ 'main_frame' ],
},
priority: 100,
}; However I suspect in your scenario that rule is not matched because your service worker script is fetched from another service worker script, not from a document ( const rule = {
id: TRUSTED_DIRECTIVE_BASE_RULE_ID+1,
action: { type: 'allowAllRequests' },
condition: {
initiatorDomains: [ ... ],
resourceTypes: [ 'script' ],
},
priority: 100,
}; If I could reproduce similar case on my side I would investigate a solution. |
looks like Maybe try blocking |
GHE page's hostname is If I don't exclude |
I added a filter to block anything from |
Couldn't get a SW on |
DNR's I found that a solution is to add an extra rule to exempt resources of type The fix will be in next release. |
Thanks for your patience and hard work! |
Seems like it's still an issue on |
Unfortunately without being able to investigate first-hand, I won't be able to make a diagnosis, which is necessary to come up with a solution. |
Our internal GitHub loads a shared worker at
which works.
The worker's only content is
but this fails.
I have
[workplace.com]
in theNo filtering
list, but it doesn't seem to work for theimportScripts()
call.Disabling the default
Ads, trackers, miners, and more
does make it work though, because[workplace.com]
is otherwise blocked.I have the filtering mode set to Optimal. I'm on Chrome
121.0.6167.140
.Dunno if this is an MV3 limitation or not 🤷♂️
The text was updated successfully, but these errors were encountered: