pause-document
pause-document copied to clipboard
The PauseDocument API
https://github.com/jkarlin/pause-document#pause-details says: > When script is paused, any running script task is completed and future tasks on the event queue (e.g., events (including WebSocket) and timers) remain queued until the...
Consider a site which as an "anti-copying" feature puts all its content into a frame that it then pauses. It allows scrolling the parent document of that frame. Per the...
Can the load event on the parent fire before the frame is unpaused? I'd assume not, because the load event on the frame itself can't fire, and the load event...
What happens if a paused frame is removed from the document? Does beforeunload fire? Does unload fire? Do they fire in this situation currently?
If a site loads a cross-origin frame and then pauses it, is that OK? Has any security analysis been done on this?
It's not clear from the explainer whether the UA can unpause something that was paused from script.
It's not exactly clear to me when `.paused` starts/stops returning true. Is it when the pause/unpause promises get resolved? When the API calls happen? Something else?
What happens when the user uses developer tools to interact with a paused frame? Does it stay paused? Do promises created during devtool evaluation in the paused frame resolve?