Kingsley Yung
91c717ccc8
script: Simplify IDL dictionary conversion in SubtleCrypto ( #42655 )
...
In `NormalizedAlgorithm::from_object_value`, we use
`dictionary_from_jsval` to convert `HandleValue` into IDL dictionary
types generated by `script_bingings`, and immediately use `From`,
`TryFrom`, `TryFromWithCx` trait implementation to convert them into
webcrypto's subtle dictionary types.
Since our webcrypto implementation doesn't directly use the dictionary
types generated by `script_bingings`, this patch combines the 2 steps of
this conversion into one step, by using `TryFromWithCx` trait
implementation for those dictionaries and moving the
`dictionary_from_jsval` calls into `try_from_with_cx`.
Testing: Refactoring. Existing tests suffice.
Fixes: Preparation for #42579
Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev >
2026-02-22 23:14:22 +00:00
..
2026-02-22 13:22:33 +00:00
2026-02-20 16:19:15 +00:00
2026-02-21 05:24:42 +00:00
2026-02-21 08:44:18 +00:00
2025-11-20 06:20:47 +00:00
2026-02-15 15:30:27 +00:00
2026-02-22 21:35:51 +00:00
2026-02-12 15:17:30 +00:00
2026-02-12 15:17:30 +00:00
2026-02-22 13:22:33 +00:00
2026-02-22 16:26:25 +00:00
2026-02-22 13:22:33 +00:00
2026-02-09 17:34:03 +00:00
2026-02-01 17:03:23 +00:00
2026-02-20 16:03:21 +00:00
2026-02-14 12:11:14 +00:00
2026-02-21 10:57:43 +00:00
2026-01-26 06:02:50 +00:00
2026-02-20 17:32:34 +00:00
2026-02-16 18:58:39 +00:00
2026-02-18 04:22:50 +00:00
2026-02-12 15:17:30 +00:00
2026-02-04 08:15:12 +00:00
2026-02-12 15:17:30 +00:00
2026-02-20 16:03:21 +00:00
2026-02-14 10:03:25 +00:00
2026-02-14 10:03:25 +00:00
2026-01-10 08:05:49 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2025-11-15 17:59:57 +00:00
2025-11-24 22:41:45 +00:00
2026-02-20 10:47:43 +00:00
2026-02-07 19:53:00 +00:00
2026-02-20 18:42:50 +00:00
2026-02-09 17:34:03 +00:00
2026-01-09 10:09:45 +00:00
2026-02-12 15:17:30 +00:00
2025-11-04 18:29:06 +00:00
2026-01-01 13:40:20 +00:00
2025-11-04 18:29:06 +00:00
2026-02-22 22:21:44 +00:00
2026-02-12 15:17:30 +00:00
2025-12-19 09:01:08 +00:00
2025-12-12 14:33:45 +00:00
2026-02-21 10:57:43 +00:00
2026-02-12 15:17:30 +00:00
2025-11-01 05:32:45 +00:00
2025-12-01 22:33:27 +00:00
2025-10-23 14:02:28 +00:00
2025-10-05 15:12:16 +00:00
2025-10-05 15:12:16 +00:00
2025-10-26 03:15:20 +00:00
2026-01-27 15:46:54 +00:00
2026-02-09 12:58:51 +00:00
2025-08-12 04:53:53 +00:00
2026-02-18 10:08:46 +00:00
2026-01-19 19:27:52 +00:00
2026-01-16 10:17:55 +00:00
2026-01-10 08:05:49 +00:00
2026-02-17 13:15:24 +00:00
2026-02-10 11:42:02 +00:00
2026-02-22 13:08:19 +00:00
2026-02-22 21:35:51 +00:00
2026-02-02 08:25:54 +00:00
2026-02-12 15:17:30 +00:00
2026-01-10 08:05:49 +00:00
2025-12-05 07:23:32 +00:00
2026-01-27 18:09:01 +00:00
2026-02-12 15:17:30 +00:00
2026-02-12 15:17:30 +00:00
2026-02-22 13:22:33 +00:00
2025-12-05 07:23:32 +00:00
2025-12-05 07:23:32 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-02-08 09:22:50 +00:00
2025-11-01 05:32:45 +00:00
2026-02-12 15:17:30 +00:00
2026-02-22 13:22:33 +00:00
2026-02-12 15:17:30 +00:00
2025-11-01 05:32:45 +00:00
2026-02-20 15:50:46 +00:00
2026-02-20 16:03:21 +00:00
2026-02-20 15:50:46 +00:00
2025-12-05 07:23:32 +00:00
2025-12-05 07:23:32 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-08 07:49:27 +00:00
2025-12-12 14:33:45 +00:00
2026-01-03 10:54:27 +00:00
2026-02-12 15:17:30 +00:00
2025-11-01 05:32:45 +00:00
2026-02-22 09:14:39 +00:00
2026-02-19 11:05:33 +00:00
2025-11-06 11:06:03 +00:00
2026-01-03 10:54:27 +00:00
2026-02-12 15:17:30 +00:00
2026-01-16 07:15:35 +00:00
2026-01-03 10:54:27 +00:00
2026-02-12 15:17:30 +00:00
2026-01-03 10:54:27 +00:00
2026-01-27 18:09:01 +00:00
2026-02-16 18:55:42 +00:00
2026-01-10 08:05:49 +00:00
2026-02-14 10:03:25 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-02-17 16:08:54 +00:00
2026-02-10 07:44:59 +00:00
2026-02-12 15:17:30 +00:00
2026-01-10 08:05:49 +00:00
2026-02-17 05:36:38 +00:00
2026-01-10 08:05:49 +00:00
2026-02-20 16:03:21 +00:00
2025-12-05 07:23:32 +00:00
2026-02-20 18:42:50 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-02-21 05:24:42 +00:00
2026-02-12 15:17:30 +00:00
2025-11-01 05:32:45 +00:00
2026-02-17 13:15:24 +00:00
2026-02-21 05:24:42 +00:00
2025-11-01 05:32:45 +00:00
2025-08-09 18:01:00 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-02-10 07:44:59 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-02-20 16:03:21 +00:00
2026-01-03 10:54:27 +00:00
2026-02-12 08:46:14 +00:00
2025-12-27 16:33:26 +00:00
2026-01-10 08:05:49 +00:00
2026-02-12 15:17:30 +00:00
2026-01-10 08:05:49 +00:00
2026-02-22 13:22:33 +00:00
2026-02-22 09:26:15 +00:00
2026-02-20 16:03:21 +00:00
2026-01-10 08:05:49 +00:00
2026-02-12 15:17:30 +00:00
2026-01-23 15:38:57 +00:00
2026-02-12 15:17:30 +00:00
2025-11-01 05:32:45 +00:00
2026-01-23 15:38:57 +00:00
2026-02-17 13:19:41 +00:00
2026-02-09 17:31:59 +00:00
2026-02-22 13:22:33 +00:00
2025-12-05 07:23:32 +00:00
2025-12-21 12:45:43 +00:00
2025-12-05 07:23:32 +00:00
2025-12-05 07:23:32 +00:00
2026-02-22 23:14:22 +00:00
2025-11-07 01:08:00 +00:00
2026-01-21 08:04:15 +00:00
2026-02-12 15:17:30 +00:00
2026-02-12 15:17:30 +00:00
2026-02-12 15:17:30 +00:00
2025-12-12 14:33:45 +00:00
2026-02-12 15:17:30 +00:00
2026-01-03 10:54:27 +00:00
2025-11-02 18:20:18 +00:00
2026-02-10 07:44:59 +00:00
2025-09-15 08:50:16 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-02-12 15:17:30 +00:00
2026-02-12 15:17:30 +00:00
2025-11-01 05:32:45 +00:00
2026-02-12 15:17:30 +00:00
2025-12-05 07:23:32 +00:00
2026-02-12 15:17:30 +00:00
2026-02-12 15:17:30 +00:00
2026-02-03 23:20:54 +00:00
2026-02-16 08:32:08 +00:00
2025-10-26 03:29:51 +00:00
2025-11-13 14:53:57 +00:00
2026-02-17 13:20:52 +00:00
2026-01-10 08:05:49 +00:00
2026-01-28 09:33:55 +00:00
2026-02-09 17:34:03 +00:00
2025-11-01 05:32:45 +00:00
2026-02-20 17:32:34 +00:00
2026-02-12 04:10:30 +00:00
2026-02-17 05:37:59 +00:00
2026-02-17 13:15:24 +00:00
2026-01-27 18:09:01 +00:00
2026-02-22 13:22:33 +00:00
2026-02-12 15:17:30 +00:00
2025-10-25 23:25:01 +00:00
2026-02-12 15:17:30 +00:00
2026-02-12 15:17:30 +00:00