Skip to content

Commit

Permalink
Apply CSP/PP injections to object resources
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Sep 4, 2024
1 parent 22fb9c4 commit 89f0209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ const µBlock = { // jshint ignore:line
this.setDocOrigin(origin).setTabOrigin(origin);
return this;
}
const origin = (this.itype & this.FRAME_ANY) !== 0
const origin = this.isDocument()
? originFromURI(this.url)
: this.tabOrigin;
this.setDocOrigin(origin).setTabOrigin(origin);
Expand Down
2 changes: 1 addition & 1 deletion src/js/filtering-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const XMLHTTPREQUEST = 1 << 13;
export const INLINE_FONT = 1 << 14;
export const INLINE_SCRIPT = 1 << 15;
export const OTHER = 1 << 16;
export const FRAME_ANY = MAIN_FRAME | SUB_FRAME;
export const FRAME_ANY = MAIN_FRAME | SUB_FRAME | OBJECT;
export const FONT_ANY = FONT | INLINE_FONT;
export const INLINE_ANY = INLINE_FONT | INLINE_SCRIPT;
export const PING_ANY = BEACON | CSP_REPORT | PING;
Expand Down

0 comments on commit 89f0209

Please sign in to comment.