Mock WKWebView.URL for CRWWebControllerTest.CurrentUrlWithTrustLevel.
-[CRWWebController setDocumentURL:] will have a DCHECK when new document URL does not match last committed URL in WKBasedNavigationManager. This DCHECK will help to diagnose possible URL spoofing bugs in Slim Navigation feature. Mocking WKWebView.URL will prevent that DCHECK from firing in CRWWebControllerTest.CurrentUrlWithTrustLevel. Bug: 1171671 Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: I19e317079859306948fa6a925bd37d2157987876 Reviewed-on: https://chromium-review.googlesource.com/1182320Reviewed-by:Mike Dougherty <michaeldo@chromium.org> Commit-Queue: Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#584624}
Showing
Please register or sign in to comment