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)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bent.mozilla, Unassigned)
References
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
1.24 KB,
text/plain
|
Details |
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?
Reporter | ||
Comment 1•18 years ago
|
||
Reporter | ||
Updated•18 years ago
|
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]
Blocks: xxx
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]
Reporter | ||
Updated•18 years ago
|
Flags: blocking1.9?
Assignee | ||
Updated•14 years ago
|
Crash Signature: [@ IsSameOrigin]
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•