[content] Improve loading simulation in SimulateLoadingCompleted.
Ensure that RenderFrameHostTester::SimulateLoadingCompleted fires DocumentAvailable / DOMContentLoaded / OnLoadCompleted / DidStopLoading callbacks in addition to DidStopLoading to simulate real-world loading callback sequence more accurately. This patch also adds a browser test to ensure that the loading callback order is the same in the real world. This patch is a prerequisite for exposing the loading stages from RenderFrameHost / WebContents as the tests need these callbacks to be dispatched to work correctly. R=clamy@chromium.org,arthursonzogni@chromium.org,ahemery@chromium.org TBR=jianli@chromium.org,pasko@chromium.org,dbeam@chromium.org,mastiz@chromium.org,drubery@chromium.org CC=bfcache-bugs@chromium.org BUG=1011770 Change-Id: Ibe59b1b131f3911fe9c4bf641e8ea1c6bb1ba545 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1834343 Commit-Queue: Alexander Timin <altimin@chromium.org> Reviewed-by:Camille Lamy <clamy@chromium.org> Reviewed-by:
Brian White <bcwhite@chromium.org> Reviewed-by:
Arthur Hemery <ahemery@chromium.org> Cr-Commit-Position: refs/heads/master@{#705655}
Showing
Please register or sign in to comment