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

Issue 171943002: Don't terminate SharedWorker while loading the script. (Closed)

Created:
6 years, 10 months ago by horo
Modified:
6 years, 10 months ago
Reviewers:
kinuko
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Don't terminate SharedWorker while loading the script. This path will fix the heap-use-after-free bug. BUG=343661, 344750 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252010

Patch Set 1 #

Total comments: 2

Patch Set 2 : move the position of "impl_->terminateWorkerContext();". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M content/worker/websharedworker_stub.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
horo
kinuko@ Please review this CL
6 years, 10 months ago (2014-02-19 03:47:33 UTC) #1
kinuko
lgtm
6 years, 10 months ago (2014-02-19 04:09:35 UTC) #2
horo
The CQ bit was checked by horo@chromium.org
6 years, 10 months ago (2014-02-19 04:11:30 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/171943002/1
6 years, 10 months ago (2014-02-19 04:11:53 UTC) #4
kinuko
https://codereview.chromium.org/171943002/diff/1/content/worker/websharedworker_stub.cc File content/worker/websharedworker_stub.cc (right): https://codereview.chromium.org/171943002/diff/1/content/worker/websharedworker_stub.cc#newcode107 content/worker/websharedworker_stub.cc:107: impl_->terminateWorkerContext(); It feels like we should always nullify the ...
6 years, 10 months ago (2014-02-19 04:24:08 UTC) #5
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 10 months ago (2014-02-19 04:27:36 UTC) #6
horo
https://codereview.chromium.org/171943002/diff/1/content/worker/websharedworker_stub.cc File content/worker/websharedworker_stub.cc (right): https://codereview.chromium.org/171943002/diff/1/content/worker/websharedworker_stub.cc#newcode107 content/worker/websharedworker_stub.cc:107: impl_->terminateWorkerContext(); On 2014/02/19 04:24:08, kinuko wrote: > It feels ...
6 years, 10 months ago (2014-02-19 05:29:09 UTC) #7
kinuko
On 2014/02/19 05:29:09, horo wrote: > https://codereview.chromium.org/171943002/diff/1/content/worker/websharedworker_stub.cc > File content/worker/websharedworker_stub.cc (right): > > https://codereview.chromium.org/171943002/diff/1/content/worker/websharedworker_stub.cc#newcode107 > ...
6 years, 10 months ago (2014-02-19 05:34:14 UTC) #8
horo
The CQ bit was checked by horo@chromium.org
6 years, 10 months ago (2014-02-19 05:37:57 UTC) #9
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 10 months ago (2014-02-19 05:38:01 UTC) #10
horo
The CQ bit was checked by horo@chromium.org
6 years, 10 months ago (2014-02-19 05:38:06 UTC) #11
horo
The CQ bit was unchecked by horo@chromium.org
6 years, 10 months ago (2014-02-19 05:38:10 UTC) #12
horo
The CQ bit was checked by horo@chromium.org
6 years, 10 months ago (2014-02-19 06:37:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/171943002/150002
6 years, 10 months ago (2014-02-19 06:37:36 UTC) #14
commit-bot: I haz the power
Change committed as 252010
6 years, 10 months ago (2014-02-19 08:41:03 UTC) #15
horo
6 years, 10 months ago (2014-02-19 16:44:39 UTC) #16
Message was sent while issue was closed.
I forgot to change the title.

This patch only changes the order of calling terminateWorkerContext() to avoid
use-after-free crash.

Powered by Google App Engine
This is Rietveld 408576698