Nico Weber
b9ce56aee6
LibWeb: Make btoa() and atob() correctly handle values between 128 and 255
...
btoa() takes a byte string, so it must decode the UTF-8 argument into
a Vector<u8> before calling encode_base64.
Likewise, in atob() decode_base64 returns a byte string, so that needs
to be converted to UTF-8.
With this, `btoa(String.fromCharCode(255))` is '/w==' as it should
be, and `atob(btoa(String.fromCharCode(255))) == String.fromCharCode(255)`
remains true.
2020-07-22 19:22:00 +02:00
..
2020-07-03 19:30:13 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-07-13 15:07:29 +02:00
2020-07-11 18:54:13 +02:00
2020-07-13 15:07:29 +02:00
2020-07-11 18:54:13 +02:00
2020-07-11 18:54:13 +02:00
2020-07-11 18:54:13 +02:00
2020-06-20 15:46:30 +02:00
2020-06-07 19:29:40 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-07-11 23:13:29 +02:00
2020-06-21 15:15:52 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-06-20 17:50:48 +02:00
2020-06-21 15:15:52 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-04-29 18:47:03 +02:00
2020-06-20 15:46:30 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-06-11 07:46:20 +02:00
2020-07-22 19:22:00 +02:00
2020-06-02 15:22:34 +02:00
2020-06-02 15:22:34 +02:00
2020-06-23 17:21:53 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-07-14 20:15:19 +02:00
2020-07-14 20:15:19 +02:00
2020-07-13 15:07:29 +02:00
2020-07-11 18:54:13 +02:00
2020-06-06 22:13:01 +02:00
2020-06-06 22:13:01 +02:00
2020-07-14 17:58:42 +02:00
2020-07-14 17:58:42 +02:00
2020-07-11 18:54:13 +02:00
2020-07-11 18:54:13 +02:00
2020-07-11 23:13:29 +02:00
2020-07-06 23:40:35 +02:00
2020-06-29 17:54:54 +02:00
2020-06-29 17:54:54 +02:00
2020-05-05 09:15:16 +02:00
2020-04-19 17:34:33 +02:00
2020-07-11 23:13:29 +02:00
2020-06-22 10:33:50 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-06-23 17:56:57 +02:00
2020-06-23 17:56:57 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-06-23 17:21:53 +02:00
2020-07-15 18:24:55 +02:00
2020-07-15 18:24:55 +02:00
2020-07-15 18:24:55 +02:00
2020-07-11 18:54:13 +02:00
2020-07-13 15:07:29 +02:00
2020-07-11 18:54:13 +02:00
2020-07-01 11:16:37 +02:00
2020-07-11 23:13:29 +02:00
2020-06-21 15:15:52 +02:00
2020-06-20 15:46:30 +02:00
2020-04-04 12:58:05 +02:00
2020-06-06 22:13:01 +02:00
2020-06-06 22:13:01 +02:00
2020-07-09 23:33:00 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-07-09 23:33:00 +02:00
2020-07-11 23:13:29 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-06-20 17:50:48 +02:00
2020-06-20 17:50:48 +02:00
2020-07-11 18:54:13 +02:00
2020-06-21 15:15:52 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-06-20 15:46:30 +02:00
2020-06-21 15:15:52 +02:00
2020-07-01 11:16:37 +02:00
2020-07-01 11:16:37 +02:00
2020-07-09 23:33:00 +02:00
2020-07-09 23:33:00 +02:00
2020-07-06 23:40:35 +02:00
2020-07-01 11:16:37 +02:00
2020-07-13 15:07:29 +02:00
2020-07-13 15:07:29 +02:00
2020-07-13 15:07:29 +02:00
2020-07-13 15:07:29 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-07-09 23:33:00 +02:00
2020-07-22 17:26:34 +02:00
2020-07-22 15:48:01 +02:00
2020-06-20 15:46:30 +02:00
2020-07-09 23:33:00 +02:00
2020-07-11 18:54:13 +02:00
2020-07-01 11:16:37 +02:00
2020-07-09 23:29:28 +02:00
2020-07-09 23:29:28 +02:00
2020-07-11 23:13:29 +02:00
2020-06-21 15:15:52 +02:00
2020-06-23 17:21:53 +02:00
2020-06-21 15:15:52 +02:00
2020-07-14 20:15:19 +02:00
2020-07-14 20:15:19 +02:00