Closed
Bug 236782
Opened 21 years ago
Closed 21 years ago
all preference items in "HTTP Networking" is not lockable;
Categories
(SeaMonkey :: Preferences, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: eagle.lu, Unassigned)
References
Details
Attachments
(1 file, 4 obsolete files)
(deleted),
patch
|
neil
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.4.1) Gecko/20040102
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.4.1) Gecko/20040102
If the items in the HTTP Networking are locked by autoconfig.jsc. They are not
actually locked. i.e. user can still edit these items in preferences panel.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Updated•21 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 143265 [details] [diff] [review]
patch v0
Can you give a "r"
Thanks
Attachment #143265 -
Flags: review?(dave532)
Comment 3•21 years ago
|
||
Please don't add consumers of nsIPref. It's deprecated and needs to be removed.
Use nsIPrefService.
Comment 4•21 years ago
|
||
Comment on attachment 143265 [details] [diff] [review]
patch v0
I'm not an official patch reviewer so won't be able to give you r=, Boris would
be a better person to ask
Attachment #143265 -
Flags: review?(dave532)
Attachment #143265 -
Attachment is obsolete: true
Comment on attachment 146084 [details] [diff] [review]
I changed nsIPref to nsIPrefService
Can you give r?
Attachment #146084 -
Flags: review?(bzbarsky)
Comment 7•21 years ago
|
||
Comment on attachment 146084 [details] [diff] [review]
I changed nsIPref to nsIPrefService
Brian, did you test this? There is no PrefIsLocked() method on nsIPrefService.
You want to get that contractid as an nsIPrefBranch, then use the method on
that.
Next time please test the patch before posting it, ok?
Attachment #146084 -
Flags: review?(bzbarsky) → review-
Attachment #146084 -
Attachment is obsolete: true
Thanks
I modified the patch and test it. It works now.
Can you give it r?
Comment on attachment 146166 [details] [diff] [review]
Change nsIPrefService to nsIPref
Can you give a r?
Attachment #146166 -
Flags: review?(bzbarsky)
Comment 10•21 years ago
|
||
Comment on attachment 146166 [details] [diff] [review]
Change nsIPrefService to nsIPref
This is just the first patch you posted. I've already said that that's not
acceptable.
Attachment #146166 -
Flags: review?(bzbarsky) → review-
Attachment #146166 -
Attachment is obsolete: true
Reporter | ||
Comment 11•21 years ago
|
||
How about this one? I have tested it and it works
Reporter | ||
Comment 12•21 years ago
|
||
Comment on attachment 146458 [details] [diff] [review]
Remove the code using nsIPref
Can you give r now?
Attachment #146458 -
Flags: review?(bzbarsky)
Comment 13•21 years ago
|
||
Comment on attachment 146458 [details] [diff] [review]
Remove the code using nsIPref
This looks much better!
>+ var doDisable = !(enableHTTP11.selected && enableKeepAlive.checked)|| isLocked;
Space before the "||", please?
What happened to disabling the pipelining proxy pref too? That was in the
earlier patches, right?
Attachment #146458 -
Attachment is obsolete: true
Reporter | ||
Comment 14•21 years ago
|
||
Thanks for your comments. I have re-made the patch accroding to your comments
Reporter | ||
Comment 15•21 years ago
|
||
Comment on attachment 146823 [details] [diff] [review]
I added the codes for "proxy" section
Can you give r now?
Thanks
Attachment #146823 -
Flags: review?(bzbarsky)
Comment 16•21 years ago
|
||
Comment on attachment 146823 [details] [diff] [review]
I added the codes for "proxy" section
r/sr=bzbarsky; looks good. Thanks for making the changes. Neil should
probably give this a once-over.
Attachment #146823 -
Flags: superreview+
Attachment #146823 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #146823 -
Flags: review?(bzbarsky)
Updated•21 years ago
|
Attachment #146458 -
Flags: review?(bzbarsky)
Reporter | ||
Comment 17•21 years ago
|
||
Hi,BZ,
Would you please help me to checkin the path? Because I have no such right yet.
Thanks
Comment 18•21 years ago
|
||
Sure; once Neil OKs it I can check it in.
You may want to file a parallel bug on firefox to fix their copy of this pref
panel...
Reporter | ||
Comment 19•21 years ago
|
||
Ok
Comment 20•21 years ago
|
||
Fix checked in to the trunk.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Attachment #146823 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Comment 21•21 years ago
|
||
can someone explain why the patch wasn't as simple as changing:
enablePipelining.disabled = doDisable;
to:
enablePipelining.disabled |= doDisable;
?
Reporter | ||
Comment 22•21 years ago
|
||
Suppose preference P's prefstring is "p", user can set a lock on "p", which
means that prefernce P should be disabled after launching Mozilla. That is what
the patch does.
If we just replace
enablePipelining.disabled = doDisable;
with:
enablePipelining.disabled |= doDisable;
There will be two issues:
1. We can't disable P if p is locked.
2. if p is not locked in autoconfig.jsc and once P is disabled by changing some
other preference say Q, P will not enable again even user change the settings of Q.
Reporter | ||
Comment 23•21 years ago
|
||
*** Bug 241416 has been marked as a duplicate of this bug. ***
Comment 24•21 years ago
|
||
(In reply to comment #22)
> If we just replace
> enablePipelining.disabled = doDisable;
> with:
> enablePipelining.disabled |= doDisable;
> There will be two issues:
> 1. We can't disable P if p is locked.
Maybe I have misunderstood some things in preferences... But doesn't the
widgetstatemanager usually disable items that are locked? And wasn't, therefore,
your patch only needed because this assignment to .disabled overrode it?
> 2. if p is not locked in autoconfig.jsc and once P is disabled by changing some
> other preference say Q, P will not enable again even user change the settings
of Q.
Oh, yeah, that is a good point. so nevermind.
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•