If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

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

VERIFIED INVALID

Status

()

Core
DOM
--
major
VERIFIED INVALID
10 years ago
5 years ago

People

(Reporter: Greg K., Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments, 1 obsolete attachment)

15 bytes, text/plain
Details
1.08 KB, application/xhtml+xml
Details
(Reporter)

Description

10 years ago
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.)
(Reporter)

Comment 1

10 years ago
Created attachment 295933 [details]
Text file to be loaded via XMLHttpRequest
(Reporter)

Comment 2

10 years ago
Created attachment 295934 [details]
Testcase
(Reporter)

Comment 3

10 years ago
Created attachment 295936 [details]
XHTML Testcase
Attachment #295934 - Attachment is obsolete: true
(Reporter)

Comment 4

10 years ago
I was wrong after all. XMLHttpRequest.send() only succeeds in Firefox when Firebug is enabled.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → INVALID

Updated

10 years ago
Status: RESOLVED → VERIFIED
(Assignee)

Updated

5 years ago
Component: DOM: Mozilla Extensions → DOM
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.