Crash in [@ mozilla::net::HttpBaseChannel::SetLoadInfo] due to Services.io.newChannelFromURI
Categories
(Core :: DOM: Security, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox66 | --- | unaffected |
firefox67 | --- | wontfix |
firefox68 | --- | fixed |
People
(Reporter: Oriol, Assigned: ckerschb)
References
(Regression)
Details
(Keywords: crash, regression, Whiteboard: [domsecurity-active])
Crash Data
Attachments
(1 file)
Open browser console and run
var uri = Services.io.newURI("http://example.com", null, null);
var channel = Services.io.newChannelFromURI(uri, null, null, null, null, null);
Result: crash. The assert added in bug 1533159 fails.
https://crash-stats.mozilla.org/report/index/f3db6df4-b9c0-489f-b462-5d4ba0190402
https://crash-stats.mozilla.org/report/index/ade3924e-e839-406e-88b6-867360190402
Just throw an error or something, crashing seems over the top.
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
That's a fair point. I wonder if instead of MOZ_RELEASE_ASSERT
we should use a
MOZ_DIAGNOSTIC_ASSERT(aLoadInfo);
if (!aLoadInfo) {
return NS_ERROR_INVALID_ARG;
}
Also, in nsIOService::NewChannelFromURIWithProxyFlagsInternal we should probably do the same.
(In reply to Oriol Brufau [:Oriol] from comment #0)
Open browser console and run
var uri = Services.io.newURI("http://example.com", null, null); var channel = Services.io.newChannelFromURI(uri, null, null, null, null, null);
While your point stands, I must point out that calling any Firefox internal code isn't guaranteed to not crash the browser :)
Assignee | ||
Comment 2•6 years ago
|
||
Yeah, that's probably a good idea after all - I'll incorporate that change.
Assignee | ||
Comment 3•6 years ago
|
||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
bugherder |
Comment 6•6 years ago
|
||
Very low volume on beta and may have caused a different crash in 68, doesn't look like a good candidate for uplifting, marking as wontix for 67.
Updated•4 years ago
|
Description
•