Chromium Code Reviews
DescriptionFix navigation requests starting too early and not getting associated with the <webview>.
The problem is for PlzNavigate, the ExtensionNavigationUIData is created when the NavigationHandle is created. We have to ensure it's not created before the relevant guestview structures are set up, which happens later for renderer created windows. So we have to wait until the RFH is ready (i.e. when it unblocks request through ResourceDispatcherHost) to create the NavigationHandle.
This fixes
WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_DeclarativeWebRequest_0
WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_DeclarativeWebRequest_1
WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_WebRequest_0
WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_WebRequest_1
WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_WebRequestRemoveElement_0
WebViewInteractiveTests_WebViewNewWindowInteractiveTest.NewWindow_WebRequestRemoveElement_1
with PlzNavigate.
BUG=661811
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/baaab3a22a5bf6d98be978a962361787d86aabdc
Cr-Commit-Position: refs/heads/master@{#430099}
Patch Set 1 #Patch Set 2 : fix NewWindow_DeclarativeWebRequest/1 #Patch Set 3 : fix AppBackgroundPageApiTest test failures #Patch Set 4 : keep only one pending navigation #
Total comments: 4
Patch Set 5 : nits #Messages
Total messages: 37 (29 generated)
|