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

Issue 2946103003: Protect against |main_window_| being null. (Closed)

Created:
3 years, 6 months ago by Łukasz Anforowicz
Modified:
3 years, 6 months ago
Reviewers:
alexmos
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, jam, einbinder+watch-test-runner_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Protect against |main_window_| being null. BlinkTestController::OnAllServiceWorkersCleared method needs to be protected against a scenario where |main_window_| is null (e.g. this field can be reset inside DiscardMainWindow if web contents are destroyed during the test; this wasn't an issue before r480692, because back then we would just send an IPC to a routing id of a destroyed RenderViewHost). BUG=735423 Review-Url: https://codereview.chromium.org/2946103003 Cr-Commit-Position: refs/heads/master@{#481570} Committed: https://chromium.googlesource.com/chromium/src/+/8b3bc33806c5940f54f91f4c57736e8b90a85b03

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M content/shell/browser/layout_test/blink_test_controller.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
Łukasz Anforowicz
Alex, could you PTAL? This fixes a test-only crash/regression that was 1) introduced by blink_test_controller.cc ...
3 years, 6 months ago (2017-06-22 16:46:45 UTC) #7
alexmos
LGTM
3 years, 6 months ago (2017-06-22 16:58:04 UTC) #8
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/2946103003/1
3 years, 6 months ago (2017-06-22 16:59:18 UTC) #10
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 17:04:06 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/8b3bc33806c5940f54f91f4c5773...

Powered by Google App Engine
This is Rietveld 408576698