DidStopLoading() not always fired when a download causes the parser of a loading document to stop. |
|
Issue descriptionWhen does it happens: 1) URLLoaderClient::OnComplete() is received before the response body data pipe is fully read. It can be achieved by making the DocumentParser slow. 2) The parser of the current document is cancelled by a new navigation. The bug is that CheckCompleted() is not called on the the current document at this step. 3) The navigation is a download, so it is dropped. 4) DidStopLoading() is never fired. Regression test: https://chromium-review.googlesource.com/c/chromium/src/+/1109974 +CC dcheng@ dgozman@ japhet@ clamy@ FYI. I finally find a way to make a regression test for the fix you are reviewing. I am not sure this test deserves to be committed thought. This is fixed by: https://chromium-review.googlesource.com/c/chromium/src/+/1087227 or https://chromium-review.googlesource.com/c/chromium/src/+/1107808
,
Jun 28 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/ece30c64519a6c089adf7befe5fe4a74190c853d commit ece30c64519a6c089adf7befe5fe4a74190c853d Author: Arthur Sonzogni <arthursonzogni@chromium.org> Date: Thu Jun 28 09:57:29 2018 FrameLoader. Add test for bug 855033 . The bug happens when the current document data has been loaded, but the parser is still processing it. Then a new navigation happens and cancels the current document's parser. The issue is that the Document was not marked to be 'loaded' at this step. Then if the navigation turns to be download, it is dropped and there is no more chance for the frame to be marked as 'loaded'. Bug: 855033 Change-Id: I572470dd1ad53d9905b3604f6a91ce6f4bd53952 Reviewed-on: https://chromium-review.googlesource.com/1109974 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Reviewed-by: Camille Lamy <clamy@chromium.org> Cr-Commit-Position: refs/heads/master@{#571061} [modify] https://crrev.com/ece30c64519a6c089adf7befe5fe4a74190c853d/content/browser/browser_side_navigation_browsertest.cc |
|
►
Sign in to add a comment |
|
Comment 1 by arthurso...@chromium.org
, Jun 27 2018