Skip to content

Can a fully active document have a null browsing context? #9509

Closed
@rakuco

Description

@rakuco

I'm asking this in the context of w3c/screen-wake-lock#362 -- one of the spec's algorithms does something like this:

  • Let document be this's relevant global object's associated Document.
  • ...
  • If document's browsing context is null, return a promise rejected with "NotAllowedError" DOMException.
  • If document is not fully active, return a promise rejected with with a "NotAllowedError" DOMException.
  • ...

I'd like to remove the browsing context check, as I can't think of a case where the relevant global object's associated Document is fully active and has a null browsing context, but I feel like I should double check first.

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