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)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: myk, Assigned: myk)

References

Details

(Keywords: fixed1.9.1)

Attachments

(1 file)

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.
Attachment #373289 - Flags: review?(doug.turner)
Attachment #373289 - Flags: review?(gavin.sharp)
Attachment #373289 - Flags: review?(doug.turner)
Attachment #373289 - Flags: review+
Comment on attachment 373289 [details] [diff] [review] patch v1: uses class instead this looks fine to me, lets let gavin look too.
Flags: blocking1.9.1?
Attachment #373289 - Flags: review?(gavin.sharp) → review+
Attachment #373289 - Flags: approval1.9.1?
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment on attachment 373289 [details] [diff] [review] patch v1: uses class instead a191=beltzner
Attachment #373289 - Flags: approval1.9.1? → approval1.9.1+
Blocks: FF2SM
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P2
Blocks: 488472
No longer blocks: FF2SM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: