Non-Latin text in devtools panel title throws `TypeError: Invalid view ID '{title}'`

29 views
Skip to first unread message

Warren Halderman

unread,
Nov 19, 2025, 6:51:03 PM (2 days ago) Nov 19
to Chromium Extensions
> chrome.devtools.panels.create('診断', ...)
< legacy.js:52 Uncaught (in promise) TypeError: Invalid view ID '診断'
    at new SimpleView (legacy.js:52:35668)
    at new K (extensions.js:5:41686)
    at G.onCreatePanel (extensions.js:5:23553)
    at G.onmessage (extensions.js:5:38187)

Apparently the Panel title needs to satisfy the `isExtendedKebabCase` check, which appears to against the regex `/^([a-z0-9]+(?:-[a-z0-9]+)*\.)*[a-z0-9]+(?:-[a-z0-9]+)*$/`.

This caught me off guard, since the built-in panels have localized titles...
Reply all
Reply to author
Forward
0 new messages