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