Closed Bug 355114 Opened 18 years ago Closed 18 years ago

xml:space handling mixes GetCurrentDoc and GetOwnerDoc

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: longsonr, Assigned: longsonr)

References

Details

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) (deleted) — Splinter Review
Assignee: general → longsonr
Status: NEW → ASSIGNED
Attachment #240916 - Flags: review?(tor)
What's the lifetime of the SVG mutation observer? Does it basically die when the frame dies?
(In reply to comment #2) > What's the lifetime of the SVG mutation observer? Does it basically die when > the frame dies? > It's static, there's only one. It needs to be attached when the outer SVG frame is created and detached when it the outer frame is destroyed.
Then how does this patch work, exactly?
Attachment #240916 - Attachment is obsolete: true
Attachment #240916 - Flags: review?(tor)
(In reply to comment #4) > Then how does this patch work, exactly? > I was trying to guard against the mutation observer being added multiple times for in the same document but there are two issues with that a) NodeWillBeDestroyed is only called when the document is destroyed and not on frame destruction. b) nsBindingManager::AddObserver already checks that the observer is not already added before adding it. I now think that the best thing to do is just to remove the code in the nsSVGOuterFrame destructor - there is only one nsSVGMutationObserver which can only be added at most once to any one document. Removing it is not necessary.
Attached patch updated patch (obsolete) (deleted) — Splinter Review
Attachment #240939 - Flags: review?(tor)
Comment on attachment 240939 [details] [diff] [review] updated patch Maybe add a comment at the point you add the observer explaining why it's never explicitly removed?
Attachment #240939 - Flags: review?(tor) → review+
Attached patch address review comment (deleted) — Splinter Review
Attachment #240939 - Attachment is obsolete: true
Attachment #242614 - Flags: superreview?(bzbarsky)
Comment on attachment 242614 [details] [diff] [review] address review comment Hmmm.... ok.
Attachment #242614 - Flags: superreview?(bzbarsky) → superreview+
checked in
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: