Closed
Bug 1450726
Opened 7 years ago
Closed 7 years ago
[@ mozilla::net::nsHttpChannel::OnStopRequest ] crash
Categories
(Core :: Networking: HTTP, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox59 | --- | unaffected |
firefox60 | --- | unaffected |
firefox61 | --- | fixed |
People
(Reporter: Oriol, Assigned: valentin)
References
Details
(Keywords: crash, regression, Whiteboard: [necko-triaged])
Crash Data
Attachments
(1 file)
Enter this code into browser console:
var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
var uri = ioService.newURI("http://example.com", null, null);
var channel = ioService.newChannelFromURI2(uri, null, null, null, null, null);
channel.QueryInterface(Ci.nsIHttpChannel);
channel.asyncOpen({}, null);
Result: crash
Crash report: https://crash-stats.mozilla.com/report/index/5852320f-ca2c-4a97-9fcc-c76820180402
Regression window: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=ed8bb5680400049c4dfea4756e751a187e7d5700&tochange=f61cd15b68a01063cf4f10ec7f2ae0748f141ae7
Flags: needinfo?(jkt)
Assignee | ||
Comment 1•7 years ago
|
||
Missing null check.
Assignee: nobody → valentin.gosu
Flags: needinfo?(jkt)
Priority: -- → P2
Whiteboard: [necko-triaged]
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
I thought we were now getting to the point where we could require LoadInfo on a channel. Christoph, isn't this something you were working towards?
Flags: needinfo?(ckerschb)
Comment 4•7 years ago
|
||
(In reply to Ben Kelly [Part-time, not reviewing][:bkelly] from comment #3)
> I thought we were now getting to the point where we could require LoadInfo
> on a channel. Christoph, isn't this something you were working towards?
I think we have assertions that our own created channels can't have a null loadinfo. That case is something special. Nevertheless it's not great that we are crashing. Since legacy extensions are gone I think we could return an error if AsyncOpen() has been called without calling AsyncOpen2() first. Or even better, we get Bug 1279428 fixed and landed and completely remove AsyncOpen().
Flags: needinfo?(ckerschb)
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8964336 [details]
Bug 1450726 - Missing null check for mLoadInfo
https://reviewboard.mozilla.org/r/233054/#review238812
LGTM, thanks for fixing
Attachment #8964336 -
Flags: review?(jkt) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by ebalazs@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c6b1a6b5a10a
Missing null check for mLoadInfo r=jkt
Keywords: checkin-needed
Comment 7•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•