Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Issue 2729103005: Fix bug with data:urls and PlzNavigate on Android. (Closed)

Created:
3 years, 9 months ago by jam
Modified:
3 years, 9 months ago
Reviewers:
clamy
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix bug with data:urls and PlzNavigate on Android. data urls always go to the browser on Android so that the application has a chance to handle them (see rr143228). With PlzNavigate, this has already happened for navigation requests so there's no need to send them again to the browser (and it triggers unhandled codepaths if that happens). This fixes: org.chromium.content.browser.InterstitialPageTest#testCloseInterstitial InterstitialPageImplTest.Paste InterstitialPageImplTest.Cut DevToolsProtocolTest.InterstitialShownOnAttach InterstitialPageImplTest.SelectAll DevToolsProtocolTest.ShowCertificateViewer InterstitialPageImplTest.Copy SitePerProcessBrowserTest.NavigateOpenerWithInterstitial org.chromium.android_webview.test.SafeBrowsingTest#testSafeBrowsingBackToSafetyShowsNetworkErrorForMaliciousSubresource with {--webview-sandboxed-renderer} org.chromium.android_webview.test.SafeBrowsingTest#testSafeBrowsingBackToSafetyShowsNetworkErrorForMaliciousSubresource org.chromium.android_webview.test.SafeBrowsingTest#testSafeBrowsingMaliciousSubresourceShowsInterstitial org.chromium.android_webview.test.SafeBrowsingTest#testSafeBrowsingBackToSafetyShowsNetworkError with {--webview-sandboxed-renderer} org.chromium.android_webview.test.SafeBrowsingTest#testSafeBrowsingShowsInterstitialForMalware with {--webview-sandboxed-renderer} org.chromium.android_webview.test.SafeBrowsingTest#testSafeBrowsingCanProceedThroughInterstitial org.chromium.android_webview.test.SafeBrowsingTest#testSafeBrowsingShowsInterstitialForMalware org.chromium.android_webview.test.SafeBrowsingTest#testSafeBrowsingMaliciousSubresourceShowsInterstitial with {--webview-sandboxed-renderer} org.chromium.android_webview.test.SafeBrowsingTest#testSafeBrowsingBackToSafetyShowsNetworkError org.chromium.android_webview.test.LoadDataWithBaseUrlTest#testloadDataWithBaseUrlCallsOnPageStarted org.chromium.android_webview.test.AwContentsClientShouldInterceptRequestTest#testNotCalledForExistingContentUrl with {--webview-sandboxed-renderer} BUG=673806 Review-Url: https://codereview.chromium.org/2729103005 Cr-Commit-Position: refs/heads/master@{#454883} Committed: https://chromium.googlesource.com/chromium/src/+/4ff77a6cf88f3a5d793eabb02bd62d61f8dd4b1f

Patch Set 1 : with PlzNavigate #

Patch Set 2 : without PlzNavigate #

Total comments: 2

Patch Set 3 : remove unnecessary checkForBrowserSideNavigation, with PlzNavigate #

Patch Set 4 : without PlzNavigate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M content/child/web_url_loader_impl.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
jam
3 years, 9 months ago (2017-03-06 04:30:37 UTC) #7
clamy
Thanks! One question below. https://codereview.chromium.org/2729103005/diff/60001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/2729103005/diff/60001/content/child/web_url_loader_impl.cc#newcode935 content/child/web_url_loader_impl.cc:935: request_.checkForBrowserSideNavigation()) { Can we really ...
3 years, 9 months ago (2017-03-06 14:41:06 UTC) #10
jam
https://codereview.chromium.org/2729103005/diff/60001/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/2729103005/diff/60001/content/child/web_url_loader_impl.cc#newcode935 content/child/web_url_loader_impl.cc:935: request_.checkForBrowserSideNavigation()) { On 2017/03/06 14:41:06, clamy wrote: > Can ...
3 years, 9 months ago (2017-03-06 16:07:07 UTC) #13
clamy
Thanks! Lgtm.
3 years, 9 months ago (2017-03-06 16:09:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2729103005/100001
3 years, 9 months ago (2017-03-06 16:15:10 UTC) #17
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 17:47:46 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/4ff77a6cf88f3a5d793eabb02bd6...

Powered by Google App Engine
This is Rietveld 408576698