Apply CSP/PP injections to `object` resources

Related feedback:
https://old.reddit.com/r/uBlockOrigin/comments/1f84tc5/
This commit is contained in:
Raymond Hill 2024-09-04 11:28:45 -04:00
parent 22fb9c4d63
commit 89f02098fd
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

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