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
1 changed files with 2 additions and 1 deletions

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