preloading: Cancel prerendering if window.closed is called
Huanpo Linclosed -> close
Done
Bug: 348232620
Huanpo LinIt might be good to have a separate bug for this feature in particular, just so we can more accurately and publicly track all the different workstreams blocking this meta bug.
Just created another issue 350870118.
// For prerendered pages, if window.close is called, it should be cancelled.
Huanpo LinFrom `ClosePageSource`, it looks like this function can also be called because the browser/tab is shutting down. Do you want to differentiate or exclude those cases maybe?
Thanks for pointing it out. I've just checked the logic from other callers, and it seems to be called by navigation throttle or other scenario from browser process. I move the logic to exclude browser initiated cases. PTAL.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |