Closed Bug 411270 Opened 17 years ago Closed 17 years ago

XMLHttpRequest.send() without arguments succeeds on Mac (all other platforms require at least null argument)

Categories

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

PowerPC
macOS
defect
Not set
major

Tracking

()

VERIFIED INVALID

People

(Reporter: bugmail, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

15 bytes, text/plain
Details
1.08 KB, application/xhtml+xml
Details
Firefox 2.0.0.11 on Mac allows XMLHttpRequest.send() calls to succeed without any arguments. Firefox on Win (2.0.0.11 tested) and Linux (2.0.0.9 tested) as well as Camino 1.5.4 and K-Meleon 1.1.3 all return an exception:

[Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://localhost/~gkolanek/xhr/get.html :: test :: line 29" data: no]

Either Firefox on Mac is wrong or Firefox on the other platforms along with the embedders are. The result should certainly be consistent.

(Note that both Safari and Opera on both Mac and Windows allow send() calls without any arguments, further confusing the picture.)
Attached file Testcase (obsolete) —
Attached file XHTML Testcase
Attachment #295934 - Attachment is obsolete: true
I was wrong after all. XMLHttpRequest.send() only succeeds in Firefox when Firebug is enabled.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: