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

101 views
Skip to first unread message

Warren Halderman

unread,
Nov 19, 2025, 6:51:03 PM11/19/25
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...

Patrick Kettner

unread,
12:37 AM (10 hours ago) 12:37 AM
to Chromium Extensions, whald...@bruceclay.com
Thanks a lot for the report!
Not sure if you saw, but crbug.com/471095588 was filed for this issue a few weeks later, and 7376811 was merged this last week. A fix for the issue is in Chrome 145.0.7624.0 +

Reply all
Reply to author
Forward
0 new messages