Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-57683

Failed to execute ‘postMessage’ on ‘DOMWindow’ (harmless error) on messaging

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2.1, 3.3
    • Fix Version/s: None
    • Component/s: Media
    • Labels:

      Description

      Discovered while testing MDL-57608.

      Loading messages including youtube vids (displayed by the videojs plugin) shows this in console:

      Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided
      (‘https://www.youtube.com’) does not match the recipient window’s origin (‘http://localhost’).
      

      It seems that, no matter of the error, the vid does look and play ok, but if possible, we should get rid of it.

      There is some literature in the net about it being some http/https mismatch (iframe) and also, missing call to some "destroy" stuff in the API. Worth searching and looking if it's fixable.

      Finally, please verify both the videojs' youtube plugin and the youtube (standalone) player.

      Ciao

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stronk7 Eloy Lafuente (stronk7)
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: