W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > May 2022

Re: [mediacapture-region] Should we support strings in addition or in lieu of opaque identifiers? (#46)

From: youennf via GitHub <sysbot+gh@w3.org>
Date: Mon, 16 May 2022 07:54:25 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1127347681-1652687664-sysbot+gh@w3.org>
Some general thoughts against user agent generated strings.
Lifetime of a CropTarget is well defined. Lifetime of a string value is potentially endless.
If there is some clean-up being made when a CropTarget is GCed, this cannot be easily done when a string gets GCed since the value can be recreated at any point in the future.
For instance, browsers might have a look-up table to identify the process where the element lives from the string value.

To avoid this, using web page provided IDs or using CropTarget serialisation seem more promising approaches.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 16 May 2022 07:54:27 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:57 UTC