Closed Bug 310162 Opened 19 years ago Closed 19 years ago

Changing proxy settings is slow and throws multiple javascript errors

Categories

(Firefox :: Settings UI, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mossop, Assigned: mossop)

Details

(Keywords: fixed1.8)

Attachments

(1 file)

Changing the proxy settings throws the following message lots of times:

Error: document has no properties
Source File: chrome://global/content/bindings/preferences.xml
Line: 94

Don't seem to be able to reproduce this on branch.
Silly me, my branch install didnt have console logging. This does occur on branch.
Status: NEW → ASSIGNED
When child prefwindows are accepted, they create preference elements in the
parent to hold their state. Unfortunatly these elements have a blank name and
so the preference observer is called once for every one of these elements,
everytime a preference changes.

This patch re-registers the preference observer when the preference element's
name changes. It might also be sensible to do some other things on preference
name change, retrieve the value from preferences perhaps?

I confess to not being totally sure what is causing the specific error message,
but it happens at the same time as the pref observer being called about 10
times for the same preference, and this patch seems to resolve it for me.
Attachment #197587 - Flags: review?(mconnor)
Comment on attachment 197587 [details] [diff] [review]
Re-registers preference observer as necessary

another example of making the widget better before people really start using it
Attachment #197587 - Flags: review?(mconnor) → review+
Trunk:
mozilla/toolkit/content/widgets/preferences.xml; new revision: 1.40;
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Flags: blocking1.8b5?
Resolution: --- → FIXED
Attachment #197587 - Flags: approval1.8b5? → approval1.8b5+
Whiteboard: [checkin needed][a+]
gavin, this needs to get i nASAP or the approval may go away. 
I probably won't be able to check this in today. Asaf, do you mind checking this
in on the branch?
Forgot to mark this, timeless checked it in a short while ago.
Flags: blocking1.8b5?
Whiteboard: [checkin needed][a+] → fixed1.8
Keywords: fixed1.8
Whiteboard: fixed1.8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: