1. When I set "browser.preferences.instantApply" to true, then open
pref window and click checkbox, "extensions.name.flag" changes its
value immediately. -> It behaves correctly.
When I change "browser.preferences.instantApply" to false and then
click checkbox again (pref windows is still open and has not been
reopened), "extensions.name.flag" changes its value immediately again.
-> I guess this behaves correctly again (ok, I changed instantApply,
but window probably should has the same behaviour until is reopened).
But opposite case:
2. When I set "browser.preferences.instantApply" to false, then open
pref window and click checkbox, "extensions.name.flag" does not change
its value immediately. -> It behaves correctly.
When I change "browser.preferences.instantApply" to true and then
click checkbox again (pref windows is still open and has not been
reopened), "extensions.name.flag" changes its value immediately. -> I
guess it should not do it until ondialogaccept is called (window
should has the same behaviour until is reopened).
So I do not know which of these cases (1. or 2.) is correct, but there
is evidently inconsistency between them. Is it a bug or doing I am
something wrong?
Thanks,
Zbynek
So it is probably bug of Firefox 3.5, because I tried to test also
Firefox 3.0 and it has not this issue.
-- Mike
> _______________________________________________
> dev-apps-firefox mailing list
> dev-apps...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-apps-firefox
-- Mike
On 20-Jan-10, at 12:35 PM, Mike Connor wrote:
> The short answer is "who cares?" At best, the real-time
> implications of changing a pref that impacts how a binding behaves
> are unspecified. I'm surprised the binding does anything
> differently, but I don't know if it matters, since this pref isn't
> exposed and isn't going to be toggled...
>
> -- Mike
>
> On 20-Jan-10, at 11:32 AM, zmichl wrote:
>
Example: You have opened extension's pref window, instantApply is
false, thus window contains OK and Cancel buttons. Then you change
instantApply to true (while pref window is still opened). Now
preferences in that window immediately change its behaviour according
to instantApply change, but they shouln't, because window still has OK
and Cancel buttons, so the same behaviour should be preserved until
pref window is reopened.
As I said in my last comment, in Firefox 3.0 it works fine, but
Firefox 3.5 has a problem with it and user could be confused with this
behaviour.
Zbynek
I agree that that sounds like a bug, worth filing. It would be very
useful to know more about when it regressed; if you have a test case,
binary-searching on betas and nightlies would really help get to the
bottom of it. To be honest, I'm surprised that FF3 got it right, but
I don't doubt that you're reporting it correctly!
Mike
I found out that 3.0.17 is ok and 3.5b4pre no longer so regression
must be between them.
Zbynek
First guess is https://bugzilla.mozilla.org/show_bug.cgi?id=451025,
since this is what mucked with how the instantApply property. Please
go ahead and file a bug on this, and cc me?
-- Mike
I'm still left wondering what the actual problem is. In other words, why
are you flipping the instantApply pref like that? AIUI, the pref is used
to make pref windows match platform conventions (or, if nothing else, to
make the app work the way the developer wants). Changing how it works at
run time sounds like overly confusing and complicated UI.
Justin
I am not intended to change instantApply at run time.
But imagine this situation:
User will open pref window of my extension, then open
"about:config" (while my pref window is still opened) and change
instantApply for any reason. From now my pref window behaves
incorrectly in Firefox >3.5. So I would like to handle this situation.
Zbynek
I have reported it as a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=541959
Zbynek
Cheers,
Shawn
> On 1/25/2010 2:03 AM, zmichl wrote:
>> "about:config" (while my pref window is still opened) and change
>> instantApply for any reason. From now my pref window behaves
>> incorrectly in Firefox>3.5. So I would like to handle this situation.
>>
> It is highly unlikely that a user would do this.
This is true.
That said, when we go from deterministic to non-deterministic, we
probably did something wrong there, and it's worth fixing.
-- Mike