diff options
author | Martin Negyokru <negyokru@inf.u-szeged.hu> | 2022-10-05 17:04:56 +0200 |
---|---|---|
committer | Martin Negyokru <negyokru@inf.u-szeged.hu> | 2022-10-14 16:09:24 +0200 |
commit | 1837eeb96693116ba4ec8542035003cac67421bc (patch) | |
tree | d63be7edf30c2536d18a552d77ab7f6bc0169dff /src | |
parent | 49d7bef1815651e2fa0339e02e1ebbde65149ed2 (diff) | |
download | qtwebengine-1837eeb96693116ba4ec8542035003cac67421bc.tar.gz |
Fix fullscreen request blocking after running fileChooser
Chromium blocks fullscreen requests while the fileSelectListener is alive.
Release it manually after the accept/reject signal.
Fixes: QTBUG-106975
Pick-to: 6.3 6.4
Change-Id: Iac4868b8ab0268b8ddb94912286155af73ebd343
Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu>
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_picker_controller.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/file_picker_controller.cpp b/src/core/file_picker_controller.cpp index ddfd64692..f1b843e8a 100644 --- a/src/core/file_picker_controller.cpp +++ b/src/core/file_picker_controller.cpp @@ -209,6 +209,10 @@ void FilePickerController::filesSelectedInChooser(const QStringList &filesList) else d_ptr->fileSystemAccessDialogListener->MultiFilesSelected(files, nullptr); } + + // release the fileSelectListener manually because it blocks fullscreen requests in chromium + // see QTBUG-106975 + d_ptr->fileDialogListener.reset(); } QStringList FilePickerController::acceptedMimeTypes() const |