Yichen Jiang
7d2d22aaf9
fix(ui-primitives): look up file types in Maps so prototype keys miss
...
classifyFileType and classifyCodeFileType indexed plain objects by the
lowercased basename and extension, so a file named `constructor` or
`__proto__` (or with that extension) resolved an inherited
Object.prototype member and FileTypeIcon threw from its assertNever,
crashing every view that lists the file. The name and extension tables
are now Maps, so such names fall through to their real type or `other`.
Fixes #8205
2026-11-10 10:32:03 +08:00
..
2026-11-07 00:56:13 +08:00
2026-11-05 12:58:57 +08:00
2026-10-20 12:50:31 +08:00
2026-10-21 20:45:12 +08:00
2026-11-02 22:27:26 +08:00
2026-09-08 13:19:09 +08:00
2026-10-20 17:07:57 +08:00
2026-10-20 13:41:45 +08:00
2026-09-24 12:24:47 +08:00
2026-10-28 11:21:57 +08:00
2026-09-10 20:51:46 +08:00
2026-09-10 20:51:46 +08:00
2026-11-10 10:32:03 +08:00
2026-09-21 17:42:11 +08:00
2026-10-20 12:50:31 +08:00
2026-09-10 20:51:46 +08:00
2026-09-21 22:40:55 +08:00
2026-10-07 02:04:33 +08:00
2026-10-07 02:04:33 +08:00
2026-09-24 14:58:54 +08:00
2026-09-21 18:26:03 +08:00
2026-10-20 12:50:31 +08:00
2026-09-17 19:14:41 +08:00
2026-09-15 02:26:57 +08:00
2026-10-19 23:00:32 +08:00
2026-10-19 19:13:22 +08:00
2026-10-20 12:50:31 +08:00
2026-09-22 15:44:57 +08:00
2026-10-20 17:07:57 +08:00
2026-10-08 07:31:13 -07:00
2026-10-22 12:46:05 +08:00
2026-10-20 17:45:09 +08:00
2026-10-21 11:36:08 +08:00
2026-09-09 16:41:15 +08:00
2026-11-10 10:32:03 +08:00
2026-10-22 10:18:39 +08:00
2026-09-24 17:53:53 +08:00
2026-11-05 15:39:27 +08:00
2026-10-23 12:52:35 +08:00
2026-10-21 14:41:41 +08:00
2026-10-20 18:25:11 +08:00
2026-10-05 23:55:51 +08:00
2026-10-28 19:15:45 +08:00
2026-09-24 14:58:55 +08:00
2026-09-23 17:12:03 +08:00
2026-11-06 11:29:43 +08:00
2026-09-29 16:56:26 +08:00
2026-09-29 16:56:26 +08:00
2026-09-22 20:28:10 +08:00
2026-09-24 15:38:51 +08:00
2026-09-29 16:56:26 +08:00
2026-11-05 11:25:51 +08:00
2026-11-02 14:43:58 +08:00
2026-09-22 21:02:32 +08:00
2026-09-17 21:04:42 +08:00
2026-11-04 12:26:20 +08:00
2026-11-04 12:26:20 +08:00
2026-11-04 12:26:20 +08:00
2026-09-29 00:01:58 +08:00
2026-09-29 00:01:58 +08:00
2026-11-03 17:27:32 +08:00
2026-10-22 15:35:52 +08:00
2026-10-22 15:35:52 +08:00
2026-10-28 11:21:57 +08:00
2026-10-28 11:21:57 +08:00
2026-10-21 22:51:47 +08:00
2026-09-21 14:45:18 +08:00
2026-09-21 15:19:38 +08:00
2026-10-09 16:03:26 +08:00
2026-10-20 12:50:31 +08:00
2026-09-05 15:04:17 +08:00
2026-09-27 01:00:50 +08:00
2026-11-06 13:10:37 +08:00
2026-11-06 13:10:37 +08:00
2026-09-08 12:28:40 +08:00
2026-10-20 12:50:31 +08:00
2026-09-21 22:40:55 +08:00
2026-09-23 23:46:21 +08:00
2026-10-28 11:21:57 +08:00
2026-10-28 11:21:57 +08:00
2026-10-21 20:45:12 +08:00
2026-10-20 12:50:31 +08:00
2026-10-21 23:44:02 +08:00
2026-10-20 12:50:31 +08:00
2026-09-19 16:04:34 +08:00
2026-10-21 16:44:06 +08:00
2026-10-19 22:36:08 +08:00
2026-09-24 17:53:53 +08:00
2026-09-24 17:53:53 +08:00
2026-09-17 19:14:41 +08:00
2026-09-21 11:11:21 +08:00
2026-10-01 22:40:13 +08:00
2026-11-04 12:26:20 +08:00
2026-09-28 15:46:43 +08:00
2026-09-18 22:11:53 +08:00
2026-09-05 14:54:42 +08:00
2026-09-05 14:32:59 +08:00
2026-10-20 12:50:31 +08:00
2026-10-21 23:44:02 +08:00
2026-09-28 16:48:53 +08:00
2026-09-28 16:48:53 +08:00
2026-11-05 11:25:51 +08:00
2026-09-19 12:54:13 +08:00
2026-10-20 15:17:13 +08:00
2026-11-05 15:39:27 +08:00
2026-10-22 21:18:15 +08:00
2026-10-21 23:44:02 +08:00
2026-09-28 16:55:49 +08:00
2026-11-04 12:26:20 +08:00
2026-10-20 19:51:19 +08:00
2026-09-21 17:48:27 +08:00
2026-10-28 19:15:45 +08:00
2026-10-21 23:44:02 +08:00
2026-10-21 23:44:02 +08:00
2026-10-26 15:00:59 +08:00
2026-10-20 12:50:31 +08:00
2026-09-17 19:14:41 +08:00
2026-10-22 12:46:06 +08:00
2026-10-22 12:46:06 +08:00