Bug 184793 - Make back forward cache work with process swapping
Summary: Make back forward cache work with process swapping
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-04-19 13:52 PDT by Brady Eidson
Modified: 2018-04-23 17:17 PDT (History)
9 users (show)

See Also:


Attachments
Patch (71.80 KB, patch)
2018-04-19 14:18 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
patch (71.82 KB, patch)
2018-04-19 14:45 PDT, Brady Eidson
cdumez: review+
Details | Formatted Diff | Diff
Patch for landing (71.83 KB, patch)
2018-04-19 20:31 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2018-04-19 13:52:11 PDT
Make back forward cache work with process swapping

This introduces reattaching to a previous process.
Comment 1 Brady Eidson 2018-04-19 13:52:31 PDT
<rdar://problem/38676604>
Comment 2 Brady Eidson 2018-04-19 14:18:43 PDT
Created attachment 338356 [details]
Patch
Comment 3 EWS Watchlist 2018-04-19 14:20:41 PDT
Attachment 338356 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:790:  Multi-line string ("...") found.  This lint script doesn't do well with such strings, and may give bogus warnings.  They're ugly and unnecessary, and you should use concatenation instead".  [readability/multiline_string] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:797:  Multi-line string ("...") found.  This lint script doesn't do well with such strings, and may give bogus warnings.  They're ugly and unnecessary, and you should use concatenation instead".  [readability/multiline_string] [5]
Total errors found: 2 in 34 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Brady Eidson 2018-04-19 14:27:35 PDT
GTK bot isn't building because its VM exhausted - Not due to the patch.

Will move forward as if there wasn't GTK build coverage for this one.
Comment 5 Brady Eidson 2018-04-19 14:45:12 PDT
Created attachment 338359 [details]
patch
Comment 6 EWS Watchlist 2018-04-19 14:46:28 PDT
Attachment 338359 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:790:  Multi-line string ("...") found.  This lint script doesn't do well with such strings, and may give bogus warnings.  They're ugly and unnecessary, and you should use concatenation instead".  [readability/multiline_string] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:797:  Multi-line string ("...") found.  This lint script doesn't do well with such strings, and may give bogus warnings.  They're ugly and unnecessary, and you should use concatenation instead".  [readability/multiline_string] [5]
Total errors found: 2 in 34 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Chris Dumez 2018-04-19 16:57:02 PDT
Comment on attachment 338359 [details]
patch

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

r=me

> Source/WebKit/UIProcess/WebBackForwardList.h:77
> +    Vector<BackForwardListItemState> filteredItems(Function<bool(WebBackForwardListItem&)>&&) const;

filteredItems is not very consistent with itemStates above. I would suggest filteredItemStates for consistency.
Comment 8 Brady Eidson 2018-04-19 20:31:56 PDT
Created attachment 338391 [details]
Patch for landing
Comment 9 EWS Watchlist 2018-04-19 20:34:13 PDT
Attachment 338391 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:790:  Multi-line string ("...") found.  This lint script doesn't do well with such strings, and may give bogus warnings.  They're ugly and unnecessary, and you should use concatenation instead".  [readability/multiline_string] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:797:  Multi-line string ("...") found.  This lint script doesn't do well with such strings, and may give bogus warnings.  They're ugly and unnecessary, and you should use concatenation instead".  [readability/multiline_string] [5]
Total errors found: 2 in 34 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 10 WebKit Commit Bot 2018-04-19 21:55:38 PDT
Comment on attachment 338391 [details]
Patch for landing

Clearing flags on attachment: 338391

Committed r230834: <https://trac.webkit.org/changeset/230834>