Skip to content

_unsafeReadProtoTagged should not rely on window #10

@rnons

Description

@rnons

Current implementation of _unsafeReadProtoTagged relies on the window object

if (typeof window !== "undefined") {
    var ty = window[name];
    if (ty != null && value instanceof ty) {
      return just(value);
    }

But it's possible that the value or event comes from a different window context, like an event from iframe, then value instanceof ty will fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions