renanlecaro / mermaid-gdocs

Mermaidsjs wrapper for gdocs.
https://mermaid-gdocs.lecaro.me/
86 stars 14 forks source link

Not working in Chrome #37

Open rawdlite opened 7 months ago

rawdlite commented 7 months ago

Hi,

i like your plugin very much, as it helps collaboration on a chart. Unfortunately it does not work in in my Chrome Browser (Version 119.0.6045.199 on OSX) Works fine in Safari. On Chrome it does not render the graph. In the graph area the source code is shown. Let me know whether and what further information you need to track this down.

TIA tom

rawdlite commented 7 months ago

Uuups, read the limitations after writing the issue.

seems to bug with google chrome on mac

can attest it does not work with chrome on mac. Anything i can do to support you with this issue?

cheers tom

rawdlite commented 7 months ago

Got this in the console. HTH

  1. Trusted Type expected, but String received
    1. Your site tries to use a plain string in a DOM modification where a Trusted Type is expected. Requiring Trusted Types for DOM modifications helps to prevent cross-site scripting attacks.

      To solve this, provide a Trusted Type to all the DOM modifications listed below. You can convert a string into a Trusted Type by:

      • defining a policy and using its corresponding createHTML, createScript or createScriptURL function.
      • defining a policy named default which will be automatically called.
    2. AFFECTED RESOURCES
      1. 2 directives
        1. Source Location | Status -- | -- mermaid-d06ecb0d.js:5603 | blocked userCodeAppPanel:82 | blocked
renanlecaro commented 6 months ago

thanks for the detailed reporting. sadly i can't really work on this without a mac. i'll try to borrow one from a friend

ardigan6 commented 6 months ago

@renanlecaro also look forward to a fix!

you can use one of the free services like https://www.browserstack.com/open-source to easily test this. docs

renanlecaro commented 5 months ago

Google rejected my login attempts when using browserstack, so I couldn't really see the problem, if I remember well

renanlecaro commented 2 months ago

I juste tried it on chrome on an M2 mac and didn't have any issue. It might be because it's an ARM macbook, it might be the chrome version, or it might be that the bug is gone. Do you still experience the issue those days @ardigan6 ?