New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 674304 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Left Chrome team
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug
Proj-Servicification

Blocked on:
issue 676139

Blocking:
issue 673806



Sign in to add a comment

Failures in chrome_public_test_apk with PlzNavigate turned on

Project Member Reported by jam@chromium.org, Dec 14 2016

Issue description

See this sample test run:
https://codereview.chromium.org/2574953002/#ps80001
https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/199299

To run the test with PlzNavigate, add --enable-browser-side-navigation
 


 bug 674303  tracks the ContextualSearchManagerTest_testPrefetchFailoverRequestMadeAfterOpen failure, so ignore that. The remaining ones are

org.chromium.chrome.browser.ntp.NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad
org.chromium.chrome.browser.externalnav.UrlOverridingTest#testNavigationFromXHRCallbackInSubFrame
org.chromium.chrome.browser.BindingManagerIntegrationTest#testCrashInForeground
org.chromium.chrome.browser.externalnav.UrlOverridingTest#testNavigationFromUserGestureInSubFrame
org.chromium.chrome.browser.tab.InterceptNavigationDelegateTest#testExternalAppIframeNavigation
org.chromium.chrome.browser.externalnav.UrlOverridingTest#testNavigationFromTimer
org.chromium.chrome.browser.toolbar.BrandColorTest#testBrandColorInterstitial
org.chromium.chrome.browser.BindingManagerIntegrationTest#testRestoreSharedRenderer
org.chromium.chrome.browser.externalnav.UrlOverridingTest#testNavigationWithFallbackURL
org.chromium.chrome.browser.externalnav.UrlOverridingTest#testNavigationFromXHRCallbackAndLongTimeout
org.chromium.chrome.browser.webapps.WebappModeTest#testWebappHandlesSuppressedWindowOpenInTabbedMode
org.chromium.chrome.browser.TabsOpenedFromExternalAppTest#testHttpsReferrerFromFirstPartyNoDowngrade
 

Comment 1 by jam@chromium.org, Dec 15 2016

btw some of these failures might be due to WebContentsObserverProxy overriding some WebContentsObserver methods that don't work with PlzNavigate.

See WebContentsObserver's header for methods that are deprecated, these need to be replaced. i.e.
DidStartNavigationToPendingEntry/DidStartProvisionalLoadForFrame -> DidStartNavigation
DidCommitProvisionalLoadForFrame/DidFailProvisionalLoad/DidNavigateMainFrame/DidNavigateAnyFrame -> DidFinishNavigation
Looking at this, none of the new methods / objects are currently piped into Java. We don't have proxy observer for DidStartNavigation/DidFinishNavigation and we'll probably need a java wrapper for the NavigationHandle object.

I imagine we would need the observers to change not just in the tests, but in the code as well? Currently there are plenty observers in code looking at methods that are marked as deprecated on the C++ interface.
Amendment: Looks like DidFinishNavigation is there (with a subset of parameters being passed to java as primitives), but I don't see the rest of the methods.

Comment 4 by jam@chromium.org, Dec 20 2016

Re comment 2, yes we'll want to change the code as well. Usually, but not always because of non perfect test coverage, fixing tests is what motivates fixing the shipping code.
Blockedon: 676139

Comment 6 by jam@chromium.org, Feb 13 2017

After the WebContentsObserverProxy changes landed, we still have a bunch of failures:

https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/231186
org.chromium.chrome.browser.ntp.NewTabPageTest#testUrlFocusAnimationsEnabledOnFailedLoad
org.chromium.chrome.browser.media.ui.NotificationActionsUpdatedTest#testActionsPersistAfterInPageNavigation
org.chromium.chrome.browser.webapps.WebappModeTest#testWebappHandlesWindowOpenInTabbedMode
org.chromium.chrome.browser.externalnav.UrlOverridingTest#testNavigationFromTimer
org.chromium.chrome.browser.TabThemeTest#testThemeColorIsCorrect
org.chromium.chrome.browser.BindingManagerIntegrationTest#testRestoreSharedRenderer
org.chromium.chrome.browser.externalnav.UrlOverridingTest#testNavigationWithFallbackURL
org.chromium.chrome.browser.banners.AppBannerManagerTest#testBannerFallsBackToShortName
org.chromium.chrome.browser.externalnav.UrlOverridingTest#testNavigationFromXHRCallbackAndLongTimeout
org.chromium.chrome.browser.BindingManagerIntegrationTest#testCrashInForeground
org.chromium.chrome.browser.toolbar.BrandColorTest#testBrandColorInterstitial
org.chromium.chrome.browser.webapps.WebappModeTest#testWebappHandlesSuppressedWindowOpenInTabbedMode
org.chromium.chrome.browser.TabsOpenedFromExternalAppTest#testHttpsReferrerFromFirstPartyNoDowngrade
org.chromium.chrome.browser.media.ui.NotificationTitleUpdatedTest#testMediaMetadataPersistsAfterInPageNavigation

Maria: any chance you or someone on your team can help investigate these failures? Thanks
Ted, is there anyone on your team who could take a look at this?
Cc: shaktisahu@chromium.org
Sadly no one right now.  I'm OOO for the next two days, but I can try to take a look Friday.

Adding Shakti in case he's not aware of these.

Comment 9 by cblume@chromium.org, Mar 24 2017

Cc: jam@chromium.org
Is this fixed already?

The bug this depends on is marked as fixed.
And the bug which depends on this one is marked fixed.
Status: Fixed (was: Assigned)
I think so. We can double check on https://codereview.chromium.org/2385413004/ later.

Comment 11 by jam@chromium.org, Mar 25 2017

Yep it's fixed, thanks for all the help.
Components: Internals>Network>Service
Components: -Internals>Network>Service Internals>Services>Network
Apologies, applied the wrong component in bulk.

Sign in to add a comment