Closed Bug 293431 Opened 20 years ago Closed 19 years ago

XUL custom tree allow unpriviledged javascript set treecell properties.

Categories

(Firefox :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 156387

People

(Reporter: jooaun.saw, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Under custom tree, unpriviledged javascript not able to set treecell properties
(unable to style a tree) because nsIAtomService is needed.

See code fragment below for more details:

getCellProperties: function(row,col,props)
{
  if ((row %4) == 0)
  {
    var aserv=Components.classes["@mozilla.org/atom-service;1"].
              getService(Components.interfaces.nsIAtomService);
    props.AppendElement(aserv.getAtom("makeItBlue"));
  }
}


It would be nice to have a way for unpriviledged javascript to style the tree.


Reproducible: Always

*** This bug has been marked as a duplicate of 156387 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.