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

Issue 2103673003: tools/android/loading: Properly detect page loading failures (Closed)

Created:
4 years, 5 months ago by gabadie
Modified:
4 years, 5 months ago
Reviewers:
mattcary, blundell
CC:
chromium-reviews, mikecase+watch_chromium.org, gabadie+watch_chromium.org, jbudorick+watch_chromium.org, lizeb+watch-android-loading_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tools/android/loading: Properly detect page loading failures Before, one page failures, Blink sided generated response were triggering assertion in request_track.RequestTrack. This CL fixes this issue by removing the asserts and instead implements loading_trace.LoadingTrace.HasLoadingSucceed() that is based on navigation trace events. BUG=582080 Committed: https://crrev.com/c44e7bf15904d461676839524c3a850dc6d05da7 Cr-Commit-Position: refs/heads/master@{#402481}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Addresses Matt's comments #

Patch Set 4 : Adds test coverage of request_track.py #

Patch Set 5 : Add tests case for Network.loadingFailed #

Total comments: 2

Patch Set 6 : Addresses Colin's nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -4 lines) Patch
M tools/android/loading/request_track.py View 6 chunks +12 lines, -4 lines 0 comments Download
M tools/android/loading/request_track_unittest.py View 1 2 3 4 3 chunks +31 lines, -0 lines 0 comments Download
M tools/android/loading/tracing.py View 1 2 3 4 5 2 chunks +20 lines, -0 lines 0 comments Download
M tools/android/loading/tracing_unittest.py View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (5 generated)
gabadie
4 years, 5 months ago (2016-06-28 09:41:38 UTC) #2
mattcary
Add unittests. Since python isn't compiled, eg, in the request track now that something nontrivial ...
4 years, 5 months ago (2016-06-28 10:07:06 UTC) #3
gabadie
Uploaded a new revision. PTAL. https://codereview.chromium.org/2103673003/diff/1/tools/android/loading/loading_trace.py File tools/android/loading/loading_trace.py (right): https://codereview.chromium.org/2103673003/diff/1/tools/android/loading/loading_trace.py#newcode71 tools/android/loading/loading_trace.py:71: def HasLoadingSucceed(self): On 2016/06/28 ...
4 years, 5 months ago (2016-06-28 11:42:45 UTC) #4
mattcary
and request_track_unitest.py?
4 years, 5 months ago (2016-06-28 11:44:41 UTC) #5
gabadie
On 2016/06/28 11:44:41, mattcary wrote: > and request_track_unitest.py? My bad. Did not understand to also ...
4 years, 5 months ago (2016-06-28 11:57:10 UTC) #6
mattcary
Ah, mostly I meant LoadingFailed and making sure the new error text is handled correctly. ...
4 years, 5 months ago (2016-06-28 12:27:59 UTC) #7
gabadie
On 2016/06/28 12:27:59, mattcary wrote: > Ah, mostly I meant LoadingFailed and making sure the ...
4 years, 5 months ago (2016-06-28 12:47:10 UTC) #8
mattcary
lgtm Thanks!
4 years, 5 months ago (2016-06-28 12:57:12 UTC) #9
gabadie
blundell@chromium.org: PTAL
4 years, 5 months ago (2016-06-28 12:57:58 UTC) #11
blundell
lgtm https://codereview.chromium.org/2103673003/diff/70001/tools/android/loading/tracing.py File tools/android/loading/tracing.py (right): https://codereview.chromium.org/2103673003/diff/70001/tools/android/loading/tracing.py#newcode235 tools/android/loading/tracing.py:235: def HasLoadingSucceed(self): nit: HasLoadingSucceeded
4 years, 5 months ago (2016-06-28 13:53:01 UTC) #12
gabadie
Thanks guys for the review! Landing. https://codereview.chromium.org/2103673003/diff/70001/tools/android/loading/tracing.py File tools/android/loading/tracing.py (right): https://codereview.chromium.org/2103673003/diff/70001/tools/android/loading/tracing.py#newcode235 tools/android/loading/tracing.py:235: def HasLoadingSucceed(self): On ...
4 years, 5 months ago (2016-06-28 14:29:54 UTC) #13
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/2103673003/90001
4 years, 5 months ago (2016-06-28 14:30:38 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:90001)
4 years, 5 months ago (2016-06-28 15:49:03 UTC) #17
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 15:50:36 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c44e7bf15904d461676839524c3a850dc6d05da7
Cr-Commit-Position: refs/heads/master@{#402481}

Powered by Google App Engine
This is Rietveld 408576698