Note that there are two Godot-specific changes made to libwebp for the javascript/HTML5 platform. They are documented in the README.md. (cherry picked from commit ee3cf211c6)
ee3cf211c6