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

Issue 2144213002: ServiceWorkerContainer should override contextDestroyed and clear m_provider (Closed)

Created:
4 years, 5 months ago by haraken
Modified:
4 years, 5 months ago
Reviewers:
falken, dcheng
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorkerContainer should override contextDestroyed and clear m_provider After landing https://codereview.chromium.org/2138003002/, http/tests/serviceworkers/ tests started hitting ASSERT(!m_provider) in ServiceWorkerContainer's destructor. I don't really know why the CL triggered the assert, but we can fix the issue by overriding contextDestroyed in ServiceWorkerContainer and clear m_provider there. This CL makes the change. BUG= Committed: https://crrev.com/1b0b710282e282c2ce595845af90f54bd460c95d Cr-Commit-Position: refs/heads/master@{#405486}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -15 lines) Patch
M third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainerTest.cpp View 4 chunks +0 lines, -8 lines 1 comment Download

Messages

Total messages: 16 (5 generated)
haraken
PTAL https://codereview.chromium.org/2144213002/diff/1/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainerTest.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainerTest.cpp (left): https://codereview.chromium.org/2144213002/diff/1/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainerTest.cpp#oldcode192 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainerTest.cpp:192: container->willBeDetachedFromFrame(); This is no longer needed because contextDestroyed() ...
4 years, 5 months ago (2016-07-14 09:03:53 UTC) #2
dcheng
Is this just causing flaky failures on the waterfall, or were these real consistent failures ...
4 years, 5 months ago (2016-07-14 09:20:38 UTC) #3
haraken
On 2016/07/14 09:20:38, dcheng wrote: > Is this just causing flaky failures on the waterfall, ...
4 years, 5 months ago (2016-07-14 09:24:57 UTC) #4
dcheng
I guess service worker does some work that doesn't always run before the test is ...
4 years, 5 months ago (2016-07-14 09:39:47 UTC) #5
falken
lgtm
4 years, 5 months ago (2016-07-14 09:53:06 UTC) #6
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/2144213002/1
4 years, 5 months ago (2016-07-14 09:55:31 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/103948)
4 years, 5 months ago (2016-07-14 11:05:46 UTC) #10
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/2144213002/1
4 years, 5 months ago (2016-07-14 12:50:00 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-14 14:06:48 UTC) #13
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 14:06:50 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 14:08:40 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/1b0b710282e282c2ce595845af90f54bd460c95d
Cr-Commit-Position: refs/heads/master@{#405486}

Powered by Google App Engine
This is Rietveld 408576698