Lauri Ojansivu
0495b8729d
Copying a code block in a card description no longer opens a new tab.
...
The copy button of a code block is an <a href="#"> inside the card viewer.
Its own listener copied the text and prevented the navigation, but the click
went on to the viewer's 'click a' handler, which opens every link it sees in
a new tab - here this page plus "#". The button now stops the click, and the
viewer handler leaves the copy button alone and no longer opens a link to a
place on the page ("#", "#section") in a new tab; it moves to the target in
place when there is one.
tests/copyCodeBlock.test.cjs pins both and their order before window.open;
tests/playwright/specs/viewer-copy-code.e2e.js clicks the button and checks
that no tab opens, the page stays and the block's text is copied.
Thanks to carl-unique and xet7 !
Fixes #6753 .
2026-10-10 01:20:53 +03:00
..
2026-09-19 23:45:21 +03:00
2026-09-19 23:23:12 +03:00
2026-10-08 12:01:22 +03:00
2026-09-19 23:45:21 +03:00
2026-09-27 13:45:41 +03:00
2026-09-20 00:23:45 +03:00
2026-09-20 12:25:56 +03:00
2026-09-27 13:45:41 +03:00
2026-09-20 00:14:29 +03:00
2026-09-20 00:23:45 +03:00
2026-10-07 18:55:54 +03:00
2026-09-15 00:54:45 +03:00
2026-09-25 01:42:55 +03:00
2026-09-20 00:41:35 +03:00
2026-09-27 13:45:41 +03:00
2026-09-20 00:46:27 +03:00
2026-10-02 11:14:05 +03:00
2026-08-28 08:24:49 +03:00
2026-09-01 03:05:22 +03:00
2026-10-09 09:48:47 +03:00
2026-09-29 17:14:55 +03:00
2026-08-28 15:00:09 +03:00
2026-09-22 14:38:20 +03:00
2026-07-28 17:59:17 +03:00
2026-10-09 13:13:37 +03:00
2026-09-01 03:05:22 +03:00
2026-10-01 19:18:58 +03:00
2026-06-18 04:14:59 +03:00
2026-06-19 11:35:28 +03:00
2026-06-19 11:35:28 +03:00
2026-09-20 01:15:14 +03:00
2026-09-20 04:54:19 +03:00
2026-09-07 17:03:59 +03:00
2026-09-13 15:02:41 +03:00
2026-06-21 08:48:59 +03:00
2026-09-22 14:38:20 +03:00
2026-09-13 16:33:01 +03:00
2026-09-20 04:54:19 +03:00
2026-09-09 00:17:38 +03:00
2026-07-05 16:48:50 +03:00
2026-09-20 01:15:14 +03:00
2026-09-01 03:05:22 +03:00
2026-09-22 19:31:34 +03:00
2026-09-20 12:25:56 +03:00
2026-09-20 01:58:42 +03:00
2026-08-23 18:56:39 +03:00
2026-09-20 01:58:42 +03:00
2026-09-29 16:09:18 +03:00
2026-10-07 17:05:36 +03:00
2026-09-22 14:38:20 +03:00
2026-09-07 17:03:59 +03:00
2026-09-01 03:05:22 +03:00
2026-09-22 14:38:20 +03:00
2026-09-22 14:38:20 +03:00
2026-09-07 17:03:59 +03:00
2026-09-07 17:38:08 +03:00
2026-09-27 13:12:34 +03:00
2026-09-14 11:43:10 +03:00
2026-09-14 11:47:29 +03:00
2026-09-14 11:49:40 +03:00
2026-09-15 12:10:40 +03:00
2026-09-14 11:53:05 +03:00
2026-09-30 01:16:12 +03:00
2026-09-14 12:02:59 +03:00
2026-10-02 11:02:21 +03:00
2026-09-22 15:12:52 +03:00
2026-09-14 12:09:35 +03:00
2026-09-22 15:13:00 +03:00
2026-09-22 17:27:43 +03:00
2026-09-15 12:10:40 +03:00
2026-10-03 10:44:37 +03:00
2026-09-19 14:00:48 +03:00
2026-09-28 15:00:31 +03:00
2026-10-07 21:12:39 +03:00
2026-09-15 12:10:40 +03:00
2026-09-30 01:16:12 +03:00
2026-10-08 08:54:04 +03:00
2026-10-03 08:52:16 +03:00
2026-09-23 19:10:24 +03:00
2026-09-22 18:40:36 +03:00
2026-09-22 19:07:14 +03:00
2026-10-08 11:48:01 +03:00
2026-10-07 21:12:39 +03:00
2026-09-22 19:31:34 +03:00
2026-09-28 21:46:56 +03:00
2026-09-25 12:45:30 +03:00
2026-09-28 17:52:48 +03:00
2026-09-28 01:49:14 +03:00
2026-09-30 01:16:12 +03:00
2026-09-28 23:56:20 +03:00
2026-10-02 12:01:19 +03:00
2026-10-09 13:28:08 +03:00
2026-10-02 08:42:18 +03:00
2026-10-02 12:01:19 +03:00
2026-09-27 16:49:39 +03:00
2026-10-07 04:25:53 +03:00
2026-10-02 11:02:21 +03:00
2026-10-08 12:19:38 +03:00
2026-09-29 15:12:12 +03:00
2026-09-27 18:41:14 +03:00
2026-10-07 14:18:22 +03:00
2026-10-07 06:19:52 +03:00
2026-09-30 01:16:12 +03:00
2026-10-02 16:08:20 +03:00
2026-10-03 11:56:19 +03:00
2026-09-15 12:10:40 +03:00
2026-10-08 12:12:24 +03:00
2026-09-29 16:30:03 +03:00
2026-09-15 12:58:07 +03:00
2026-09-27 13:45:41 +03:00
2026-10-08 00:01:56 +03:00
2026-09-29 00:04:16 +03:00
2026-09-29 00:13:43 +03:00
2026-09-28 04:04:25 +03:00
2026-09-27 01:11:43 +03:00
2026-09-28 18:01:23 +03:00
2026-09-20 05:06:28 +03:00
2026-09-17 13:07:01 +03:00
2026-10-07 18:57:37 +03:00
2026-10-01 17:56:49 +03:00
2026-09-28 18:19:22 +03:00
2026-09-30 01:16:12 +03:00
2026-10-02 16:45:01 +03:00
2026-10-07 17:07:39 +03:00
2026-10-07 21:12:39 +03:00
2026-09-28 00:53:59 +03:00
2026-09-27 01:30:56 +03:00
2026-09-30 01:16:12 +03:00
2026-09-17 13:12:32 +03:00
2026-09-23 13:58:24 +03:00
2026-09-28 17:48:00 +03:00
2026-09-28 17:40:49 +03:00
2026-09-27 14:38:03 +03:00
2026-09-28 12:55:11 +03:00
2026-09-27 00:10:39 +03:00
2026-10-08 14:04:48 +03:00
2026-09-28 18:51:16 +03:00
2026-10-08 11:41:59 +03:00
2026-09-29 15:57:05 +03:00
2026-10-08 11:55:42 +03:00
2026-10-07 18:55:54 +03:00
2026-10-08 00:01:44 +03:00
2026-09-28 18:59:18 +03:00
2026-10-07 14:06:09 +03:00
2026-09-27 13:45:41 +03:00
2026-10-03 12:15:05 +03:00
2026-09-28 14:06:15 +03:00
2026-09-27 18:21:58 +03:00
2026-09-29 18:16:20 +03:00
2026-09-20 21:06:30 +03:00
2026-09-28 18:59:18 +03:00
2026-09-28 18:47:02 +03:00
2026-09-20 01:51:22 +03:00
2026-09-30 03:06:38 +03:00
2026-10-02 10:46:06 +03:00
2026-09-15 12:10:40 +03:00
2026-10-08 12:08:29 +03:00
2026-09-23 15:27:40 +03:00
2026-09-28 02:21:36 +03:00
2026-09-28 02:25:44 +03:00
2026-10-07 10:16:56 +03:00
2026-10-02 11:25:52 +03:00
2026-10-02 12:01:19 +03:00
2026-10-08 15:18:59 +03:00
2026-09-23 21:31:14 +03:00
2026-10-09 13:13:37 +03:00
2026-10-09 12:21:16 +03:00
2026-10-08 12:44:46 +03:00
2026-09-26 01:27:36 +03:00
2026-09-30 01:16:12 +03:00
2026-10-02 15:26:22 +03:00
2026-09-27 00:46:19 +03:00
2026-09-27 00:48:29 +03:00
2026-09-30 01:16:12 +03:00
2026-09-29 17:23:10 +03:00
2026-09-29 17:14:55 +03:00
2026-09-29 17:14:55 +03:00
2026-09-29 17:14:55 +03:00
2026-10-07 03:08:48 +03:00
2026-10-09 13:28:08 +03:00
2026-09-23 13:18:29 +03:00
2026-09-15 13:57:26 +03:00
2026-10-07 12:12:26 +03:00
2026-09-28 20:49:56 +03:00
2026-09-27 00:10:25 +03:00
2026-09-27 19:46:29 +03:00
2026-09-28 02:30:48 +03:00
2026-10-08 12:35:58 +03:00
2026-10-03 11:56:19 +03:00
2026-10-08 11:53:06 +03:00
2026-09-28 03:49:38 +03:00
2026-09-25 12:41:49 +03:00
2026-10-08 14:09:34 +03:00
2026-10-07 21:55:18 +03:00
2026-09-23 19:49:33 +03:00
2026-10-02 12:01:19 +03:00
2026-10-07 21:12:39 +03:00
2026-10-08 08:45:24 +03:00
2026-09-13 23:49:16 +03:00
2026-09-23 20:53:58 +03:00
2026-10-08 09:26:01 +03:00
2026-09-26 00:27:11 +03:00
2026-09-17 16:32:53 +03:00
2026-10-02 09:08:48 +03:00
2026-09-27 00:48:19 +03:00
2026-10-07 05:23:16 +03:00
2026-09-28 14:55:15 +03:00
2026-09-17 13:05:45 +03:00
2026-09-25 12:39:19 +03:00
2026-09-27 14:24:36 +03:00
2026-09-23 21:09:55 +03:00
2026-09-22 19:16:55 +03:00
2026-09-27 14:03:15 +03:00
2026-09-29 16:09:18 +03:00
2026-10-02 11:04:02 +03:00
2026-10-02 10:37:08 +03:00
2026-10-02 13:10:29 +03:00
2026-10-06 18:27:20 +03:00
2026-10-08 11:50:10 +03:00
2026-10-08 11:31:12 +03:00
2026-09-28 19:25:40 +03:00
2026-09-28 20:38:58 +03:00
2026-09-28 21:07:14 +03:00
2026-10-08 12:25:29 +03:00
2026-09-29 14:34:18 +03:00
2026-10-07 17:04:32 +03:00
2026-10-07 12:26:14 +03:00
2026-09-29 14:02:14 +03:00
2026-10-08 09:38:15 +03:00
2026-09-30 09:29:46 +03:00
2026-09-30 09:29:46 +03:00
2026-09-27 00:09:56 +03:00
2026-10-03 19:01:52 +03:00
2026-10-07 23:58:00 +03:00
2026-10-07 23:58:00 +03:00
2026-10-02 20:58:00 +03:00
2026-10-03 09:31:44 +03:00
2026-09-27 19:52:44 +03:00
2026-10-03 11:56:19 +03:00
2026-09-27 18:51:31 +03:00
2026-09-27 19:55:15 +03:00
2026-09-27 22:37:26 +03:00
2026-09-27 18:11:41 +03:00
2026-10-08 12:06:49 +03:00
2026-09-29 09:48:49 +03:00
2026-10-08 12:36:57 +03:00
2026-10-02 21:02:28 +03:00
2026-10-08 11:51:44 +03:00
2026-09-27 22:32:15 +03:00
2026-10-03 09:31:44 +03:00
2026-09-27 22:55:36 +03:00
2026-09-27 18:51:03 +03:00
2026-10-08 11:51:44 +03:00
2026-10-02 19:43:30 +03:00
2026-10-03 09:31:44 +03:00
2026-09-27 19:59:59 +03:00
2026-10-03 09:31:44 +03:00
2026-10-03 19:13:18 +03:00
2026-09-17 13:47:31 +03:00
2026-10-02 16:26:36 +03:00
2026-10-02 11:02:21 +03:00
2026-09-22 14:59:15 +03:00
2026-09-20 05:37:00 +03:00
2026-10-07 13:54:57 +03:00
2026-09-30 01:16:12 +03:00
2026-10-08 11:40:25 +03:00
2026-09-28 23:43:32 +03:00
2026-09-28 00:34:27 +03:00
2026-10-07 13:03:08 +03:00
2026-09-30 01:16:12 +03:00
2026-09-30 01:16:12 +03:00
2026-09-26 23:00:58 +03:00
2026-09-15 12:10:40 +03:00
2026-10-02 10:40:19 +03:00
2026-10-02 12:01:19 +03:00
2026-09-28 04:50:47 +03:00
2026-09-29 15:52:01 +03:00
2026-10-10 01:20:53 +03:00
2026-09-29 15:30:56 +03:00
2026-09-17 13:43:01 +03:00