mirror of https://github.com/gorhill/uBlock.git
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