1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

Fix content script's broken context lookup from sandboxed anonymous frames

This commit is contained in:
Raymond Hill 2021-01-08 13:12:48 -05:00
parent 5fa873960f
commit 03e1b16961
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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;
}