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

Issue 144283007: Call WebViewClient#onPageFinished when a main frame fails to load (Closed)

Created:
6 years, 10 months ago by hush (inactive)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Call WebViewClient#onPageFinished when a main frame fails to load This change also reverts https://codereview.chromium.org/133273033/ because you don't need to fire onPageFinished separately for ssl error cancel. BUG=342859 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251145

Patch Set 1 #

Patch Set 2 : added test #

Total comments: 4

Patch Set 3 : address comments #

Total comments: 1

Patch Set 4 : call onReceivedError before onPageFinished #

Total comments: 1

Patch Set 5 : test onReceivedError is called before onPageFinished #

Total comments: 16

Patch Set 6 : address Marcin's comments #

Patch Set 7 : fix the test testOnPageFinishedCalledAfterError #

Total comments: 2

Patch Set 8 : address comments about the test #

Messages

Total messages: 22 (0 generated)
hush (inactive)
Hi, This fix is about b/12837161. Please take a look. Thanks
6 years, 10 months ago (2014-02-11 19:17:31 UTC) #1
hush (inactive)
I will add some instrumentation tests
6 years, 10 months ago (2014-02-11 19:32:39 UTC) #2
hush (inactive)
Hi! I added a test for it. Thank you!
6 years, 10 months ago (2014-02-11 22:09:32 UTC) #3
sgurun-gerrit only
lgtm, but you need an owner's lgtm before submitting. https://codereview.chromium.org/144283007/diff/80001/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/144283007/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java#newcode88 android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java:88: ...
6 years, 10 months ago (2014-02-11 22:48:44 UTC) #4
hush (inactive)
removed the empty lines. uploaded a new patch set https://codereview.chromium.org/144283007/diff/80001/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/144283007/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java#newcode88 android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java:88: ...
6 years, 10 months ago (2014-02-11 23:13:30 UTC) #5
boliu
lgtm https://codereview.chromium.org/144283007/diff/150001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java File android_webview/java/src/org/chromium/android_webview/AwContentsClient.java (right): https://codereview.chromium.org/144283007/diff/150001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java#newcode70 android_webview/java/src/org/chromium/android_webview/AwContentsClient.java:70: AwContentsClient.this.onPageFinished(failingUrl); Check what the ordering of onPageFinished vs ...
6 years, 10 months ago (2014-02-11 23:40:02 UTC) #6
hush (inactive)
On 2014/02/11 23:40:02, boliu wrote: > lgtm > > https://codereview.chromium.org/144283007/diff/150001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java > File android_webview/java/src/org/chromium/android_webview/AwContentsClient.java > (right): ...
6 years, 10 months ago (2014-02-12 00:38:39 UTC) #7
hush (inactive)
new patch uploaded
6 years, 10 months ago (2014-02-12 01:00:23 UTC) #8
boliu
https://codereview.chromium.org/144283007/diff/190001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java File android_webview/java/src/org/chromium/android_webview/AwContentsClient.java (right): https://codereview.chromium.org/144283007/diff/190001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java#newcode81 android_webview/java/src/org/chromium/android_webview/AwContentsClient.java:81: AwContentsClient.this.onPageFinished(failingUrl); Definitely add a comment about the ordering. Even ...
6 years, 10 months ago (2014-02-12 01:07:06 UTC) #9
boliu
still lgtm btw
6 years, 10 months ago (2014-02-12 01:49:22 UTC) #10
hush (inactive)
On 2014/02/12 01:07:06, boliu wrote: > https://codereview.chromium.org/144283007/diff/190001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java > File android_webview/java/src/org/chromium/android_webview/AwContentsClient.java > (right): > > https://codereview.chromium.org/144283007/diff/190001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java#newcode81 ...
6 years, 10 months ago (2014-02-12 02:07:31 UTC) #11
hush (inactive)
Hi, I just added a test for the ordering of onPageFinished vs onReceivedError
6 years, 10 months ago (2014-02-12 02:09:20 UTC) #12
boliu
lgtm
6 years, 10 months ago (2014-02-12 02:15:02 UTC) #13
mkosiba (inactive)
https://codereview.chromium.org/144283007/diff/220001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java File android_webview/java/src/org/chromium/android_webview/AwContentsClient.java (right): https://codereview.chromium.org/144283007/diff/220001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java#newcode83 android_webview/java/src/org/chromium/android_webview/AwContentsClient.java:83: AwContentsClient.this.onPageFinished(failingUrl); The reason we have the errorCode check in ...
6 years, 10 months ago (2014-02-12 16:03:38 UTC) #14
hush (inactive)
Hi Marcin, Thanks for the comments! I just uploaded a new patch set. https://codereview.chromium.org/144283007/diff/220001/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java File ...
6 years, 10 months ago (2014-02-12 18:40:40 UTC) #15
hush (inactive)
Hi! I just fixed testOnPageFinishedCalledAfterError so that you will fail if you call onPageFinished before ...
6 years, 10 months ago (2014-02-12 19:40:59 UTC) #16
mkosiba (inactive)
lgtm https://codereview.chromium.org/144283007/diff/400001/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/144283007/diff/400001/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java#newcode69 android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java:69: super.onPageFinished(url); maybe assert onReceivedError was called? https://codereview.chromium.org/144283007/diff/400001/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java#newcode78 android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java:78: ...
6 years, 10 months ago (2014-02-13 17:21:49 UTC) #17
hush (inactive)
The CQ bit was checked by hush@chromium.org
6 years, 10 months ago (2014-02-13 17:33:13 UTC) #18
hush (inactive)
On 2014/02/13 17:21:49, mkosiba wrote: > lgtm > > https://codereview.chromium.org/144283007/diff/400001/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java > File > android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java > ...
6 years, 10 months ago (2014-02-13 17:33:24 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hush@chromium.org/144283007/450001
6 years, 10 months ago (2014-02-13 17:34:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hush@chromium.org/144283007/450001
6 years, 10 months ago (2014-02-13 19:52:14 UTC) #21
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 22:03:27 UTC) #22
Message was sent while issue was closed.
Change committed as 251145

Powered by Google App Engine
This is Rietveld 408576698