mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 02:31:41 +00:00
Bug 1054929: Don't hand out stale fds from the TabChild cache. r=bent
This commit is contained in:
parent
237bb2bda2
commit
4757f3397e
@ -1532,6 +1532,8 @@ TabChild::DestroyWindow()
|
||||
runnable->Dispatch();
|
||||
}
|
||||
}
|
||||
|
||||
mCachedFileDescriptorInfos.Clear();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -149,7 +149,12 @@ private:
|
||||
FileDescriptor::PlatformHandleType handle =
|
||||
FileDescriptor::PlatformHandleType(PR_FileDesc2NativeHandle(mFD));
|
||||
|
||||
mozilla::unused << tabParent->SendCacheFileDescriptor(mPath, FileDescriptor(handle));
|
||||
// Our TabParent may have been destroyed already. If so, don't send any
|
||||
// fds over, just go back to the IO thread and close them.
|
||||
if (!tabParent->IsDestroyed()) {
|
||||
mozilla::unused << tabParent->SendCacheFileDescriptor(mPath,
|
||||
FileDescriptor(handle));
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIEventTarget> eventTarget;
|
||||
mEventTarget.swap(eventTarget);
|
||||
|
Loading…
x
Reference in New Issue
Block a user