abort-on-iframe-property-write

abort-on-iframe-property-write

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

You can use this snippet to prevent CV providers from overwriting properties inside an iframe.

Parameters

Name

Description

Mandatory

properties

The list with the targeted properties to abort.

Yes

Filter examples

Filter

Result

abort-on-iframe-property-write atob

The code that sets the atob function inside an iframe throws an exception.

abort-on-iframe-property-write atob btoa

The code that sets the atob or btoa function inside an iframe throws an exception.

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

The code that sets the push function throws an exception.

abort-on-iframe-property-write Object.prototype.adfoxCode

The code that sets the adfoxCode property throws an exception.

Debugging

Message

When

Definition

no property to abort on write

Beginning of execution

No property parameter was passed.

setting <property> aborted

Each time property is set

The error is about to be thrown.

aborting when setting <property>

Before attaching to property

Snippet is taking over the property getter/setter.