Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the Minimum Common Web Platform API #418

Open
48 of 57 tasks
saghul opened this issue Nov 2, 2023 · 7 comments
Open
48 of 57 tasks

Support the Minimum Common Web Platform API #418

saghul opened this issue Nov 2, 2023 · 7 comments
Labels

Comments

@saghul
Copy link
Owner

saghul commented Nov 2, 2023

https://common-min-api.proposal.wintercg.org/


Interfaces:

Global methods / properties:

@saghul saghul pinned this issue Nov 2, 2023
@saghul saghul added the web-api label Nov 2, 2023
@bnoordhuis
Copy link
Contributor

To avoid duplication across embedders, atob, btoa, structuredClone1, queueMicrotask and performance could be implemented as quickjs-ng C APIs or JS globals. We'd also have to add DOMException but that seems okay to me. We can make them opt-in when the JSContext is created.

Thoughts?

1 TBD how to handle transferables

@saghul
Copy link
Owner Author

saghul commented Nov 5, 2023

Yep makes sense to me, let's do that!

@jimmywarting
Copy link
Contributor

import { Blob } from 'blob-polyfill';
Object.defineProperty(window, 'Blob', {
enumerable: true,
configurable: true,
writable: true,
value: Blob
});

For a better Blob and File polyfill I would recommend taking a look at fetch-blob

@saghul
Copy link
Owner Author

saghul commented Nov 12, 2023

Thanks!

@guest271314
Copy link
Contributor

navigator.userAgent. See wintercg/proposal-minimum-common-api#62.

@saghul
Copy link
Owner Author

saghul commented Dec 11, 2023

navigator.userAgent. See wintercg/proposal-common-minimum-api#62.

Done in #439

@guest271314
Copy link
Contributor

Ehe WinterCG folks banned me from over there at Minimum Common world already. No notice, no reason given. Weak. Anyway, carry on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants