New issue
Advanced search Search tips

Issue 777945 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 815248
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Task

Blocking:
issue 734150



Sign in to add a comment

Tabs with evicted WKWebViews lose their history with WKBasedNavigationManager

Project Member Reported by ajuma@chromium.org, Oct 24 2017

Issue description

With WKBasedNavigationManager enabled, evicting a background tab's WKWebView cause it to lose its history (including its current URL), so switching back to that tab just loads 'about:blank'.

To reproduce this, I'm force-evicting the background tab's WKWebView by "kill -9"-ing its WebContent process -- I'm not sure if there's a nicer way to do that (though tests do this by toggling TabModel.webUsageEnabled).

This is also causing TabUsageRecorderTestCase tests to fail (even after fixing the races covered by  issue 775645 ), since they call EvictOtherTabModelTabs and expect to still be able to switch back to those tabs (but now when they switch back they're unexpectedly winding up on about:blank).

Do we need to do something like make a copy of the WKBackForwardList before the tab goes into the background?

 

Comment 1 by ajuma@chromium.org, Oct 24 2017

This looks like a duplicate of  issue 776438 , though it affects real usage too, not just tests (assuming WKWebViews get killed in the background by iOS).

Comment 2 by danyao@chromium.org, Mar 14 2018

Mergedinto: 815248
Status: Duplicate (was: Available)

Sign in to add a comment