main/blocker-frames
Functions
Section titled “Functions”connectBlockerFrames()
Section titled “connectBlockerFrames()”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.
Parameters
Section titled “Parameters”blocker
Section titled “blocker”The content blocker.
isWebSession
Section titled “isWebSession”(session) => boolean
Tells whether a session holds web content.
preload
Section titled “preload”string
Path of the frame preload.
Returns
Section titled “Returns”A function that adds the frame preload to a web session.
(session) => void