abort-on-iframe-property-read

abort-on-iframe-property-read

The abort-on-iframe-property-read snippet patches a list of properties on the iframe's window object that aborts execution when the property is read.

You can use this snippet to prevent CV providers from using iframe native functions.

Parameters

Name

Description

Mandatory

properties

The list with the targeted properties to abort.

Yes

Filter examples

Filter

Result

abort-on-iframe-property-read atob

The code that reads/calls the atob function inside an iframe throws an exception.

abort-on-iframe-property-read atob btoa

The code that reads/calls the atob or btoa function inside an iframe throws an exception.

abort-on-iframe-property-read adHandler.cmd.push

The code that reads/calls the push function throws an exception.

abort-on-iframe-property-read Element.prototype.attachShadow

The code that reads/calls the attachShadow property throws an exception.

Debugging

Message

When

Definition

no property to abort on read

Beginning of execution

No property parameter was passed.

<property> access aborted

Each time property is set

The error is about to be thrown.

aborting on <property> access

Before attaching to property

Snippet is taking over the property getter/setter.