webistomin / vue-socials

:speech_balloon: Social media share buttons and counts for Vue.js
https://vue-socials.vercel.app/
MIT License
53 stars 8 forks source link

Fix "Permission denied to access property "__v_isRef" on cross-origin object" #597

Closed nWacky closed 9 months ago

nWacky commented 10 months ago

Issue reproduction

example page: https://vue-socials.vercel.app/?path=/docs/share-sdevto--default (commit a8cd6c7)

  1. click on a share button
  2. close the popup window
  3. click on a share button again

In Chrome console, there will be two errors:

Uncaught DOMException: Failed to read a named property '__v_isRef' from 'Window': Blocked a frame with origin "https://vue-socials.vercel.app" from accessing a cross-origin frame.

Uncaught DOMException: An attempt was made to break through the security policy of the user agent.

In Firefox a DOMException overlay will be shown. There will be an error in the console:

DOMException: Permission denied to access property "__v_isRef" on cross-origin object

The issue occurs because vue is trying to add reactivity properties to shareDialog. shareDialog is a cross origin window, and browsers throw an error when doing so

Changes

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vue-socials ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2024 4:06pm
thekamilRiaz commented 10 months ago

@webistomin would you please check because i am also getting this error ev

webistomin commented 10 months ago

Please excuse the delay. I'll release it tomorrow🙏

webistomin commented 9 months ago

Fixed in v2.0.5

beocaca commented 9 months ago

Hello @webistomin Thank you for your contribution. Could you fix this issue in vue-socials@1 . that would be fantastic!

webistomin commented 9 months ago

Hello @webistomin Thank you for your contribution. Could you fix this issue in vue-socials@1 . that would be fantastic!

I'll try to find time 😉