mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Skip trying to find effective context for about:srcdoc frames
`about:srcdoc` frames are their own origin, trying to use the origin of the parent context causes an exception to be thrown when accessing location.href.
This commit is contained in:
parent
4b943cf07f
commit
8d3c4916b0
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ vAPI.contentScript = true;
|
|||
try {
|
||||
while (
|
||||
context !== self.top &&
|
||||
context.location.protocol === 'about:'
|
||||
context.location.href.startsWith('about:blank')
|
||||
) {
|
||||
context = context.parent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue