AboutSupportDeveloper GuideVersion 47.154.100.2
OpenFin JavaScript API
    Preparing search index...

    Interface ChildContentBlockedEvent

    Generated when a child content is blocked to load.

    interface ChildContentBlockedEvent {
        disposition: ContentCreationDisposition;
        features: string;
        frameName: string;
        name: string;
        parsedFeatures: Partial<WindowOptions>;
        rule: ContentCreationRule;
        topic: string;
        type: "child-content-blocked";
        url: string;
        uuid: string;
    }
    Index

    The reported disposition of the content creation request.

    • default - The default behavior of the browser.
    • foreground-tab - The content is loaded in a new tab in the foreground. This is the default behavior for window.open() or a link with target=_blank.
    • background-tab - The content is loaded in a new tab in the background. This is the default behavior when clicking on a link with the ctrl or cmd key pressed.
    • new-window - The content is loaded in a new window. This is the default behavior when clicking on a link with the shift key pressed.
    • popup - The content is loaded in a popup window. This is the result of passing popup features to window.open().
    • other - The content is loaded in some other way.
    features: string

    The features string passed to window.open()

    frameName: string

    The frame name passed to window.open()

    name: string
    parsedFeatures: Partial<WindowOptions>

    The features string passed to window.open() converted to OpenFin window options

    The rule which triggered this event. May be undefined on child-window-created where no rule corresponds to the child Window creation.

    Note: It is only defined if the rules engine found a match for a user-supplied rule, not in the case of an api call or the default behavior.

    topic: string

    The "kebab-case" classname of the emitter that raised the event.

    OpenFin.Frame is represented as iframe.

    type: "child-content-blocked"

    The type of event that was raised. Equal to the typename of the event payload in "kebab case".

    Guaranteed to be unique within each topic, but can be repeated between topics (e.g. WebContentsEvents.CrashedEvent and ApplicationEvents.CrashedEvent).

    url: string

    The absolute url which triggered this event.

    uuid: string