Closed Bug 747325 Opened 12 years ago Closed 11 years ago

'Error parsing template: expected <content> to be first' when opening virtualFolderListDialog.xul

Categories

(MailNews Core :: Search, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 22.0

People

(Reporter: florian, Assigned: aceman)

Details

Attachments

(1 file, 1 obsolete file)

Each time I open the virtualFolderListDialog.xul dialog, I see this message twice in my error console:
Error parsing template: expected <content> to be first

This message is printed from http://mxr.mozilla.org/comm-central/source/mozilla/content/xul/templates/src/nsXULContentUtils.cpp#498 without any location information, but it seems clear that the problem is something in http://mxr.mozilla.org/comm-central/source/mailnews/base/content/virtualFolderListDialog.xul#74 that the parser dislikes.

Steps to open that dialog:
1. View -> Folders -> Unified
2. Open the context menu of the Inbox special folder, and select "Properties…"
3. Click the "Choose…" button in the dialog that appeared.
WFM over here
I can still reproduce (tested on a Mac debug build).
Still happening. Maybe it is something from RDF?
Component: Folder and Message Lists → Search
Product: Thunderbird → MailNews Core
There's a duplicate <content> tag in virtualFolderListDialog.xul, only the first child of <conditions> can be <content>, thus the error.
Attached patch patch (obsolete) — Splinter Review
Thanks Neil.
Assignee: nobody → acelists
Status: NEW → ASSIGNED
Attachment #716145 - Flags: review?(neil)
Comment on attachment 716145 [details] [diff] [review]
patch

>+            <member container="?container" child="?member"
>+                    isDeferred="?isDeferred"/>
Well, if you're going to fiddle, I don't think this is necessary. But I don't really want to create a virtual folder just to find out...
Attached patch patch v2Splinter Review
If that one is to hide deferred accounts in the list, then I have tried it now and with that line removed deferred accounts are still hidden.
Attachment #716145 - Attachment is obsolete: true
Attachment #716145 - Flags: review?(neil)
Attachment #716211 - Flags: review?(neil)
Comment on attachment 716211 [details] [diff] [review]
patch v2

OK, r=me based on code inspection.
Attachment #716211 - Flags: review?(neil) → review+
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/33a80322430e
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 22.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: