Skip to content

In Firefox this.props.onMessage never fired because nativeEvent.isTrusted is always false #12

Closed
@adrianicv

Description

@adrianicv

Hi,
I was testing the webview in Firefox and the onMessage function was never fired. After debugging, I realized that the problem was in this line:

onMessage = nativeEvent => nativeEvent.isTrusted && this.props.onMessage({ nativeEvent });

In Chrome isTrusted is always equal to true, but in Firefox isTrusted is always equal to false therefore the onMessage prop function is never been executed.

I don't know how to handle this case, any ideas?

BR!

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