diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-13 16:59:52 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-13 16:59:52 +0000 |
commit | 475478894062d23834cd660f4bba6eaf385e958d (patch) | |
tree | 4f54862d694060219110391e6c51d5c3de80ca93 /ppapi/proxy | |
parent | 8b8fab971151ba246c0930fa25c68b705f6a6c0b (diff) | |
download | chromium_src-475478894062d23834cd660f4bba6eaf385e958d.zip chromium_src-475478894062d23834cd660f4bba6eaf385e958d.tar.gz chromium_src-475478894062d23834cd660f4bba6eaf385e958d.tar.bz2 |
Attempt at fixing crash in ProcessPendingTabs. With the current code,
during closing a window with unload handlers if a tab is disconnected then
we delay cleanup by way of PostTask with the tab being
disconnected. During the time between when the disconnect happens and
the task is run the unloader handler sets still maintain a reference
to the tab. If ProcessPendingTabs is invoked during this window and
the tab is deleted, then we can crash.
I'm fixing it by making disconnect remove from the sets immediately,
but delay the call to ProcessPendingTabs. I'm also doing a similar
thing in TabDetachedAt.
BUG=15620
TEST=none
Review URL: http://codereview.chromium.org/6203006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy')
0 files changed, 0 insertions, 0 deletions