Closed Bug 136268 Opened 24 years ago Closed 24 years ago

toolbox.expandToolbar(toolbar) fails with "TypeError: aGriddyID.substring is not a function"

Categories

(Core :: XUL, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID
Future

People

(Reporter: khp, Assigned: hyatt)

Details

If you try this program, you should get the error message. (tested with Build ID: 2002040803) var toolbox = document.getElementById("navigator-toolbox"); var toolbar = document.getElementById("PersonalToolbar"); try { toolbox.collapseToolbar(toolbar); toolbox.expandToolbar(toolbar); //does not work } catch (error) { alert(error); } Does anyone know how to circumvent the problem?
http://lxr.mozilla.org/seamonkey/source/xpfe/global/resources/content/bindings/ toolbar.xml#261 41 <method name="expandToolbar"> 42 <parameter name="aGrippyID"/> 43 <body> 44 <![CDATA[ 45 var idString = aGrippyID.substring("moz_tb_collapsed_".length, aGrippyID.length); 46 var toolbar = document.getElementById(idString); expandToolbar takes a string corresponding to an ID, not a Node.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Target Milestone: --- → Future
.
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.