summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2022-12-12 18:13:26 +0100
committerSzabolcs David <davidsz@inf.u-szeged.hu>2023-04-05 13:36:17 +0000
commit823cc89c112d8ac6591b1d2f202d66a8eb26e131 (patch)
treea6475617efd5ecea2ec1e4d2ba741344f8c83532
parent615ae5a0934f2d14cfd46a3dd21560a151ad7a69 (diff)
downloadqtwebengine-chromium-823cc89c112d8ac6591b1d2f202d66a8eb26e131.tar.gz
Do not stop navigation during saving the page if not necessary
Calling Stop() interrupts printing, even if there is no page load in progress. Task-number: QTBUG-108154 Change-Id: Ibb8e898c3c7e7ea1933c88aa32d8f96604a6527a Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/470895 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--chromium/content/browser/web_contents/web_contents_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/content/browser/web_contents/web_contents_impl.cc b/chromium/content/browser/web_contents/web_contents_impl.cc
index 52bff701c86..2bb3d014157 100644
--- a/chromium/content/browser/web_contents/web_contents_impl.cc
+++ b/chromium/content/browser/web_contents/web_contents_impl.cc
@@ -5031,7 +5031,8 @@ void WebContentsImpl::OnSavePage() {
return;
}
- Stop();
+ if (IsLoading())
+ Stop();
// Create the save package and possibly prompt the user for the name to save
// the page as. The user prompt is an asynchronous operation that runs on