Skip to content

main/blocker-frames

connectBlockerFrames(blocker, isWebSession, preload): (session) => void

Defined in: app/src/main/blocker-frames.ts:23

Connects the content blocker to the frames of web pages. Every web frame runs the frame preload, which asks for its rules once, synchronously, so scriptlets run before the page’s own scripts, and later reports its elements. The answers depend only on the frame’s own address, which the browser process reads from the frame instead of trusting the message, and frames of the browser’s own pages get nothing.

ContentBlocker

The content blocker.

(session) => boolean

Tells whether a session holds web content.

string

Path of the frame preload.

A function that adds the frame preload to a web session.

(session) => void