Skip to content

Restrictions on the value of "Private-Network-Access-Name" #150

Description

@goto-bus-stop

In https://wicg.github.io/private-network-access/#permission-prompt, the spec currently says:

Private-Network-Access-Name should be a valid name which is a string that matches the [ECMAScript] regexp /^[a-z0-9_-.]+$/. 248 is the maximum number of UTF-8 code units in the name.

The regex /^[a-z0-9_-.]+$/ suggests only lowercase letters, digits, ., _, and - are allowed, so no spaces or "special characters" or non-English alphabets. Elsewhere in the spec though, examples do not follow this restriction.

  • The example immediately above contains spaces: Private-Network-Access-Name: "My Smart Toothbrush" (i'm not sure the quotes here are intended to be part of the value or to delimit the value)
  • The Mixed Content section lists an example with an apostrophe: Private-Network-Access-Name: userA’s MegaCorp device

What should we make of this?
#119 added this restriction. Is it just the case that examples were not updated to match this new restriction? Should I open a PR to update the examples? 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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