Bug 195684

Summary: REGRESSION(PSON, r240660): Navigation over process boundary is flashy when using Cmd-left/right arrow to navigate
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, commit-queue, dbates, ews-watchlist, ggaren, japhet, koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Chris Dumez 2019-03-13 10:27:53 PDT
Navigation over process boundary is flashy when using Cmd-left/right arrow to navigate.
Comment 1 Chris Dumez 2019-03-13 10:28:07 PDT
<rdar://problem/48294714>
Comment 2 Chris Dumez 2019-03-13 12:07:37 PDT
Created attachment 364560 [details]
Patch
Comment 3 Antti Koivisto 2019-03-13 12:59:36 PDT
Comment on attachment 364560 [details]
Patch

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

> Source/WebCore/ChangeLog:12
> +        When a navigation is triggered by JS (and not the client), we create the Navigation object in

Cmd-left/right arrow involves JS?

> Source/WebCore/ChangeLog:22
> +        This is a lot error prone, the WebProcess knows more accurately which history items it is going

"a lot error prone"
Comment 4 Chris Dumez 2019-03-13 13:01:35 PDT
Comment on attachment 364560 [details]
Patch

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

>> Source/WebCore/ChangeLog:12
>> +        When a navigation is triggered by JS (and not the client), we create the Navigation object in
> 
> Cmd-left/right arrow involves JS?

Not JS but it is a navigation triggered by the WebProcess as opposed by the UIProcess. It seems to be the same code path as navigating via JS.
Comment 5 Chris Dumez 2019-03-13 13:05:30 PDT
Created attachment 364565 [details]
Patch
Comment 6 WebKit Commit Bot 2019-03-13 13:32:54 PDT
Comment on attachment 364565 [details]
Patch

Clearing flags on attachment: 364565

Committed r242903: <https://trac.webkit.org/changeset/242903>
Comment 7 WebKit Commit Bot 2019-03-13 13:32:56 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Alex Christensen 2019-04-01 18:49:51 PDT
Comment on attachment 364565 [details]
Patch

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

> Source/WebKit/UIProcess/WebPageProxy.cpp:4522
> +                WTFLogAlways("WebPageProxy::decidePolicyForNavigationAction() creates back/forward navigation from item %s", fromItem ? fromItem->url().utf8().data() : "null");

Did you mean to commit this?  We probably shouldn't be logging URLs without at least checking ephemerality of the WebsiteDataStore.
Comment 9 Chris Dumez 2019-04-01 19:39:27 PDT
(In reply to Alex Christensen from comment #8)
> Comment on attachment 364565 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=364565&action=review
> 
> > Source/WebKit/UIProcess/WebPageProxy.cpp:4522
> > +                WTFLogAlways("WebPageProxy::decidePolicyForNavigationAction() creates back/forward navigation from item %s", fromItem ? fromItem->url().utf8().data() : "null");
> 
> Did you mean to commit this?  We probably shouldn't be logging URLs without
> at least checking ephemerality of the WebsiteDataStore.

Definitely not, this was for me debugging.
Comment 10 Chris Dumez 2019-04-01 20:13:09 PDT
(In reply to Chris Dumez from comment #9)
> (In reply to Alex Christensen from comment #8)
> > Comment on attachment 364565 [details]
> > Patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=364565&action=review
> > 
> > > Source/WebKit/UIProcess/WebPageProxy.cpp:4522
> > > +                WTFLogAlways("WebPageProxy::decidePolicyForNavigationAction() creates back/forward navigation from item %s", fromItem ? fromItem->url().utf8().data() : "null");
> > 
> > Did you mean to commit this?  We probably shouldn't be logging URLs without
> > at least checking ephemerality of the WebsiteDataStore.
> 
> Definitely not, this was for me debugging.

Dropped in <https://trac.webkit.org/changeset/243733>.