Bug 190378 - PSON: Doing a cross-site navigation via the URL bar does not swap process on iOS
Summary: PSON: Doing a cross-site navigation via the URL bar does not swap process on iOS
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-10-08 16:14 PDT by Chris Dumez
Modified: 2018-10-09 12:04 PDT (History)
5 users (show)

See Also:


Attachments
Patch (9.23 KB, patch)
2018-10-08 16:22 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (8.28 KB, patch)
2018-10-09 10:58 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 2018-10-08 16:14:01 PDT
Doing a cross-site navigation via the URL bar does not swap process on iOS, even though PSON is enabled.
Comment 1 Chris Dumez 2018-10-08 16:14:26 PDT
<rdar://problem/45059466>
Comment 2 Chris Dumez 2018-10-08 16:22:28 PDT
Created attachment 351830 [details]
Patch
Comment 3 Alex Christensen 2018-10-09 10:39:46 PDT
Comment on attachment 351830 [details]
Patch

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

> Source/WebKit/ChangeLog:10
> +        which would use a new WebView for the speculative load and rely on the _relatedWebView SPI to use

WKWebView

> Source/WebKit/UIProcess/WebProcessPool.cpp:2147
> +            url = URL { { }, page.configuration().relatedPage()->pageLoadState().url() };

I feel like url needs a more descriptive name.  sourceURL?

> Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:1852
> +    auto processPoolConfiguration = adoptNS([[_WKProcessPoolConfiguration alloc] init]);

These two tests should share some code.
Comment 4 Chris Dumez 2018-10-09 10:58:51 PDT
Created attachment 351897 [details]
Patch
Comment 5 Geoffrey Garen 2018-10-09 11:15:00 PDT
Comment on attachment 351897 [details]
Patch

r=me
Comment 6 WebKit Commit Bot 2018-10-09 12:04:54 PDT
Comment on attachment 351897 [details]
Patch

Clearing flags on attachment: 351897

Committed r236973: <https://trac.webkit.org/changeset/236973>
Comment 7 WebKit Commit Bot 2018-10-09 12:04:56 PDT
All reviewed patches have been landed.  Closing bug.