Closed
Bug 488821
Opened 16 years ago
Closed 16 years ago
rememberChoice checkboxes conflict in two tabs with geolocation notifications
Categories
(Core :: DOM: Geolocation, defect, P2)
Core
DOM: Geolocation
Tracking
()
RESOLVED
FIXED
People
(Reporter: myk, Assigned: myk)
References
Details
(Keywords: fixed1.9.1)
Attachments
(1 file)
2.82 KB,
patch
|
Gavin
:
review+
dougt
:
review+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
When two tabs both display a geolocation notification, each one has a checkbox element with id="rememberChoice", and one of the tabs will retrieve the other's checkbox when it does |notification.ownerDocument.getElementById("rememberChoice")|, which means that the other tab's checkbox will determine whether or not the pref is saved.
One fix would be to make the checkbox's identifier a class rather than an ID and then retrieve the checkbox relative to its containing notification in the callbacks, f.e. via |notification.getElementsByClassName("rememberChoice")[0]|.
Another would be to make its identifier an |anonid| attribute and then use getAnonymousElementByAttribute or getElementsByAttribute to retrieve it relative to its containing notification.
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #373289 -
Flags: review?(doug.turner)
Updated•16 years ago
|
Attachment #373289 -
Flags: review?(gavin.sharp)
Attachment #373289 -
Flags: review?(doug.turner)
Attachment #373289 -
Flags: review+
Comment 2•16 years ago
|
||
Comment on attachment 373289 [details] [diff] [review]
patch v1: uses class instead
this looks fine to me, lets let gavin look too.
Updated•16 years ago
|
Flags: blocking1.9.1?
Updated•16 years ago
|
Attachment #373289 -
Flags: review?(gavin.sharp) → review+
Updated•16 years ago
|
Attachment #373289 -
Flags: approval1.9.1?
Comment 3•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 4•16 years ago
|
||
Comment on attachment 373289 [details] [diff] [review]
patch v1: uses class instead
a191=beltzner
Attachment #373289 -
Flags: approval1.9.1? → approval1.9.1+
Comment 5•16 years ago
|
||
Keywords: fixed1.9.1
Updated•16 years ago
|
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P2
Updated•14 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•