New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 655723 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Offline Page Cache: investigate why TechCrunch saves are failing so frequently

Project Member Reported by carlosk@chromium.org, Oct 13 2016

Issue description

While running some traces of Offline Page Cache I noticed most loads of a TechCrunch article page cause two loads to happen with the second failing. We should investigate why this is happening.

[1] https://techcrunch.com/2016/10/12/spray-and-pray/
 
Related issues:
- Issue 655708: "Offline Page Cache: allow MHTML file save to be successful even if frames are missing"
-  Issue 655697 : "Offline Page Cache: do not delete previous save if last one fails"

Comment 2 by dim...@chromium.org, Oct 19 2016

Labels: -Pri-3 Pri-2
Owner: carlosk@chromium.org
Status: Assigned (was: Available)
Project Member

Comment 3 by bugdroid1@chromium.org, Nov 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/29da4fe0a2b453e474e6cd530332a2ed02f70576

commit 29da4fe0a2b453e474e6cd530332a2ed02f70576
Author: carlosk <carlosk@chromium.org>
Date: Tue Nov 29 00:01:29 2016

Fail when saving page as MHTML provides information about the cause.

This change adds more detailed information to tracing and UMA histograms about
the reason why a MHTML save operation has failed. This will help us understand
why some specific pages consistently fail and better handle these situations.

It introduces a new enum, MhtmlSaveStatus, that lists all tracked causes. Part
of the reasons are tracked by the browser and the others by the render process
but the reporting is centralized in the former. A few tests from
MHTMLGenerationTest were also changed to verify the MHTML failures they test for
are correctly reported.

BUG= 645686 , 655723 ,655708
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Review-Url: https://codereview.chromium.org/2519273002
Cr-Commit-Position: refs/heads/master@{#434783}

[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/browser/download/mhtml_generation_browsertest.cc
[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/browser/download/mhtml_generation_manager.cc
[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/browser/download/mhtml_generation_manager.h
[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/browser/frame_host/render_frame_host_impl.cc
[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/browser/frame_host/render_frame_host_impl.h
[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/common/BUILD.gn
[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/common/content_param_traits_macros.h
[add] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/common/download/mhtml_save_status.cc
[add] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/common/download/mhtml_save_status.h
[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/common/frame_messages.h
[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/renderer/render_frame_impl.cc
[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/content/renderer/render_frame_impl.h
[modify] https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576/tools/metrics/histograms/histograms.xml

Blockedon: 655708
Running a few tests using the new tracing information I confirmed our theory that the failures while offlining TechCrunch are due to missing iframes. The work on allowing MHTML generation to succeed when frames are missing should help or even fully resolve this error.
Blockedon: -655708
Status: Fixed (was: Assigned)
The OP suggested investigation is done and issue 655708 was created to solve the detected "frames disappearing" issue. So I'll mark this one as fixed.

Sign in to add a comment