window.top.postMessage throws DataCloneError when transfer argument is from html elements

Confirmed Issue #12016952 • Assigned to Travis L.

Details

Author
Fish B.
Created
May 15, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

URL = http://google.com
OS version 1703
OS build 15063.76

REPRO STEPS:

  • open Edge, open google.com
  • open console panel by pressing F12
  • choose top document, execute script
    window.addEventListener("message", function(e){console.log(e.data);})
  • choose frame document, execute script
    window.top.postMessage(document.body, “*”)

Expected result: output <body></body>
Actual result: DataCloneError

Attachments

0 attachments

    Comments and activity

    • You can also reproduce the issue with URI http://jet.us.oracle.com/2.2.0/jetCookbook.html?component=pushButtons&demo=pushButton.
      Execute script in top document:
      window.addEventListener("message", function(e){console.log(e.data);});
      Execute script in iFrameDemo
      window.top.postMessage($(“:oj-button”), “*”);

      DataCloneError error is threw.

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Assigned To to “Travis L.”

      Changed Status to “Confirmed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in