summaryrefslogtreecommitdiff
path: root/examples/webenginewidgets/stylesheetbrowser/stylesheetdialog.cpp
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2022-12-12 17:54:09 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-04-05 21:05:12 +0000
commita64c4bb59a6fb1f8b4e319d9aab32e8343b8486f (patch)
tree0acc43c8a39bf1bfbc3819b63e23aadc1248e48a /examples/webenginewidgets/stylesheetbrowser/stylesheetdialog.cpp
parent78ebfe3284955737deb7328e3fc059cedc5cfaff (diff)
downloadqtwebengine-a64c4bb59a6fb1f8b4e319d9aab32e8343b8486f.tar.gz
Better handling of interrupted PDF printing
- Document the fact Stop WebAction can interrupt the in-progress PDF generation. - Update PrintViewManagerQt::PrintPreviewDone(): Normally IsPrintRenderFrameConnected() implies IsRenderFrameLive(), but we have to check both to avoid crash when render process exits. (Like Chrome does.) - Update PrintViewManagerQt::RequestPrintPreview(): Handle that case when print preview params were sent between processes at the beginning, but it was interrupted before RequestPrintPreview() could start PDF generation. - Add a simple auto test to catch crashes Task-number: QTBUG-108154 Change-Id: I8a4f9cc97ddcf9a165d66a5981d93a023858fbc1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit c3ed0e176ccda503c968626010ca36f1f3961fce) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/webenginewidgets/stylesheetbrowser/stylesheetdialog.cpp')
0 files changed, 0 insertions, 0 deletions