Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[webview] Guard programmatic preference change with marker file. Fixes JB#58269 #160

Merged
merged 1 commit into from Jun 21, 2022

Conversation

rainemak
Copy link
Member

Signed-off-by: Raine Makelainen raine.makelainen@jolla.com

@rainemak rainemak requested a review from llewelld June 20, 2022 12:28
Copy link
Member

@llewelld llewelld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nice solution, just one comment.

lib/webenginesettings.cpp Show resolved Hide resolved
…s JB#58269

Signed-off-by: Raine Makelainen <raine.makelainen@jolla.com>
Copy link
Member

@llewelld llewelld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. I tested using layout.css.devPixelsPerPx as described in archon's original forum comment and the behaviour now works as expected. Changing it in about:config sticks between browser restarts, unless the ~/.local/share/org.sailfishos/browser/__PREFS_WRITTEN__ file is removed. Deleting __PREFS_WRITTEN__ causes the value to get reset on next restart.

@rainemak rainemak merged commit f9f0969 into master Jun 21, 2022
@rainemak rainemak deleted the jb58269 branch June 21, 2022 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants