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

Issue 2666953003: [ios] Automatically fail any WebTest whose render process crashes. (Closed)

Created:
3 years, 10 months ago by rohitrao (ping after 24h)
Modified:
3 years, 10 months ago
CC:
chromium-reviews, Eugene But (OOO till 7-30)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Automatically fail any WebTest whose render process crashes. We speculate that some tests are flaky because iOS is killing WKWebViews while the tests are running. This CL adds a GlobalWebStateObserver method to listen for this and explicitly fail the current test when a WKWebView dies. Having an explicit failure will make these cases more apparent when looking through test logs. This CL also adds an escape hatch for tests that intentionally crash the renderer. BUG=None Review-Url: https://codereview.chromium.org/2666953003 Cr-Commit-Position: refs/heads/master@{#447615} Committed: https://chromium.googlesource.com/chromium/src/+/caeca2dde86a85efeda94866988b3659f5951889

Patch Set 1 #

Patch Set 2 : Add test. #

Total comments: 24

Patch Set 3 : Review #

Patch Set 4 : Fix comment. #

Total comments: 2

Patch Set 5 : Fix comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -1 line) Patch
M ios/web/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/public/test/web_test.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M ios/web/public/test/web_test.mm View 1 2 2 chunks +22 lines, -1 line 0 comments Download
M ios/web/public/web_state/global_web_state_observer.h View 1 chunk +4 lines, -0 lines 0 comments Download
A ios/web/test/web_test_unittest.mm View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
M ios/web/web_state/global_web_state_event_tracker.h View 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/web_state/global_web_state_event_tracker.mm View 3 chunks +10 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2666953003/diff/20001/ios/web/public/test/web_test.h File ios/web/public/test/web_test.h (right): https://codereview.chromium.org/2666953003/diff/20001/ios/web/public/test/web_test.h#newcode38 ios/web/public/test/web_test.h:38: // that intentionally crash the render process. Would it ...
3 years, 10 months ago (2017-02-01 16:43:04 UTC) #6
rohitrao (ping after 24h)
https://codereview.chromium.org/2666953003/diff/20001/ios/web/public/test/web_test.h File ios/web/public/test/web_test.h (right): https://codereview.chromium.org/2666953003/diff/20001/ios/web/public/test/web_test.h#newcode38 ios/web/public/test/web_test.h:38: // that intentionally crash the render process. On 2017/02/01 ...
3 years, 10 months ago (2017-02-01 18:23:00 UTC) #8
Eugene But (OOO till 7-30)
lgtm! https://codereview.chromium.org/2666953003/diff/20001/ios/web/public/test/web_test.mm File ios/web/public/test/web_test.mm (right): https://codereview.chromium.org/2666953003/diff/20001/ios/web/public/test/web_test.mm#newcode23 ios/web/public/test/web_test.mm:23: void RenderProcessGone(WebState* web_state) override { On 2017/02/01 18:22:59, ...
3 years, 10 months ago (2017-02-01 18:41:45 UTC) #12
rohitrao (ping after 24h)
https://codereview.chromium.org/2666953003/diff/60001/ios/web/test/web_test_unittest.mm File ios/web/test/web_test_unittest.mm (right): https://codereview.chromium.org/2666953003/diff/60001/ios/web/test/web_test_unittest.mm#newcode37 ios/web/test/web_test_unittest.mm:37: static WKWebView* web_view = web_view_; On 2017/02/01 18:41:45, Eugene ...
3 years, 10 months ago (2017-02-01 20:29:14 UTC) #15
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/2666953003/80001
3 years, 10 months ago (2017-02-01 20:30:48 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 21:33:07 UTC) #21
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/caeca2dde86a85efeda94866988b...

Powered by Google App Engine
This is Rietveld 408576698