Skip to content

Transient activation and focus #11330

Open
@eladalon1983

Description

@eladalon1983

What is the issue with the HTML Standard?

A question about transient activation came up in the WebRTC WG during a discussion about screen-sharing.getDisplayMedia() returns a promise, and then if the user chooses to share a tab/window/screen, that promise is resolved. We have recently specified that when resolving that promise, the UA will also consider the document to have regained transient activation.

  • In the case of Chromium’s implementation, it is virtually guaranteed that at the critical moment, the document “has focus.” (I use “focus” imprecisely here, as a layman.) This is because Chromium implements the dialog as attached to the tab from which the call originated.
  • In the case of Safari’s implementation, if the user chooses to share a window, then Safari might be obscured by the chosen window at that final, critical moment.

Our question is: Do you see any problem in Safari’s case here? Would conferring transient activation on a document that is not “focused” pose any issues? If so, how may we mitigate them in the spec?

Thanks,
Elad

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions