mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
Fix content script's broken context lookup from sandboxed anonymous frames
This commit is contained in:
parent
5fa873960f
commit
03e1b16961
@ -116,7 +116,8 @@ vAPI.contentScript = true;
|
||||
try {
|
||||
while (
|
||||
context !== self.top &&
|
||||
context.location.href.startsWith('about:blank')
|
||||
context.location.href.startsWith('about:blank') &&
|
||||
context.parent.location.href
|
||||
) {
|
||||
context = context.parent;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user