Skip to content

Commit

Permalink
Restore behind-the-scene origin for docless secondary resources
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Mar 1, 2023
1 parent 4690885 commit 8f32bee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ const µBlock = { // jshint ignore:line
this.setDocOrigin(origin).setTabOrigin(origin);
return this;
}
const origin = originFromURI(this.url);
const origin = (this.itype & this.FRAME_ANY) !== 0
? originFromURI(this.url)
: this.tabOrigin;
this.setDocOrigin(origin).setTabOrigin(origin);
return this;
}
Expand Down

0 comments on commit 8f32bee

Please sign in to comment.