I have an extension that is used with a commercial web application that I'm
also responsible for. The extension presents a directory/file display from
which the user can select files to process in the web application.
Everything worked well until yesterday when I upgraded from Firefox 0.9 to
1.0. Now the tree is not being loaded from NC:FilesRoot. The code is more or
less this:

XUL for the tree widget (simplified):

  <tree id="directoryTree" flex="1" 
        hideheader="true" hidecolumnpicker="true" seltype="single"
        datasources="rdf:null" ref="" 
        flags="dont-test-empty"
        sortActive="true" sortDirection="ascending"
        sortResource="http://home.netscape.com/NC-rdf#Name";
        ondblclick="dirOnDblClick(event);"
        onselect="storeLastOpenDir()"> 
    <treecols>
      <treecol id="DirnameColumn" flex="1" primary="true"/>
   </treecols>
   <rule iscontainer="true">
     <treechildren>
       <treeitem uri="rdf:*">
         <treerow>
           <treecell label="rdf:http://home.netscape.com/NC-rdf#Name";
                     url="rdf:http://home.netscape.com/NC-rdf#URL"/>
          </treerow>
       </treeitem>
     </treechildren>
   </rule>
  </tree>

Javascript initialization:

  theFiles = Cc["@mozilla.org/rdf/datasource;1?name=files"]
                 .getService(Ci.nsIRDFDataSource);
                     
  var dirTree = document.getElementById("directoryTree");
  dirTree.database.AddDataSource(theFiles);
  dirTree.setAttribute("ref", "NC:FilesRoot");

If I remove the rule, I get one entry in the tree containing this text:
  rdf:http://home.netscape.com/NC-rdf#Name

Has anyone had recent problems with this sort of rdf? Are there any other
extensions that use NC:FilesRoot? I'd like to determine if this is a
pervasive problem or just mine (although I haven't made code modifications
in several months.) I've been using this extension to push Firefox but many
of my users said they'd wait for the 1.0 release. Now my plans for world
domination seem to be crumbling.

Thanks

Andy Hardacker



The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 

_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to