| commit | bb4da95f6202839ccf81445d1d0ff2cb9c07118b | [log] [tgz] |
|---|---|---|
| author | yhirano <yhirano@chromium.org> | Tue Jul 05 06:08:57 2016 |
| committer | Commit bot <commit-bot@chromium.org> | Tue Jul 05 06:10:57 2016 |
| tree | 3d7262b44ffc2c22f60bba4372611e1730f526bf | |
| parent | 52162de75f5577f49f11c00ecc706a2b3b52e3c8 [diff] |
Fix worker WebSocket crash caused by dereferencing weak pointer WorkerWebSocketChannel::Peer::m_bridge is bound to workerGlobalScopeDidError as |bridge|. Because it is a CrossThreadWeakPersistent, it's possible that |m_bridge| is not null when bound but |bridge| is null when called. This CL adds null pointer checks to avoid a crash. BUG=625649 Review-Url: https://codereview.chromium.org/2123703002 Cr-Commit-Position: refs/heads/master@{#403744}