Closed emaxx-google closed 2 months ago
Continuous Integration: All tests passed. C/C++ test coverage: 73.35% lines.
Thanks! PTAL. I've also dropped the json.js
helper since it's not needed anymore with the Fetch API.
Continuous Integration: All tests passed. C/C++ test coverage: 73.29% lines.
Switch the JSON fetching code from goog.net.XhrIo, which essentially is XMLHttpRequest, to the Fetch API.
Not only is the Fetch API more concise and promise-friendly. The main reason is that XMLHttpRequest is unsupported in Service Worker contexts, hence this was one of the blockers for the manifestv3 migration.