11cb0ef41Sopenharmony_ciself.addEventListener('message', e => { 21cb0ef41Sopenharmony_ci URL.revokeObjectURL(e.data.url); 31cb0ef41Sopenharmony_ci // Registering a new object URL will make absolutely sure that the revocation 41cb0ef41Sopenharmony_ci // has propagated. Without this at least in chrome it is possible for the 51cb0ef41Sopenharmony_ci // below postMessage to arrive at its destination before the revocation has 61cb0ef41Sopenharmony_ci // been fully processed. 71cb0ef41Sopenharmony_ci URL.createObjectURL(new Blob([])); 81cb0ef41Sopenharmony_ci self.postMessage('revoked'); 91cb0ef41Sopenharmony_ci}); 10