Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(2)

Issue 1187813010: Check whether the shadow page has been loaded in WebEmbeddedWorkerImpl::terminateWorkerContext(). (Closed)

Created:
4 years, 10 months ago by horo
Modified:
4 years, 10 months ago
Reviewers:
kinuko, falken, tkent
CC:
blink-reviews, serviceworker-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Check whether the shadow page has been loaded in WebEmbeddedWorkerImpl::terminateWorkerContext(). WebEmbeddedWorkerImpl::terminateWorkerContext() could be called between loadShadowPage() and didFinishDocumentLoad(). But the current code doesn't handle this situation correctly. BUG=499646, 497029 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197243

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : add ASSERT() #

Total comments: 2

Patch Set 4 : delete "may" #

Patch Set 5 : add tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -3 lines) Patch
M Source/web/WebEmbeddedWorkerImpl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 3 5 chunks +13 lines, -3 lines 0 comments Download
A Source/web/WebEmbeddedWorkerImplTest.cpp View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download
M Source/web/web.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
horo
kinuko@ Could you please review this? I said > I think we can fix this ...
4 years, 10 months ago (2015-06-16 06:06:23 UTC) #2
falken
https://codereview.chromium.org/1187813010/diff/20001/Source/web/WebEmbeddedWorkerImpl.cpp File Source/web/WebEmbeddedWorkerImpl.cpp (right): https://codereview.chromium.org/1187813010/diff/20001/Source/web/WebEmbeddedWorkerImpl.cpp#newcode157 Source/web/WebEmbeddedWorkerImpl.cpp:157: m_askedToTerminate = true; Maybe we also need a workerContextFailedtoStart ...
4 years, 10 months ago (2015-06-16 06:48:15 UTC) #4
horo
https://codereview.chromium.org/1187813010/diff/20001/Source/web/WebEmbeddedWorkerImpl.cpp File Source/web/WebEmbeddedWorkerImpl.cpp (right): https://codereview.chromium.org/1187813010/diff/20001/Source/web/WebEmbeddedWorkerImpl.cpp#newcode157 Source/web/WebEmbeddedWorkerImpl.cpp:157: m_askedToTerminate = true; On 2015/06/16 06:48:15, falken wrote: > ...
4 years, 10 months ago (2015-06-16 07:21:52 UTC) #5
falken
I see, I didn't realize workerContextFailedToStart() deletes the worker. I think this lgtm. https://codereview.chromium.org/1187813010/diff/40001/Source/web/WebEmbeddedWorkerImpl.cpp File ...
4 years, 10 months ago (2015-06-16 12:03:43 UTC) #6
kinuko
lgtm Would be nice to update the comment as falken suggests.
4 years, 10 months ago (2015-06-16 14:35:29 UTC) #7
horo
https://codereview.chromium.org/1187813010/diff/40001/Source/web/WebEmbeddedWorkerImpl.cpp File Source/web/WebEmbeddedWorkerImpl.cpp (right): https://codereview.chromium.org/1187813010/diff/40001/Source/web/WebEmbeddedWorkerImpl.cpp#newcode201 Source/web/WebEmbeddedWorkerImpl.cpp:201: // This may delete 'this'. On 2015/06/16 12:03:43, falken ...
4 years, 10 months ago (2015-06-16 23:20:59 UTC) #8
horo
tkent@ Could you please review this?
4 years, 10 months ago (2015-06-16 23:21:21 UTC) #10
tkent
On 2015/06/16 23:21:21, horo wrote: > But the current code doesn't > handle this situation ...
4 years, 10 months ago (2015-06-16 23:27:24 UTC) #11
horo
On 2015/06/16 23:27:24, tkent wrote: > On 2015/06/16 23:21:21, horo wrote: > > But the ...
4 years, 10 months ago (2015-06-16 23:40:42 UTC) #12
horo
On 2015/06/16 23:40:42, horo wrote: > On 2015/06/16 23:27:24, tkent wrote: > > On 2015/06/16 ...
4 years, 10 months ago (2015-06-17 06:14:40 UTC) #13
tkent
lgtm
4 years, 10 months ago (2015-06-17 06:20:38 UTC) #14
horo
On 2015/06/17 06:20:38, tkent wrote: > lgtm Thank you.
4 years, 10 months ago (2015-06-17 06:21:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1187813010/80001
4 years, 10 months ago (2015-06-17 06:21:45 UTC) #18
commit-bot: I haz the power
4 years, 10 months ago (2015-06-17 07:35:02 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197243

Powered by Google App Engine
This is Rietveld 408576698