Closed Bug 347523 Opened 18 years ago Closed 18 years ago

nsXBLBinding should use importNode instead of cloneNode

Categories

(Core :: XBL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: peterv, Assigned: peterv)

References

Details

Attachments

(1 file, 1 obsolete file)

since it's moving the cloned nodes into a new document.
Attached patch v1 (obsolete) — Splinter Review
Attachment #232324 - Flags: superreview?(bugmail)
Attachment #232324 - Flags: review?(bugmail)
Attachment #232324 - Flags: superreview?(bugmail)
Attachment #232324 - Flags: superreview+
Attachment #232324 - Flags: review?(bugmail)
Attachment #232324 - Flags: review+
Blocks: 47903
I had to back this out because the tree went orange. The problem is the security check in ImportNode fails (XBL node coming from a chrome binding, the document imported into being a content document). I could probably use the nsNodeUtils::Clone function that I added in my patch for bug 347524 instead, which doesn't have the security check.
Status: NEW → ASSIGNED
Depends on: 347524
Blocks: 349467
Peter, maybe you can share some wisdom on bug
https://bugzilla.mozilla.org/show_bug.cgi?id=349526
?
Since mid of August, 2006, we are getting permanent crashes in BeOS port  with various stack crawls, but those all have one common thing - calling
nsXBLService::LoadBindings() and then crashing few steps later with segment violation,
in UUID Generator or in GetFactory
Attached patch v2Splinter Review
This one works better (it doesn't do the security check, which is what we want, right?).
Attachment #232324 - Attachment is obsolete: true
Attachment #237716 - Flags: superreview?(bzbarsky)
Attachment #237716 - Flags: review?(bzbarsky)
Comment on attachment 237716 [details] [diff] [review]
v2

Nice!  r+sr=bzbarsky
Attachment #237716 - Flags: superreview?(bzbarsky)
Attachment #237716 - Flags: superreview+
Attachment #237716 - Flags: review?(bzbarsky)
Attachment #237716 - Flags: review+
Tree stayed green this time.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
This fix exposed bug 347523.

/be
(In reply to comment #7)
> This fix exposed bug 347523.

Er, bug 355811.

/be

Depends on: 355811
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: