Chromium Code Reviews
DescriptionRecentTabHelper won't accept overlapping requests from Downloads anymore.
This change fixes a free-after-use bug by changing the way RecentTabHelper
handles page snapshot requests from Downloads. The main change is that it now
will ignore overlapping requests from Downloads but a few other changes were
made, many of them required to get this properly fixed:
- Moved SnapshotProgressInfo definition into the CC file.
- Fixed issues with overlapping snapshot requests from Downloads and page
quality status events.
- Fixed potential issue where last_n and Downloads requests would be mixed up in
case Background Downloader was disabled.
- Added enforcement of acceptable Offline namespaces for requests.
- Changed the logic for automatically replacing Downloads snapshots once the
page attains high quality ("fully" loaded).
- Other minor code and comments improvements.
Note: snapshot overlap between last_n and Downloads requests are still accepted.
BUG=678367, 683580
Review-Url: https://codereview.chromium.org/2655673005
Cr-Commit-Position: refs/heads/master@{#446882}
Committed: https://chromium.googlesource.com/chromium/src/+/01fea95b3e06b6b270b816e798e03a7995589d1a
Patch Set 1 #
Total comments: 12
Patch Set 2 : Added test to check download requests don't overlap. #Patch Set 3 : Minor changes from addressing dewittj@ comments. #
Messages
Total messages: 20 (9 generated)
|
|||||||||||||||||||||||||||||||||||||