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

Issue 569423002: Fix a ServiceWorker crasher (Closed)

Created:
6 years, 3 months ago by michaeln
Modified:
6 years, 3 months ago
Reviewers:
nhiroki, horo
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, serviceworker-reviews, tzik, mkwst+moarreviews-content_chromium.org, jam, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+serviceworker
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix a ServiceWorker crasher. We have to test the provider_host_ weakptr in async callbacks because the document can be closed, and the host deleted, in the interim. BUG=414118 Committed: https://crrev.com/279f16422ffac905ecd74e9016d75da887b9954c Cr-Commit-Position: refs/heads/master@{#294999}

Patch Set 1 #

Patch Set 2 : test #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -5 lines) Patch
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 3 chunks +8 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc View 1 2 3 chunks +47 lines, -1 line 0 comments Download

Messages

Total messages: 17 (5 generated)
michaeln
hi ptal, really doesn't need two reviewers, just whomever gets there first, thnx
6 years, 3 months ago (2014-09-15 22:23:48 UTC) #2
michaeln
i have a test in the works that i'll upload soon too
6 years, 3 months ago (2014-09-15 22:26:09 UTC) #3
michaeln
test is in snapshot #2
6 years, 3 months ago (2014-09-16 00:35:12 UTC) #4
nhiroki
LGTM! https://codereview.chromium.org/569423002/diff/20001/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc File content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc (right): https://codereview.chromium.org/569423002/diff/20001/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc#newcode132 content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc:132: registration_->SetWaitingVersion(version_.get()); nit: Pairing as follows might be more ...
6 years, 3 months ago (2014-09-16 00:49:47 UTC) #5
michaeln
thnx https://codereview.chromium.org/569423002/diff/20001/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc File content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc (right): https://codereview.chromium.org/569423002/diff/20001/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc#newcode132 content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc:132: registration_->SetWaitingVersion(version_.get()); On 2014/09/16 00:49:46, nhiroki wrote: > nit: ...
6 years, 3 months ago (2014-09-16 00:53:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/569423002/40001
6 years, 3 months ago (2014-09-16 01:11:21 UTC) #8
nhiroki
As per horo@'s CL (https://codereview.chromium.org/551843005/), this CL could fix [1] and [2], too :D [1] ...
6 years, 3 months ago (2014-09-16 01:35:08 UTC) #9
horo
lgtm. Thank you.
6 years, 3 months ago (2014-09-16 02:00:56 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/14516)
6 years, 3 months ago (2014-09-16 02:28:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/569423002/40001
6 years, 3 months ago (2014-09-16 03:17:05 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 627820a8d2e047ade46d01998a1464f4a68533f8
6 years, 3 months ago (2014-09-16 03:37:11 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 03:38:47 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/279f16422ffac905ecd74e9016d75da887b9954c
Cr-Commit-Position: refs/heads/master@{#294999}

Powered by Google App Engine
This is Rietveld 408576698