kkinder / puepy

Python+Webassembly Frontend Framework via PyScript
https://puepy.dev
Apache License 2.0
193 stars 8 forks source link

Firefox - DOMException: The operation is insecure. #3

Closed niki-sp closed 2 months ago

niki-sp commented 3 months ago

when testing https://pyscript.com/@kkinder/puepy-tutorial/latest with Firefox / Ubuntu 24.04 i got:

DOMException: The operation is insecure.
    lookup_attr micropython.mjs:1
    invoke_iii micropython.mjs:1
    invoke_iiiii micropython.mjs:1
    invoke_ii micropython.mjs:1
    createExportWrapper micropython.mjs:1
    ccall micropython.mjs:1
    runPython micropython.mjs:1
    Lt _python.js:29
    ht/e[t]< utils.js:66
    xn/e[i]< hooks.js:65
    run utils.js:53
    onReady core.js:220
_io.js:40:21
kkinder commented 3 months ago

At the moment I'm not seeing that with current examples. Are you still?

niki-sp commented 3 months ago

Yes examples have same error, but buttons '-' and '+' on https://puepy.dev/ work

kkinder commented 3 months ago

@niki-sp Maybe I'm missing something. I have Firefox open to here: https://kkinder.pyscriptapps.com/puepy-tutorial/latest/tutorial/03_counter/index.html

The only output I see in the Firefox console is this:

[pyscript/main] PyScript Ready

I'm wondering if maybe there's an extension at play, or maybe I'm not recreating the issue correctly?

niki-sp commented 2 months ago

Your link https://kkinder.pyscriptapps.com/puepy-tutorial/latest/tutorial/03_counter/index.html works. The problem is on the other link https://pyscript.com/@kkinder/puepy-tutorial/latest When i click here (Example 3) image I get image If i open the link in new tab it works as expected.

niki-sp commented 2 months ago

IMO it's not very important now, as solution exists

kkinder commented 2 months ago

I see. This is likely an upstream issue related to PyScript.com; though I'd have to tinker to be sure. I'll open an issue with them if I can figure out some details.