diff options
author | Florian Bruhin <git@the-compiler.org> | 2017-05-17 10:02:42 +0200 |
---|---|---|
committer | Florian Bruhin <qt-project.org@the-compiler.org> | 2017-06-26 17:58:44 +0000 |
commit | eaf6e205924ebf5b20267cfa37c6cf0efad44eda (patch) | |
tree | 6184f94559f5e38841f0d2ddb4e2bcc980ad8745 /src/webenginewidgets/api/qwebengineprofile.cpp | |
parent | 5406c49638f3e4ff22a485b3788fa4f4ceb4dab9 (diff) |
Don't disable local storage for offTheRecord profiles
Chromium has local storage enabled in icognito windows, and simply doesn't
persist it to disk. QtWebEngine seems to do the same when local storage is
enabled in an off-the-record profile, so there's no reason to disable it by
default.
This also matches the behavior in Chromium (and Firefox, but not Safari).
[ChangeLog] HTML 5 local storage is now enabled by default (but residing in
memory) in off-the-record profiles.
Change-Id: I0cb7e946575a53471ffed9d3324b3ae4c2e80eee
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp')
-rw-r--r-- | src/webenginewidgets/api/qwebengineprofile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp index dae0cbdfc..73998030c 100644 --- a/src/webenginewidgets/api/qwebengineprofile.cpp +++ b/src/webenginewidgets/api/qwebengineprofile.cpp @@ -151,7 +151,7 @@ QWebEngineProfilePrivate::QWebEngineProfilePrivate(QSharedPointer<BrowserContext , m_browserContextRef(browserContext) { m_browserContextRef->addClient(this); - m_settings->d_ptr->initDefaults(browserContext->isOffTheRecord()); + m_settings->d_ptr->initDefaults(); } QWebEngineProfilePrivate::~QWebEngineProfilePrivate() |