Strange error when calling an MCO with an alert in FireFox
----------------------------------------------------------

                 Key: XAP-313
                 URL: https://issues.apache.org/jira/browse/XAP-313
             Project: XAP
          Issue Type: Bug
            Reporter: Trevor Oldak
            Priority: Minor


Load the followng 2 files:

index.xal
<xal xmlns="http://openxal.org/ui";>
    <mco xmlns="http://openxal.org/core/mco"; id="handler" class="EventHandler" 
src="src-js/EventHandler.js"/>
    <freePane xmlns="http://openxal.org/ui"; id="panel" width="500px" 
height="300px" fontSize="10pt">
        <button text="Input your name and click" 
onCommand="mco:handler.passParam('foo')"/>
        <textField xmlns="http://openxal.org/ui/html"; height="20px" text="" 
id="name" width="150px"
            x="200px" fontSize="10pt"/>
    </freePane>
</xal>

EventHandler.js
EventHandler = function  () {
};
EventHandler.prototype.passParam = function (name) {
        alert('Hello '+name+'!');
        return;
};


1) Enter text into the text field
2) Click the button. In FireFox, a bug will be thrown:

[Exception... "'Permission denied to set property XULElement.selectedIndex' 
when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: 
"0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: 
http://localhost:81/XAP_testing53/.dist/samples/xap/xapcore.js :: anonymous :: 
line 113" data: no]
xapcore.js (line 113)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to