Commit Graph

15 Commits

Author SHA1 Message Date
yflory
3188a457f0 Replace common files with their umd version 2024-11-29 15:51:22 +01:00
David Benque
8f0a6319a5 Apply headers 2023-10-20 15:35:26 +01:00
David Baker
bf69a576bb
Make unparseable message non-fatal
There was code to handle unparseable messages from things like third party browser extensions but it caught a JSON parsing error, logged an error and then continued, which would throw an unhandled exception trying to read the `ack` property of `data` which had been left as `undefined`.

Add a `return` to abort execution of the handler function and ignore the message instead. Also changes the error to warning, since it's not a fatal error. Add a comment to clarify the behaviour.

From the existing comment, it looks like this was the original intention of the code, but the `return` was simply missed.
2022-10-07 15:57:18 +01:00
ansuz
e74c8fd4f8 guard against parse errors on incoming worker-channel messages 2022-08-23 16:45:09 +05:30
ansuz
c0b379b535 apply strict controls for postMessage and tighten up blob CSP 2022-02-11 19:22:03 +05:30
yflory
5ca7247304 More cache eviction tools 2021-01-18 18:05:01 +01:00
yflory
682e722d72 sframeChan Uint8Array without conversion 2020-11-30 18:02:17 +01:00
yflory
27c1291182 Fix duplicate text bug on reconnect or ACK timeout 2020-03-16 11:19:04 +01:00
yflory
656b129543 Ability to remove handlers from worker-channel and metadata-manager 2019-08-19 15:37:08 +02:00
yflory
41a1148c17 Use the same code for the different frontend channels 2019-01-11 15:30:26 +01:00
yflory
d816a2ed9f Prevent timeout when restoring drive 2018-07-19 17:51:38 +02:00
yflory
d1e8baca68 Lint compliance 2018-06-12 18:26:21 +02:00
yflory
1b49020753 Add support for async store when WebWorker is not available 2018-06-12 18:20:48 +02:00
yflory
6ab29f8f3a Test service worker and shared worker store 2018-06-06 15:58:43 +02:00
yflory
9c5ad795e1 Service worker test 2018-06-01 19:23:30 +02:00