Bug 142916

Summary: [WK2] Allow stale content when restoring the browser's session state
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, commit-queue, koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=153230
Bug Depends on: 142893    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch none

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.