@@ -61,10 +61,15 @@ Algorithm][SCA], just like [`window.postMessage`][], so prototype chains will no
61
61
included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will
62
62
throw an exception.
63
63
64
- > ** NOTE** : Sending non-standard JavaScript types such as DOM objects or
64
+ > ** NOTE: ** Sending non-standard JavaScript types such as DOM objects or
65
65
> special Electron objects is deprecated, and will begin throwing an exception
66
66
> starting with Electron 9.
67
67
68
+ > ** NOTE:** Since the main process does not have support for DOM objects such as
69
+ > ` ImageBitmap ` , ` File ` , ` DOMMatrix ` and so on, such objects cannot be sent over
70
+ > Electron's IPC to the main process, as the main process would have no way to decode
71
+ > them. Attempting to send such objects over IPC will result in an error.
72
+
68
73
The main process handles it by listening for ` channel ` with the
69
74
[ ` ipcMain ` ] ( ipc-main.md ) module.
70
75
@@ -89,6 +94,11 @@ throw an exception.
89
94
> special Electron objects is deprecated, and will begin throwing an exception
90
95
> starting with Electron 9.
91
96
97
+ > ** NOTE:** Since the main process does not have support for DOM objects such as
98
+ > ` ImageBitmap ` , ` File ` , ` DOMMatrix ` and so on, such objects cannot be sent over
99
+ > Electron's IPC to the main process, as the main process would have no way to decode
100
+ > them. Attempting to send such objects over IPC will result in an error.
101
+
92
102
The main process should listen for ` channel ` with
93
103
[ ` ipcMain.handle() ` ] ( ipc-main.md#ipcmainhandlechannel-listener ) .
94
104
@@ -128,6 +138,11 @@ throw an exception.
128
138
> special Electron objects is deprecated, and will begin throwing an exception
129
139
> starting with Electron 9.
130
140
141
+ > ** NOTE:** Since the main process does not have support for DOM objects such as
142
+ > ` ImageBitmap ` , ` File ` , ` DOMMatrix ` and so on, such objects cannot be sent over
143
+ > Electron's IPC to the main process, as the main process would have no way to decode
144
+ > them. Attempting to send such objects over IPC will result in an error.
145
+
131
146
The main process handles it by listening for ` channel ` with [ ` ipcMain ` ] ( ipc-main.md ) module,
132
147
and replies by setting ` event.returnValue ` .
133
148
0 commit comments