[HaTS] Close window after survey answer is posted
Since HaTS library uses async google iframeIO call to post the survey answer through a form to the server. The form's target is an iframe in the same doc. If we close the window too quick, the request might not go through yet. So, in this CL, we wait until the iframe is loaded, which means the form is already posted, to close the window. BUG=1018063 Change-Id: Ifcc3120addecf540a6a45430bba3ea545d65d078 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1880694 Commit-Queue: Wei Li <weili@chromium.org> Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by:
Dan Beam <dbeam@chromium.org> Cr-Commit-Position: refs/heads/master@{#710236}
Showing
Please register or sign in to comment