Flush operation for Chrome support.

Pull request for #175.
I think it could be nice to place this hack into a generic function ?