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

console: catching errors/console messages isn't working in safari #1194

Closed
2 of 6 tasks
juliamariee opened this issue Oct 12, 2019 · 4 comments
Closed
2 of 6 tasks

console: catching errors/console messages isn't working in safari #1194

juliamariee opened this issue Oct 12, 2019 · 4 comments

Comments

@juliamariee
Copy link

juliamariee commented Oct 12, 2019

Nature of issue?

  • Found a bug
  • Existing feature enhancement
  • New feature request

Which platform were you using when you encountered this?

  • Mobile/Tablet (touch devices)
  • Desktop/Laptop
  • Others (specify if possible)

Details about the bug:

When using p5.js with safari, I either don't get error messages or get "script error. (:line 0)".
I went through similar issues and tried their solutions, but nothing has worked. The console isn't completely unresponsive ( if I use console.log() and console.error() messages still show up), but actual error messages aren't working. This issue only happens in safari, I tried it in Firefox and error messages do show up properly there. This started happening when I got a new computer, on my old computer everything worked fine. Here are some pictures of the issue on a blank sketch, but it is happening on all my projects.

in Safari:
Screen Shot 2019-10-12 at 12 25 00 PM

Screen Shot 2019-10-12 at 12 23 17 PM

Screen Shot 2019-10-12 at 12 24 37 PM

in Firefox:
Screen Shot 2019-10-12 at 12 26 29 PM

Screen Shot 2019-10-12 at 12 27 45 PM

@welcome
Copy link

welcome bot commented Oct 12, 2019

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

@lmccart lmccart transferred this issue from processing/p5.js Oct 12, 2019
@processing processing deleted a comment from welcome bot Oct 12, 2019
@juliamariee juliamariee changed the title "script error. (:line 0)" in chrome "script error. (:line 0)" in safari Oct 12, 2019
@catarak
Copy link
Member

catarak commented Oct 17, 2019

thanks for reporting! i am able to reproduce. it seems lie on Safari, the hook that's in there to catch errors/console messages isn't working!

@catarak catarak changed the title "script error. (:line 0)" in safari console: catching errors/console messages isn't working in safari Oct 17, 2019
@catarak
Copy link
Member

catarak commented Feb 10, 2021

I think the issue here is the iframe having no origin and therefore the script errors being cross origin (see What is "Script error").

Thinking that this may be fixed by #166 as I am working on this currently.

@kjhollen
Copy link
Member

Tried this out in Safari 14.1.2 today and it appears to be fixed. Closing!

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

No branches or pull requests

3 participants