Proposal: add chrome.dom.createDomImageBitmap: better+secure access to dom images

2 views
Skip to first unread message

Gregory Huczynski

unread,
Jul 5, 2022, 5:13:27 AM7/5/22
to rdevlin...@chromium.org, Simeon Vincent, extension-...@chromium.org
Hi Devlin, Simeon and extension-api-reviews@chromium,

I’m Greg - a non-Google/non-Chromium software engineer who is bootstrapping a browser extension to launch.

I’m submitting a proposal for a single-function addition to the chrome.dom API that should benefit the MV3 transition for users, developers and browser manufacturers.

Simeon pointed me at the New Extension and Platform App APIs doc, so I’m roughly following the guidelines in submitting a Chromium issue, and alerting the relevant parties by email. I’ve also put the 30 second summary below.


30 Second summary

What: Add a new createDomImageBitmap function to the chrome.dom extensions API - a tweaked version of the standard createImageBitmap function that can access any loaded dom image without SecurityErrors.

Why: Let chrome extensions offer popular image extraction and manipulation features post MV3 transition, without needing broad and insecure host_permissions of "http://*/*" and "https://*/*". So maintain/enable user-valued features with a reduced browser attack surface.




Many thanks for your consideration.

Greg
Reply all
Reply to author
Forward
0 new messages