On chrome, the exploit doesn't work because of multiple exceptions that break completely the socket connection. Those errors were not raised on firefox.
Edit: fix
try:
(content_type, version, length) = struct.unpack('>BHH', ssl_header)
except struct.error as err:
return