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
Fix: prefs doesn't work in FF's private windows #510
Conversation
Sorry, I forgot to report. Already tested yesterday. Preferences in private mode are now taken from "normal" mode. If you change something in private mode, it will not affect you prefs in normal mode. However they stay saved (at least for this private session). No problems detected. LGTM, can be merged! |
Any example? It sounds like a bug for me. |
I tested again, behaviour confirmed.
Result: |
This is more complex than I thought:
@Mottie do we still want to support Firefox < 53? If not, I suggest changing everything to |
If you ask me, just adapt the settings from normal mode to private mode and drop any changes made in private mode. That may be easier. Plus at some point in the future stylus settings should be stored where styles are stored to make complete backup easier and stylus better transferable to other systems. So I wouldn't invest too much effort in this. And FF<53 can be dropped IMHO. ESR is at version 60 right now. |
I think we could drop FF<53; but what happens to all the FF clones that are using older versions? I think if @narcolepticinsomniac agrees, we could drop support. |
Everything accessing |
@Mottie Don't most clones have their base from FF 54 or 55 when they didn't yet start dropping xul support? |
I don't know... I don't use FF clones 😛 |
Seems reasonable enough to me. Users sticking with ancient, unsupported versions of FF should really be using the legacy version of Stylish anyway. They're a vocal bunch though, so don't be surprised if a few show up with pitchforks. =) |
Then I'll rewrite the prefs and make it depend on |
@eight04 I messaged it to you in Discord. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is ready. @stonecrusher could you test it again?
@@ -34,6 +34,10 @@ | |||
window.addEventListener(chrome.runtime.id, orphanCheck, true); | |||
} | |||
|
|||
// FIXME: does it work with styleViaAPI? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll delay this to #360 that I'm rewriting the background API.
@eight04 Fast answer: Sure, but need time till tomorrow evening (~30h from now). |
Tested different use cases and it looks good to me! Everything working as expected. Nice! |
Fixes #471. @stonecrusher may want to test this PR.
npm run start-firefox
to test the extension.prefs.readOnlyValues
. It seems that it is an alias ofprefs.get
.