Skip to content

window.anonymous usage in the wild #1

Closed

Description

@miketaylr

Have y'all done any analysis of how common window.anonymous is on the web, maybe via HTTP Archive?

A quick search finds https://github.com/firebase/firebase-js-sdk/search?q=window.anonymous&type=code, which might create some confusing test errors down the road. Not sure that's a deal-breaker, but just flagging for awareness.

Activity

  1. ArthurSonzogni commented on Mar 28, 2022

    @ArthurSonzogni
    Collaborator

    Thanks!

    Initially, this was document.anonymous, but we realized during the implementation that this was more a property of the window instead of its documents. See: camillelamy/explainers#21

    We can still expose document.anonymous and say it returns the document`s responsible window (if any) anonymous attribute.

    I will run an HTTP archive query and put the result here once it is known. Thanks again for raising this potential issue!

  2. ArthurSonzogni commented on Mar 28, 2022

    @ArthurSonzogni
    Collaborator

    Here is the public HTTP archive analysis:
    https://docs.google.com/document/d/1MKGUfGzEEKpll88QspKiwDRWdkOMVh3OOXSrxGWe1Y4/edit#
    Summary:

  3. ArthurSonzogni commented on Apr 5, 2022

    @ArthurSonzogni
    Collaborator

    We are going to update to a more uncommon name: window.isAnonymousFramed.

  4. miketaylr commented on Apr 5, 2022

    @miketaylr
    Author

    Sounds good, thanks!

  5. ArthurSonzogni commented on Apr 20, 2022

    @ArthurSonzogni
    Collaborator

    (keeping this open, up until it gets fixed in the spec and the implementation)

  6. mikewest commented on Apr 28, 2022

    @mikewest
    Member

    Grammar nit: isAnonymouslyFramed sounds better to me. :)

  7. ArthurSonzogni commented on May 9, 2022

    @ArthurSonzogni
    Collaborator

    Resolved in both Chrome and the specification thanks to @iVanlIsh

  8. added a commit that references this issue on May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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