Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[embedlite-components] Set history item triggering principal to syste…
…m. Fixes JB#54249 OMP#JOLLA-142 For security reasons the triggering principal of a link is used to determine whether it can be loaded or not. For example local files can't be opened by a null triggering principal. Since history items restored after a restart were given a null triggering principal, this was preventing local files being loaded from the history (e.g. using the back/forward buttons) after a restart. This change sets the triggering principal for restored history items to the system principal. History items are loaded with the INTERNAL_LOAD_FLAGS_INHERIT_PRINCIPAL flag unset. The principal for the loaded file is therefore based on the file origin, rather than the triggering principal, so the principal/security of the loaded item will be unaffected. More info on principals here: https://developer.mozilla.org/en-US/docs/Mozilla/Gecko/Script_security
- Loading branch information