Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Issue 1705353002: Disable range requests if the origin ignores byte-range. (Closed)

Created:
4 years, 10 months ago by spelchat
Modified:
4 years, 9 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable range requests if the origin ignores byte-range. Use the non-linearized PDF code path if the server doesn't respond to range requests with a partial response. Previously, Chrome entered a request loop if the PDF was linearized and the server advertized byte range support but responded with a 200 code instead of 206. BUG=587502 R=thestig@chromium.org TEST=Load https://www.usenix.org/legacy/publications/library/proceedings/sec96/full_papers/goldberg/goldberg.pdf Committed: https://crrev.com/d24b85fd27f774f8fcb68e112d6862d7afddcdd8 Cr-Commit-Position: refs/heads/master@{#376053}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M pdf/document_loader.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
spelchat
4 years, 10 months ago (2016-02-17 23:08:25 UTC) #1
Lei Zhang
LGTM, thanks for the quick fix. For the future, do we want to write tests ...
4 years, 10 months ago (2016-02-17 23:17:30 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1705353002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1705353002/1
4 years, 10 months ago (2016-02-17 23:24:20 UTC) #4
spelchat
On 2016/02/17 23:17:30, Lei Zhang wrote: > LGTM, thanks for the quick fix. > > ...
4 years, 10 months ago (2016-02-17 23:30:30 UTC) #5
Lei Zhang
On 2016/02/17 23:30:30, spelchat wrote: > I'll look into adding a test. Looking at that ...
4 years, 10 months ago (2016-02-17 23:35:08 UTC) #6
commit-bot: I haz the power
Exceeded global retry quota
4 years, 10 months ago (2016-02-18 00:31:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1705353002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1705353002/1
4 years, 10 months ago (2016-02-18 00:49:33 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-18 00:57:06 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/d24b85fd27f774f8fcb68e112d6862d7afddcdd8 Cr-Commit-Position: refs/heads/master@{#376053}
4 years, 10 months ago (2016-02-18 00:58:12 UTC) #13
spelchat
4 years, 9 months ago (2016-03-08 18:43:30 UTC) #14
Message was sent while issue was closed.
On 2016/02/17 23:35:08, Lei Zhang (OOO) wrote:
> On 2016/02/17 23:30:30, spelchat wrote:
> > I'll look into adding a test. Looking at that class, I think it should be
> > possible, but I'm not familiar with it (or Chrome in general really). I'll
try
> > to send a CL in the next few days.
> 
> No rush. Lots of opportunities to learn!

Turns out this is only reproducible with the PDF from the bug. Unless it's OK to
add that PDF to the test data (I doubt it is), I think I'll have to punt on
adding a regression test for this issue.

Powered by Google App Engine
This is Rietveld 408576698