Closed Bug 15586 Opened 26 years ago Closed 25 years ago

synchronous RDF/XML loads do not call observers

Categories

(Core Graveyard :: RDF, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: waterson, Assigned: waterson)

Details

Attachments

(2 files)

Need to make sure that rdf_BlockingParse calls back to observers before and after doing the parse.
Status: NEW → ASSIGNED
Target Milestone: M12
Target Milestone: M12 → M20
I suck.
Guess who else run into this..
Keywords: zopestudio
Target Milestone: --- → mozilla0.9
Edge case... It is perhaps worth including a null-check, "if (obs)", for the case where some observers remove themselves, causing the for-loop to be out of sync and to go out of bounds.
But looking again, it seems things are sufficiently safe because the loop goes in decreasing order... So if the i-th observer removes itself upon receiving its notification and the array is compacted from the tail, then the (i-1)-first index will still be pointing to the next...
dougt: incorporated your feedback... 1. Updated C-style casts 2. You're right: should always call OnEndLoad().
r=dougt. thanks
sr=alecf
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
verified
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: