Closed Bug 371846 Opened 18 years ago Closed 18 years ago

Kill unneccesary ownership management code in nsBindingManager::SetAnonymousNodesFor

Categories

(Core :: XBL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sicking, Assigned: sicking)

Details

Attachments

(2 files)

Attached patch Patch to fixSplinter Review
nsBindingManager::SetAnonymousNodesFor currently checks if any insertion points in the old list exists in the new list before killing the old list. This isn't needed any more since insertion points are refcounted.
Attachment #256536 - Flags: superreview?(jst)
Attachment #256536 - Flags: review?(Olli.Pettay)
Attachment #256536 - Flags: superreview?(jst) → superreview+
Comment on attachment 256536 [details] [diff] [review] Patch to fix So this is basically backing out part of bug 296375. That bug has a testcase. r=me
Attachment #256536 - Flags: review?(Olli.Pettay) → review+
Should this be checked in?
Assignee: general → jonas
Yes, I need to test it using the testcases in bug 296375 first though. If you wanna convert them into mochikit tests that'd save me that effort ;)
There's a single usable testcase there, your patch doesn't seem to regress that. I can make it a mochitest, yes.
Crashes with an old 1.0+ build, doesn't crash in a patched current trunk build, nor in 2.0.
er, actually it crashes in the 1.0+ build only if you remove the 'type="application/javascript"', which the old build for some case didn't like.
Checked in. Nickolay: thanks for helping out by helping writing the testcase.
Status: NEW → 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: