Closed Bug 389964 Opened 18 years ago Closed 18 years ago

Cross-site XMLHttpRequest broke the ability to use XMLHttpRequest from C++ triggering a crash [@ IsSameOrigin]

Categories

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

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: bent.mozilla, Unassigned)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

Here's the code we use: nsCOMPtr<nsIXMLHttpRequest> request = do_CreateInstance(NS_XMLHTTPREQUEST_CONTRACTID, &rv); rv = request->OpenRequest(NS_LITERAL_CSTRING("GET"), NS_LITERAL_CSTRING(SCHEMA_URL), PR_FALSE, EmptyString(), EmptyString()); And we crash. See attachment the stack when crashing. It seems that we're sending a null principal to IsSameOrigin. The attachment also has the stack for where we should be getting the principal, but the code returns null if there is no JS context on the stack.
Flags: blocking1.9?
Keywords: crash
Summary: Cross-site XMLHttpRequest broke the ability to use XMLHttpRequest from C++ → Cross-site XMLHttpRequest broke the ability to use XMLHttpRequest from C++ [Crash @ IsSameOrigin]
Fixed by patch in bug 389508
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Summary: Cross-site XMLHttpRequest broke the ability to use XMLHttpRequest from C++ [Crash @ IsSameOrigin] → Cross-site XMLHttpRequest broke the ability to use XMLHttpRequest from C++ triggering a crash [@ IsSameOrigin]
Flags: blocking1.9?
Crash Signature: [@ IsSameOrigin]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: