[misc] serviceWorker: add error reporting using postMessage API GitOrigin-RevId: db021d4f5cd5b7b8a0026b92d412112f60499c0b