File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 9
9
- Fix wrong estimated confirmation time for ERC20 tokens.
10
10
- Enable unlock test wallet in testnet
11
11
- Added support to show on the BitBox when a transaction's recipient is an address of a different account on the device.
12
+ - Persist third party widget sessions
12
13
13
14
# v4.47.2
14
15
- Linux: fix compatiblity with some versions of Mesa that are incompatible with the bundled wayland libraries
Original file line number Diff line number Diff line change 65
65
// their CSP response headers.
66
66
static const char * scheme = " bitboxapp" ;
67
67
68
+ static QWebEngineProfile* profile;
68
69
static QWebEngineView* view;
69
70
static QWebEnginePage* mainPage;
70
71
static QWebEnginePage* externalPage;
@@ -91,7 +92,7 @@ class BitBoxApp : public SingleApplication
91
92
92
93
class WebEnginePage : public QWebEnginePage {
93
94
public:
94
- WebEnginePage (QObject* parent ) : QWebEnginePage(parent ) {}
95
+ WebEnginePage (QWebEngineProfile* profile ) : QWebEnginePage(profile ) {}
95
96
96
97
QWebEnginePage* createWindow (QWebEnginePage::WebWindowType type) {
97
98
Q_UNUSED (type);
@@ -353,7 +354,8 @@ int main(int argc, char *argv[])
353
354
}
354
355
355
356
externalPage = new QWebEnginePage (view);
356
- mainPage = new WebEnginePage (view);
357
+ profile = new QWebEngineProfile (" BitBoxApp" );
358
+ mainPage = new WebEnginePage (profile);
357
359
view->setPage (mainPage);
358
360
359
361
pageLoaded = false ;
@@ -459,6 +461,12 @@ int main(int argc, char *argv[])
459
461
webClass = nullptr ;
460
462
delete view;
461
463
view = nullptr ;
464
+ // Make sure mainPage is deleted before the profile. This is a requirement for the profile
465
+ // to be able to flush to disk properly.
466
+ delete mainPage;
467
+ mainPage = nullptr ;
468
+ delete profile;
469
+ profile = nullptr ;
462
470
webClassMutex.unlock ();
463
471
backendShutdown ();
464
472
});
You can’t perform that action at this time.
0 commit comments