这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@markafoltz

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

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