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

Issue 248523003: Remove ActiveDOMObject::willStop, and introduce WorkerGlobalScope::TerminationObserver. (Closed)

Created:
6 years, 8 months ago by tkent
Modified:
6 years, 8 months ago
Reviewers:
haraken
CC:
blink-reviews, sof, eae+blinkwatch, falken, dglazkov+blink, adamk+blink_chromium.org, Inactive, horo+watch_chromium.org, kinuko+watch, ojan, rwlbuis
Visibility:
Public.

Description

Remove ActiveDOMObject::willStop, and introduce WorkerGlobalScope::TerminationObserver. ActiveDOMObject::willStop is called in the main thread, and it's very confusing because other functions are called in ActiveDOMObject's context thread. Only synchronous Web SQL Database needs willStop. This CL inroduces a dedicated interface to notify termination request to a Worker, and DatabaseContext implements it. BUG=352621 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172357

Patch Set 1 #

Total comments: 6

Patch Set 2 : Linux build fix, comment update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -26 lines) Patch
M Source/core/dom/ActiveDOMObject.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/dom/ActiveDOMObject.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/dom/ContextLifecycleNotifier.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/ContextLifecycleNotifier.cpp View 1 chunk +0 lines, -11 lines 0 comments Download
M Source/core/workers/WorkerGlobalScope.h View 1 2 chunks +12 lines, -1 line 0 comments Download
M Source/core/workers/WorkerGlobalScope.cpp View 1 2 chunks +18 lines, -2 lines 0 comments Download
M Source/core/workers/WorkerThread.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseContext.h View 4 chunks +6 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/DatabaseContext.cpp View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
tkent
Would you review this again please?
6 years, 8 months ago (2014-04-23 08:34:50 UTC) #1
haraken
LGTM. https://codereview.chromium.org/248523003/diff/1/Source/core/workers/WorkerGlobalScope.cpp File Source/core/workers/WorkerGlobalScope.cpp (right): https://codereview.chromium.org/248523003/diff/1/Source/core/workers/WorkerGlobalScope.cpp#newcode203 Source/core/workers/WorkerGlobalScope.cpp:203: { Shall we add ASSERT(isMainThread()) ?
6 years, 8 months ago (2014-04-23 08:53:54 UTC) #2
sof
https://codereview.chromium.org/248523003/diff/1/Source/modules/webdatabase/DatabaseContext.cpp File Source/modules/webdatabase/DatabaseContext.cpp (right): https://codereview.chromium.org/248523003/diff/1/Source/modules/webdatabase/DatabaseContext.cpp#newcode134 Source/modules/webdatabase/DatabaseContext.cpp:134: if (executionContext()->isWorkerGlobalScope()) Clarifying question: is this access of the ...
6 years, 8 months ago (2014-04-23 09:04:25 UTC) #3
tkent
https://codereview.chromium.org/248523003/diff/1/Source/core/workers/WorkerGlobalScope.cpp File Source/core/workers/WorkerGlobalScope.cpp (right): https://codereview.chromium.org/248523003/diff/1/Source/core/workers/WorkerGlobalScope.cpp#newcode203 Source/core/workers/WorkerGlobalScope.cpp:203: { On 2014/04/23 08:53:55, haraken wrote: > > Shall ...
6 years, 8 months ago (2014-04-23 09:13:35 UTC) #4
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 8 months ago (2014-04-23 09:13:47 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/248523003/1
6 years, 8 months ago (2014-04-23 09:14:20 UTC) #6
haraken
https://codereview.chromium.org/248523003/diff/1/Source/core/workers/WorkerGlobalScope.h File Source/core/workers/WorkerGlobalScope.h (right): https://codereview.chromium.org/248523003/diff/1/Source/core/workers/WorkerGlobalScope.h#newcode89 Source/core/workers/WorkerGlobalScope.h:89: // The function is called in the main thread. ...
6 years, 8 months ago (2014-04-23 09:17:36 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-23 09:19:19 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg tryserver.blink on linux_blink_rel
6 years, 8 months ago (2014-04-23 09:19:20 UTC) #9
tkent
https://codereview.chromium.org/248523003/diff/1/Source/core/workers/WorkerGlobalScope.h File Source/core/workers/WorkerGlobalScope.h (right): https://codereview.chromium.org/248523003/diff/1/Source/core/workers/WorkerGlobalScope.h#newcode89 Source/core/workers/WorkerGlobalScope.h:89: // The function is called in the main thread. ...
6 years, 8 months ago (2014-04-23 09:24:52 UTC) #10
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 8 months ago (2014-04-23 09:24:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/248523003/20001
6 years, 8 months ago (2014-04-23 09:25:08 UTC) #12
commit-bot: I haz the power
6 years, 8 months ago (2014-04-23 10:31:42 UTC) #13
Message was sent while issue was closed.
Change committed as 172357

Powered by Google App Engine
This is Rietveld 408576698