Closed Bug 282735 Opened 20 years ago Closed 20 years ago

[FIX]XBL treats <children> tags in all namespaces as <xbl:children>

Categories

(Core :: XBL, defect, P2)

x86
Linux
defect

Tracking

()

VERIFIED FIXED
mozilla1.8beta2

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(4 files, 1 obsolete file)

There's no namespace check; there should be one.
Attached file XBL for testcase (obsolete) —
Attachment #174703 - Attachment is obsolete: true
Attached file XBL for testcase
Attached file Testcase
Attached patch Proposed patchSplinter Review
Attachment #174709 - Flags: superreview?(jst)
Attachment #174709 - Flags: review?(jst)
Priority: -- → P2
Target Milestone: --- → mozilla1.8beta2
Comment on attachment 174709 [details] [diff] [review]
Diff -w for ease of review

+nsXBLPrototypeBinding::GetNestedChildren():
+    if (child->IsContentOfType(nsIContent::eELEMENT) &&
+	 child->GetNodeInfo()->Equals(aTag, aNamespace)) {

You could save yourself a virtual call there if you'd cat the nodeinfo into a
local weak pointer and then null check it before using it, if you'd do that you
wouldn't need to do the IsContentOfType() check.

r+sr=jst
Attachment #174709 - Flags: superreview?(jst)
Attachment #174709 - Flags: superreview+
Attachment #174709 - Flags: review?(jst)
Attachment #174709 - Flags: review+
Fixed with that comment.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
verified.
Status: RESOLVED → VERIFIED
Depends on: 284126
This patch broke the quick search drop down box for Thunderbird's quick search
boxes (visible from the mail 3-pane, the address book and the contacts sidebar
panel).

Please see Bug #284126 for details.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: