Closed Bug 502109 Opened 15 years ago Closed 13 years ago

python-xpcom XMLHttpRequest.open refuses to accept 3rd-5th arguments (async etc.)

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 459452

People

(Reporter: lkcl, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.14) Gecko/20080404 Iceweasel/2.0.0.14 (Debian-2.0.0.14-2) Build Identifier: am porting pyjamss-desktop to XUL (actually python-xpcom actually python-hulahop). have got a long way - everything is working _except_ you can't get at the "optional" arguments of nsIXMLHttpRequest. 1st arg - POST, great. 2nd arg - url, great. 3rd arg, async=True - BARF, python-xpcom complains "open takes exactly 3 args, 4 given". (1st is always self in python) Reproducible: Always Steps to Reproduce: 1. download pyjamas from sourceforge, go via http://pyjs.org get latest svn 2. do apt-get install python-xpcom python-hulahop on debian/unstable or debian/testing 3 cd pyjamas 4 python bootstrap.py 5 sudo python run_bootstrap_then_setup.py install 3. cd examples/jsonrpc 4. python JSONRPCExample.py 5. click on "Send to PHP Service" Actual Results: error output "open takes exactly 3 args, 4 given". Expected Results: async XMLHTTPRequest actually happens, duh.
The IDL doesn't represent the full method call available from JS. I'm not sure this is something we want to bother with, since JS is the primary scripting language for the web.
Component: XUL → DOM
QA Contact: xptoolkit.widgets → general
I claim this would work if we still supported Python, thanks to bug 459452.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
OS: Linux → All
Hardware: x86 → All
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.