Skip to content

"on-google-signin-aware-" events don't fire when opened in background. #152

@danjacques

Description

@danjacques

The code that ultimately results in the events being fired iterates through the signinAwares list, which is the list of <google-auth-signin-aware> elements that have been attached at that point.

I encountered an issue with this element when opening a page in the background (e.g., middle-click on a link). At this point, Polymer sets enough properties to kick off the AuthEngine initialization and login workflow, but Polymer hasn't actually attached all of its elements yet, so elements that are bound via Polymer to that event don't actually receive it.

I was able to fix this by hooking Polymer's ready event instead of its attached event here.

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