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

Issue 2624443002: [Android WebView] Remove postOnPageFinished from shouldInterceptRequest. (Closed)

Created:
3 years, 11 months ago by gsennton
Modified:
3 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, android-webview-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android WebView] Remove postOnPageFinished from shouldInterceptRequest. We previously added a call to onPageFinished from shouldInterceptRequest in https://codereview.chromium.org/1364863002/. This was to avoid failing the test AwContentsClientShouldInterceptRequestTest#testOnReceivedErrorCallback. However, the cause of the test failing was that with that CL we no longer post onPageFinished after receiving a response with an empty data segment (because WebView no longer received WebContentsObserver.didFinishLoad() callbacks for loads that resulted in an empty response). Since then, onPageFinished is again being posted after receiving an empty response - this was fixed in https://codereview.chromium.org/2563423004/ The current CL simply removes the unnecessary (and thus incorrect) onPageFinished call from shouldInterceptRequest and adds a couple of tests to ensure the original problem with onPageFinished doesn't occur again. See b/32629339 for additional discussions. BUG=656919 Review-Url: https://codereview.chromium.org/2624443002 Cr-Commit-Position: refs/heads/master@{#442621} Committed: https://chromium.googlesource.com/chromium/src/+/7363ea0b81a3a51eb1513761ecfee892f667fa64

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix Selim's nits (comment fixes). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -10 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 chunk +2 lines, -4 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java View 1 2 chunks +116 lines, -2 lines 0 comments Download
M net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java View 5 chunks +24 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
gsennton
phajdan.jr@chromium.org: Please review changes in net/test/ sgurun@chromium.org: Please review changes in android_webview/ japhet@ this is ...
3 years, 11 months ago (2017-01-09 16:12:40 UTC) #2
Nate Chapin
On 2017/01/09 16:12:40, gsennton wrote: > mailto:phajdan.jr@chromium.org: Please review changes in net/test/ > > mailto:sgurun@chromium.org: ...
3 years, 11 months ago (2017-01-09 18:20:25 UTC) #3
sgurun-gerrit only
lgtm with nits just to make sure: you actually tested this with the said bug ...
3 years, 11 months ago (2017-01-10 04:59:08 UTC) #4
gsennton
https://codereview.chromium.org/2624443002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java File android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java (right): https://codereview.chromium.org/2624443002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java#newcode478 android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java:478: // Ensure onPageFinished isn't called several times. By loading ...
3 years, 11 months ago (2017-01-10 16:08:24 UTC) #5
Paweł Hajdan Jr.
LGTM
3 years, 11 months ago (2017-01-10 16:26:29 UTC) #6
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/2624443002/20001
3 years, 11 months ago (2017-01-10 16:53:56 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 17:30:35 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7363ea0b81a3a51eb1513761ecfe...

Powered by Google App Engine
This is Rietveld 408576698