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

chore: replace XMLHttpRequest with global fetch in ace third party #264

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

kineticjs
Copy link
Contributor

The Manifest V3 migration guide prescribes to "Replace calls from your background script to XMLHttpRequest() with calls to global fetch()"
Ref: https://developer.chrome.com/docs/extensions/develop/migrate/to-service-workers#replace-xmlhttprequest

The only place in the codebase that contains call to XMLHttpRequest is the third party ace editor
Ref: https://github.com/ajaxorg/ace/blob/master/src/lib/net.js#L12

Modified the ace sources to overwrite the function that calls XMLHttpRequest with a function that uses fetch to make the same request.

@kineticjs kineticjs merged commit f8b5edd into SAP:master Mar 26, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants