Mingyu Lei
0ece2ab04a
Apply BFCache logic to notifications dispatched to dedicated workers
...
In the previous CL from the chain (https://crrev.com/c/3861889 ), we
implemented the logic to check if the current document is BFCache
when dispatching the notification events. However, this only works for
notification service that is created from the document directly since
the weak document pointer will be null if the notification service
is created from a worker.
In this CL, the notification service creation functions are changed
to also accept a enum flag indicating whether it's created from a
document, shared worker, dedicated worker, or service worker. This flag
will be stored in the notification service so we don't have to rely on
the `document_url` to check if it's associated with a worker.
Additionally, for dedicated workers, we store the weak document
pointer of its ancestor frame so we can determined if the host
document is in BFCache when dispatching the notification events.
Bug: 1350944
Change-Id: I8475b1e243998e599ebb3208a48f1cfa9df30b95
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3876770
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org >
Reviewed-by: Alexander Timin <altimin@chromium.org >
Reviewed-by: Daniel Cheng <dcheng@chromium.org >
Reviewed-by: Rakina Zata Amni <rakina@chromium.org >
Commit-Queue: Mingyu Lei <leimy@chromium.org >
Reviewed-by: Peter Beverloo <peter@chromium.org >
Cr-Commit-Position: refs/heads/main@{#1064794}
2022-10-28 11:58:54 +00:00
..
2022-10-28 01:13:59 +00:00
2022-10-20 18:04:10 +00:00
2022-10-25 15:19:49 +00:00
2022-10-27 21:03:29 +00:00
2022-10-25 02:46:28 +00:00
2022-10-11 16:30:50 +00:00
2022-10-12 21:36:19 +00:00
2022-10-18 23:12:41 +00:00
2022-10-25 22:11:07 +00:00
2022-09-15 14:03:50 +00:00
2022-10-20 22:59:31 +00:00
2022-10-20 22:59:31 +00:00
2022-10-26 14:46:55 +00:00
2022-10-14 17:43:42 +00:00
2022-10-18 20:01:36 +00:00
2022-10-20 18:24:15 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-14 10:46:47 +00:00
2022-10-03 11:04:08 +00:00
2022-09-15 14:03:50 +00:00
2022-10-20 22:59:31 +00:00
2022-10-05 23:42:42 +00:00
2022-09-15 14:03:50 +00:00
2022-09-24 17:32:00 +00:00
2022-09-15 14:03:50 +00:00
2022-10-28 09:54:46 +00:00
2022-10-27 05:11:03 +00:00
2022-09-16 13:58:17 +00:00
2022-09-30 20:49:29 +00:00
2022-10-20 22:59:31 +00:00
2022-10-17 15:55:03 +00:00
2022-10-20 18:18:30 +00:00
2022-10-24 14:23:25 +00:00
2022-10-25 21:19:28 +00:00
2022-10-05 06:20:45 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-28 19:19:47 +00:00
2022-10-24 22:58:28 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-20 18:18:30 +00:00
2022-10-27 18:49:02 +00:00
2022-09-15 14:03:50 +00:00
2022-10-24 06:47:35 +00:00
2022-09-15 14:03:50 +00:00
2022-10-13 01:05:00 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-10 03:15:17 +00:00
2022-10-27 16:42:43 +00:00
2022-09-15 14:03:50 +00:00
2022-10-12 02:05:42 +00:00
2022-09-28 08:09:53 +00:00
2022-09-15 14:03:50 +00:00
2022-10-14 10:05:52 +00:00
2022-10-21 14:48:44 +00:00
2022-10-28 11:58:54 +00:00
2022-09-27 10:51:29 +00:00
2022-10-20 18:18:30 +00:00
2022-09-15 14:03:50 +00:00
2022-10-28 09:54:46 +00:00
2022-10-17 13:14:18 +00:00
2022-10-20 22:59:31 +00:00
2022-10-28 09:23:55 +00:00
2022-09-15 14:03:50 +00:00
2022-10-25 19:33:14 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-17 22:03:43 +00:00
2022-10-03 15:37:26 +00:00
2022-10-28 11:58:54 +00:00
2022-10-27 21:14:33 +00:00
2022-10-25 16:42:14 +00:00
2022-10-05 21:44:16 +00:00
2022-10-20 09:25:31 +00:00
2022-09-23 22:44:19 +00:00
2022-09-15 14:03:50 +00:00
2022-10-25 19:39:14 +00:00
2022-09-15 14:03:50 +00:00
2022-10-24 21:45:28 +00:00
2022-10-20 18:18:30 +00:00
2022-10-21 02:43:03 +00:00
2022-10-13 20:25:25 +00:00
2022-10-19 09:17:59 +00:00
2022-09-29 02:18:23 +00:00
2022-09-15 14:03:50 +00:00
2022-10-27 14:46:39 +00:00
2022-09-15 14:03:50 +00:00
2022-10-20 13:56:30 +00:00
2022-10-13 16:45:50 +00:00
2022-10-20 01:05:21 +00:00
2022-10-20 08:01:23 +00:00
2022-09-26 03:50:00 +00:00
2022-10-10 20:09:47 +00:00
2022-10-24 19:42:18 +00:00
2022-10-20 18:18:30 +00:00
2022-10-26 23:22:25 +00:00
2022-09-20 01:43:43 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-06 11:49:35 +00:00
2022-10-28 08:32:21 +00:00
2022-10-20 07:53:00 +00:00
2022-10-20 07:53:00 +00:00
2022-10-21 13:23:06 +00:00
2022-10-24 06:10:03 +00:00
2022-10-20 04:31:21 +00:00
2022-09-29 13:26:59 +00:00
2022-10-19 17:29:31 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-28 14:53:04 +00:00
2022-09-28 14:53:04 +00:00
2022-09-28 14:53:04 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-21 11:20:30 +00:00
2022-10-28 11:58:54 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-25 16:42:14 +00:00
2022-09-15 14:03:50 +00:00
2022-10-21 23:46:22 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-25 16:42:14 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-27 18:04:10 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-10 23:49:39 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-20 20:21:03 +00:00
2022-10-10 23:49:39 +00:00
2022-10-05 15:06:20 +00:00
2022-10-05 15:06:20 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-25 22:09:52 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-27 05:11:03 +00:00
2022-09-15 14:03:50 +00:00
2022-10-12 15:17:00 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-19 05:11:27 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-18 02:36:05 +00:00
2022-10-18 02:36:05 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-28 06:07:53 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-20 04:52:22 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-18 12:17:39 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-07 23:51:37 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-05 06:20:45 +00:00
2022-10-21 11:14:42 +00:00
2022-10-21 11:14:42 +00:00
2022-10-05 05:09:25 +00:00
2022-10-21 00:17:58 +00:00
2022-09-15 14:03:50 +00:00
2022-09-23 22:59:59 +00:00
2022-10-25 16:24:19 +00:00
2022-10-25 16:24:19 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-26 12:44:42 +00:00
2022-09-15 14:03:50 +00:00
2022-10-13 15:28:00 +00:00
2022-10-12 20:15:26 +00:00
2022-10-12 20:15:26 +00:00
2022-10-12 20:15:26 +00:00
2022-09-15 14:03:50 +00:00
2022-10-12 20:15:26 +00:00
2022-10-20 22:59:31 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-06 18:57:24 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-27 20:30:23 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-10 23:49:39 +00:00
2022-10-10 23:49:39 +00:00
2022-10-24 18:56:32 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-20 04:33:34 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-14 19:11:56 +00:00
2022-09-15 18:58:58 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-14 19:11:56 +00:00
2022-09-15 18:58:58 +00:00
2022-09-15 14:03:50 +00:00
2022-09-28 19:19:47 +00:00
2022-09-15 14:03:50 +00:00
2022-10-19 17:04:00 +00:00
2022-10-26 19:45:37 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-14 19:11:56 +00:00
2022-09-15 14:03:50 +00:00
2022-10-19 00:00:11 +00:00
2022-10-06 18:57:24 +00:00
2022-10-03 05:36:29 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-29 07:11:46 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-18 13:44:11 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-20 15:53:10 +00:00
2022-10-20 18:18:30 +00:00
2022-10-20 18:18:30 +00:00
2022-09-30 20:49:29 +00:00
2022-09-30 20:49:29 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-20 20:21:03 +00:00
2022-09-15 14:03:50 +00:00
2022-10-24 12:44:23 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-27 20:30:23 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-10-20 05:06:57 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00
2022-09-15 14:03:50 +00:00