closed #3856: Crash when Firefox connects to JSB application.
Merge pull request #5227 from dumganhar/iss3856-remote-debug-crash-mac

closed #3856: Crash when Firefox connects to JSB application.