Skip to content

Steps that re-use objects should specify the relevant settings object/Javascript Realm #391

Closed

Description

@markafoltz

There are three algorithms that re-use objects:

  • getAvailability re-uses a Promise and a PresentationAvailability
  • reconnect re-uses a PresentationConnection
  • navigator.presentation.receiver.connectionList re-uses a Promise and PresentationConnectionList

These steps need to specify the relevant settings object / Realm, instead of the current settings object/realm. Otherwise, badness ensues when they are invoked or accessed across browsing contexts. See [1] for an example of this with navigator.getBattery().

[1] https://www.w3.org/TR/html52/webappapis.html#realms-settings-objects-global-objects

Activity

  1. added a commit that references this issue on Dec 14, 2016
  2. added a commit that references this issue on Dec 21, 2016
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