Project

General

Profile

Actions

Bug #663

closed
SS SS

Privacy Browser crashes if a dialog is displayed while the app is in the background

Bug #663: Privacy Browser crashes if a dialog is displayed while the app is in the background

Added by Soren Stoutner over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Next Release
Start date:
02/02/2021
Due date:
% Done:

0%

Estimated time:

Description

This is caused because a the fragment manager cannot display a dialog after onSaveInstanceState().

This bug can be triggered by loading a webpage like www.libreoffice.org that has a delayed download and then switching to a different app before the download starts. It has also been reported that this can happen with SSL certificate errors.

I am a little puzzled as to why this is happening, as the WebViews are paused when onSaveInstanceState() is called.

SS Updated by Soren Stoutner over 5 years ago Actions #1

  • Priority changed from 3.x to Next Release

It looks like certain aspects of the processing of website, like the processing of certificate errors or downloads, continue even when a WebView is paused. Because a dialog cannot be displayed when the app is not in the foreground, the most obvious solution is to wrap the display of these dialogs in `try`.

The only downside is that they don't be displayed at all, even when the user returns to the screen.

SS Updated by Soren Stoutner over 5 years ago Actions #2

It turns out it is possible to use a while loop to wait for the window to become active before displaying the dialog.

SS Updated by Soren Stoutner over 5 years ago Actions #4

  • Status changed from New to Closed
Actions

Also available in: PDF Atom