Re: [mediacapture-region] [QUESTION] How to pass CropTarget to chrome extension service worker? (#75)

For the record, my understanding is that messages passed between browser extension contexts (content script and service workers) must be "JSON-ifiable" objects ([source](https://developer.chrome.com/docs/extensions/reference/runtime/#method-sendMessage)).

Even though CropTarget is [serializable](https://w3c.github.io/mediacapture-region/#crop-target), it's not enough to get it to work in browser extensions.

I think this is one more use case for https://github.com/w3c/mediacapture-region/issues/46 which proposes to use a unique identifier instead of an opaque wrapper.

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/mediacapture-region/issues/75#issuecomment-1427653316 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 13 February 2023 10:00:38 UTC