GeckoSession#onExternalResponse is getting called with negative values on response.contentLength
Categories
(GeckoView :: General, defect, P1)
Tracking
(firefox78 fixed)
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: amejia, Assigned: m_kato)
References
Details
(Whiteboard: [geckoview:m78])
Attachments
(1 file)
STP
- Try to download https://osdn.net/projects/manjaro/storage/xfce/19.0.2/manjaro-xfce-19.0.2-200311-linux54.iso/
onExternalResponse
gets called with theresponse.contentLength
equal to-1522876416
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
When content length is over 2GB, WebResponseInfo.contentLength
is negative
value. Use Long.valueOf instead of Integer.valueOf to pass this value.
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/7a235bf95a00 Use Long.valueOf instead of Integer.valueOf on GeckoSession#onExternalResponse. r=geckoview-reviewers,agi
Comment 4•4 years ago
|
||
bugherder |
Reporter | ||
Comment 5•4 years ago
|
||
We are still seeing this issue on 79.0.20200615092624
, to simulate just try to download this file
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
•
|
||
(In reply to Arturo Mejia from comment #5)
We are still seeing this issue on
79.0.20200615092624
, to simulate just try to download this file
Your test is incorrect. -1 is valid for content length for this site (This web server returns unknown length).
Could you test this when web server returns over 4GB value for content-length really?
Reporter | ||
Comment 7•4 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #6)
(In reply to Arturo Mejia from comment #5)
We are still seeing this issue on
79.0.20200615092624
, to simulate just try to download this fileYour test is incorrect. -1 is valid for content length for this site (This web server returns unknown length).
Could you test this when web server returns over 4GB value for content-length really?
Sure no problem!
Reporter | ||
Comment 8•4 years ago
|
||
The values is as expected with content length larger than 4GB value. I think we can close this bug
Description
•