WebEngine: Always disable off-the-record profiles


Previously, changing the LocalStorageEnabled setting would flip the
internal profile's off-the-record setting as well. This was most likely
a misunderstanding of what the setting is meant for (a specific HTML5
feature, not just any storage persisted on disk), and it went
unchallenged until now.

Flipping the setting can trigger odd crashes, since Chromium doesn't
really support profiles that change their off-the-recordness at
runtime. So, mark the profile as always on-the-record, and only
flip the LocalStorageEnabled setting in QQuickWebEngineProfile.

As a drive-by, remove the parent pointer inside
QWebEngineWebViewSettingsPrivate since it's no longer used and clang
complains about it.

Change-Id: Id38ef8271b685bf0ade3567f5c5dd4400815cb08
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
commitfaf8d9cf134f900484151132a17cbaa973e38537
parent0a30b3eee533f29a376934032c29c97078db4fd0
authorKaloyan Chehlarski <kaloyan.chehlarski@qt.io>
committerKaloyan Chehlarski <kaloyan.chehlarski@qt.io>
commit timeThu, 16 Jul 2026 09:25:38 +0000