[webapi] Fix XWALK-1418 for not follow spec