Open Bug 305449 Opened 19 years ago Updated 2 years ago

template rules render differently in deerpark than firefox 1.0

Categories

(Toolkit :: UI Widgets, defect)

defect

Tracking

()

mozilla1.9beta4

People

(Reporter: mark, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+

In a template with rules for generating a menu, Firefox will correctly render
the menus with menupopups while the deerpark build fails.

Reproducible: Always

Steps to Reproduce:
1. create a template
2. add a rule that generates a menu
3. ass a rule that generates a menupopup

Actual Results:  
Deerpark fails to render the menu and the space is collapsed in the UI.

Expected Results:  
The menus should have rendered a menu with a popup of menuitems.

 <menupopup id="menux-bookmarks-popup" position="after_start" 

            flags="dont-build-content"    

            orient="vertical"

            datasources="rdf:bookmarks"

            ref="NC:BookmarksRoot" 

            infer="forward-proxy"

            oncommand="menuxLoadBookmark(event,this,1);"

	    template="menux-bookmarks-template"

	    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">


		    

	   <template id="menux-bookmarks-template"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	   



	   <rule rdf:type="http://home.netscape.com/NC-rdf#Livemark">
	      <menu class="menu-iconic bookmark-item" uri="rdf:*"

              label="rdf:http://home.netscape.com/NC-rdf#Name"

              rdf:type="http://home.netscape.com/NC-rdf#Folder"

              livemark="true"

              chromedir="&locale.dir;"/>

	   </rule>
	   
	   <rule parent="menu">

            <menupopup>

            <menuitem class="menuitem-iconic bookmark-item" uri="rdf:*"

                  label="rdf:http://home.netscape.com/NC-rdf#Name" 

                  image="rdf:http://home.netscape.com/NC-rdf#Icon"

                  status="rdf:http://home.netscape.com/WEB-rdf#status"

                  statustext="rdf:http://home.netscape.com/NC-rdf#URL"

                  metadata="rdf:http://home.netscape.com/NC-rdf#WebPanel"/>

            </menupopup>

        </rule>



	</template>


   </menupopup>
This is caused by bug 98997 and was revealed by bug 295711. Bug 296679 comment 8
explains the best way around.
Not sure if this should dupe or not. It should be fixed when bug 98997 is fixed
and for now the workaround doesnt seem to have any side effects.
Severity: major → normal
Status: UNCONFIRMED → NEW
Component: General → XUL Widgets
Depends on: 98997
Ever confirmed: true
OS: Linux → All
Product: Firefox → Toolkit
QA Contact: general → xul.widgets
Hardware: PC → All
Version: unspecified → Trunk
Could you test that this was fixed by the patch to bug 98997?
Target Milestone: --- → mozilla1.9beta4
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: