Closed
Bug 308754
Opened 19 years ago
Closed 17 years ago
The preference binding events (syncfrompreference, synctopreference, change) are fired with wrong JS context
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: asaf, Assigned: mnyromyr)
References
Details
Attachments
(1 file)
1.82 KB,
patch
|
asaf
:
review+
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
The preference binding events (syncfrompreference, synctopreference, change) are
fired with wrong JS context. An example of how can it break stuff is bug 297286
(a similar issue in the colorpicker).
Reporter | ||
Updated•19 years ago
|
Reporter | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Updated•19 years ago
|
Flags: blocking1.8b5?
Target Milestone: mozilla1.8beta5 → mozilla1.9alpha1
Reporter | ||
Updated•18 years ago
|
Assignee: bugs.mano → nobody
Status: ASSIGNED → NEW
Assignee | ||
Comment 1•17 years ago
|
||
We stumbled upon this during SM pref panel migration.
Assignee | ||
Updated•17 years ago
|
Attachment #295295 -
Flags: review? → review?(mconnor)
Comment 2•17 years ago
|
||
(In reply to comment #0)
> The preference binding events (syncfrompreference, synctopreference, change)
> are fired with wrong JS context.
As far as I can tell, preference change events have always use standard DOM dispatch with the correct context; for some reason colorpickers are weird because after DOM dispatch they then call their onchange attribute again?!
JFTR The preference-specific events don't have automatic handler attributes and therefore we don't use standard DOM dispatch there.
Assignee | ||
Comment 3•17 years ago
|
||
Comment on attachment 295295 [details] [diff] [review]
call pseudo event in the context of the actual element
Here's hoping Asaf is more accessible on such issues he even filed himself. ;-)
Attachment #295295 -
Flags: review?(mconnor) → review?(mano)
Reporter | ||
Comment 4•17 years ago
|
||
Comment on attachment 295295 [details] [diff] [review]
call pseudo event in the context of the actual element
looks good.
Attachment #295295 -
Flags: review?(mano) → review+
Assignee | ||
Comment 5•17 years ago
|
||
Comment on attachment 295295 [details] [diff] [review]
call pseudo event in the context of the actual element
Low risk; FF/TB/Minimo/Calendar are using global objects/functions to work around the bug and don't care for 'this'.
Attachment #295295 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #295295 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 6•17 years ago
|
||
Landed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•