PythonBlocks (MR 516) runs Pyodide in a web worker of a hidden WKWebView with no Content-Security-Policy or content rule list, so a python block in the App Store builds may be able to make network requests (pyodide.http, js.fetch, synchronous XHR in the worker).
Before the next release that ships Pyodide:
- Test what a block can reach:
fetch/XHR from the worker,urllibthrough Pyodide, and loading packages from a CDN bymicropiporloadPackage. - Compare with the download build's
python3, which has network access, and with JavaScript blocks, whose shim refusesfetch. - Decide whether to block it (CSP on the page and worker, a WKContentRuleList) or document it.
Owner asked to keep this as a watch item to research and test before releasing.
Ref #90