← 返回首页
Steps that re-use objects should specify the relevant settings object/Javascript Realm · Issue #391 · w3c/presentation-api · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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

New issue
New issue

Description

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Footer

      © 2026 GitHub, Inc.