libs/web: add missing parts of previous commit