mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-16 15:33:38 +01:00
Apply CSP/PP injections to object
resources
Related feedback: https://old.reddit.com/r/uBlockOrigin/comments/1f84tc5/
This commit is contained in:
parent
22fb9c4d63
commit
89f02098fd
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user