Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit 2eaf42f

Browse files
horo-tCommit bot
authored and
Commit bot
committed
Initialize app_cache_host_ of EmbeddedSharedWorkerStub.
Currently it is not initialized. So when --disable-application-cache flag is set, a crash occurs while starting a SharedWorker. BUG=401259 Review URL: https://codereview.chromium.org/657603007 Cr-Commit-Position: refs/heads/master@{#299671}
1 parent bb7946e commit 2eaf42f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/renderer/shared_worker/embedded_shared_worker_stub.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ EmbeddedSharedWorkerStub::EmbeddedSharedWorkerStub(
6161
blink::WebContentSecurityPolicyType security_policy_type,
6262
bool pause_on_start,
6363
int route_id)
64-
: route_id_(route_id), name_(name), runing_(false), url_(url) {
64+
: route_id_(route_id),
65+
name_(name),
66+
runing_(false),
67+
url_(url),
68+
app_cache_host_(nullptr) {
6569
RenderThreadImpl::current()->AddEmbeddedWorkerRoute(route_id_, this);
6670
impl_ = blink::WebSharedWorker::create(this);
6771
if (pause_on_start) {

0 commit comments

Comments
 (0)