W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > February 2023

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

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Mon, 13 Feb 2023 10:00:36 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1427653316-1676282435-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:20:00 UTC