Bug 202768 - Pages frequently fail to enter the back/forward cache due to frames with a quick redirect coming
Summary: Pages frequently fail to enter the back/forward cache due to frames with a qu...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks: 202293
  Show dependency treegraph
 
Reported: 2019-10-09 15:06 PDT by Chris Dumez
Modified: 2019-10-11 16:29 PDT (History)
8 users (show)

See Also:


Attachments
Patch (5.25 KB, patch)
2019-10-10 14:49 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (5.25 KB, patch)
2019-10-10 14:50 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (6.46 KB, patch)
2019-10-10 18:40 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2019-10-09 15:06:46 PDT
Pages frequently fail to enter the back/forward cache due to loading ad frames (e.g. on Yahoo.com). Page cache error is usually "Quick redirect coming".
Comment 1 Radar WebKit Bug Importer 2019-10-09 15:07:17 PDT
<rdar://problem/56132022>
Comment 2 Chris Dumez 2019-10-10 14:49:17 PDT
Created attachment 380690 [details]
Patch
Comment 3 Chris Dumez 2019-10-10 14:50:42 PDT
Created attachment 380691 [details]
Patch
Comment 4 Chris Dumez 2019-10-10 18:40:14 PDT
Created attachment 380712 [details]
Patch
Comment 5 Chris Dumez 2019-10-11 13:26:21 PDT
Comment on attachment 380712 [details]
Patch

Clearing flags on attachment: 380712

Committed r251019: <https://trac.webkit.org/changeset/251019>
Comment 6 Chris Dumez 2019-10-11 13:26:23 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Darin Adler 2019-10-11 16:05:54 PDT
Comment on attachment 380712 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=380712&action=review

> Source/WebCore/ChangeLog:24
> +        (WebCore::FrameLoader::stopForPageCache):
> +        Stop policy checks & cancel scheduled navigations after stopping loads. Stopping loads may
> +        run script which may in theory schedule new navigations. This is hardening.

Since this is hardening, I think It needs a comment; since un-hardening it won’t lead to a test failing, presumably only the comment will prevent us from un-hardening it.
Comment 8 Chris Dumez 2019-10-11 16:25:19 PDT
(In reply to Darin Adler from comment #7)
> Comment on attachment 380712 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=380712&action=review
> 
> > Source/WebCore/ChangeLog:24
> > +        (WebCore::FrameLoader::stopForPageCache):
> > +        Stop policy checks & cancel scheduled navigations after stopping loads. Stopping loads may
> > +        run script which may in theory schedule new navigations. This is hardening.
> 
> Since this is hardening, I think It needs a comment; since un-hardening it
> won’t lead to a test failing, presumably only the comment will prevent us
> from un-hardening it.

Good idea, I will add a comment.
Comment 9 Chris Dumez 2019-10-11 16:29:44 PDT
(In reply to Chris Dumez from comment #8)
> (In reply to Darin Adler from comment #7)
> > Comment on attachment 380712 [details]
> > Patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=380712&action=review
> > 
> > > Source/WebCore/ChangeLog:24
> > > +        (WebCore::FrameLoader::stopForPageCache):
> > > +        Stop policy checks & cancel scheduled navigations after stopping loads. Stopping loads may
> > > +        run script which may in theory schedule new navigations. This is hardening.
> > 
> > Since this is hardening, I think It needs a comment; since un-hardening it
> > won’t lead to a test failing, presumably only the comment will prevent us
> > from un-hardening it.
> 
> Good idea, I will add a comment.

Landed in <https://trac.webkit.org/changeset/251029>.