Prevent sync XHR from being fired in a child frame when the unload handler was...
Prevent sync XHR from being fired in a child frame when the unload handler was attached from a parent document. As of M80, sync XHR during page dismissal is not allowed by default. However, it was still possible to send a sync XHR request during dismissal by attaching an unload handler defined in the parent document to a child frame from the parent's script. This change prevents that from happening. (Note: It is still possible to schedule a sync XHR during a page dismissal, ie doing a SetTimeout in a beforeUnload handler that will do the synchronous XHR.) This change also removes some use counters that are no longer needed. Bug: 1044348 Change-Id: Ieab8fd018d61aecc75241c6d7d01ad6c08eff7da Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2032426 Commit-Queue: Katie Dillon <kdillon@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Hiroshige Hayashizaki <hiroshige@chromium.org> Cr-Commit-Position: refs/heads/master@{#742684}
Showing
Please register or sign in to comment