MessageChannel port.postMessage's data is null when calling postMessage with a transferable object?

前端 未结 1 907
日久生厌
日久生厌 2021-02-10 06:34

I\'m learning about MessageChannel and transferable objects.

I\'ve got an iframe which is cross-domain from my page. The documentation surrounding MessageChannel indicat

1条回答
  •  一整个雨季
    2021-02-10 07:31

    I've reduced your code sample and discovered that the ArrayBuffer is always lost when it is passed through a MessagePort of a MessageChannel.

    Reported as issue 334408: "ArrayBuffer is lost in MessageChannel during postMessage (receiver's event.data == null)" https://code.google.com/p/chromium/issues/detail?id=334408

    0 讨论(0)
提交回复
热议问题