Bug 142916 - [WK2] Allow stale content when restoring the browser's session state
Summary: [WK2] Allow stale content when restoring the browser's session state
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on: 142893
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-20 12:19 PDT by Chris Dumez
Modified: 2016-02-04 09:17 PST (History)
4 users (show)

See Also:


Attachments
Patch (10.17 KB, patch)
2015-03-20 12:31 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (10.17 KB, patch)
2015-03-20 13:34 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 2015-03-20 12:19:41 PDT
Allow stale content when restoring the browser's session state (restoring all tabs from previous session), e.g.
- Via History > Reopen All windows from previous session on Safari
- Happens on startup for MobileSafari

Radar: <rdar://problem/18769970>
Comment 1 Chris Dumez 2015-03-20 12:31:25 PDT
Created attachment 249129 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2015-03-20 13:30:01 PDT
<rdar://problem/20243493>
Comment 3 Chris Dumez 2015-03-20 13:34:28 PDT
Created attachment 249133 [details]
Patch
Comment 4 Darin Adler 2015-03-20 14:59:51 PDT
Comment on attachment 249133 [details]
Patch

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

> Source/WebKit2/ChangeLog:12
> +        Allow stale content when restoring the browser's session state
> +        (restoring all tabs from previous session), e.g.
> +        - Via History > Reopen All windows from previous session on Safari
> +        - Happens on startup for MobileSafari

A cool idea, but seems a little risky. Might be a mix of new content and really old content depending on what’s in the cache.

> Source/WebKit2/UIProcess/WebPageProxy.cpp:-2100
> -                return goToBackForwardItem(item, AllowStaleContent::No);

You could have made this a 1-line patch and then later removed this argument once we are sure it’s the right thing!
Comment 5 WebKit Commit Bot 2015-03-20 15:45:53 PDT
Comment on attachment 249133 [details]
Patch

Clearing flags on attachment: 249133

Committed r181815: <http://trac.webkit.org/changeset/181815>
Comment 6 WebKit Commit Bot 2015-03-20 15:45:59 PDT
All reviewed patches have been landed.  Closing bug.