WICG / capability-delegation

An API to allow developers transfer the ability to use restricted APIs to any target window in the frame tree.
Other
14 stars 7 forks source link

Why it is safe to take timestamp when delegation has been received #36

Open smaug---- opened 7 months ago

smaug---- commented 7 months ago

https://wicg.github.io/capability-delegation/spec.html#monkey-patch-to-html-tracking-delegation

"If delegate is not null, AND the user agent supports delegating delegate, then set DELEGATED_CAPABILITY_TIMESTAMPS[delegate] to current high resolution time."

But if the main thread of the target has been busy, that current time might be way in the future comparing to when the message was sent. Why is that ok - or am I missing something?