fix out-of-fd on Mac

Sometimes app are loading large number of resources in a short period
of time. This will hit the limit of fd on Mac (256)
rebase to crm28
rebase fix
fix gtk crash on contextmenu

Fix #721
devtools jail feature