Skip to content

Commit b381f41

Browse files
philipp-spiessgaearon
authored andcommitted
Allow Electrons <webview> tag (#13301)
Fixes #13299 Adds Electrons <webview> tag to the attribute whitelist.
1 parent 0182a74 commit b381f41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/react-dom/src/client/ReactDOMFiberComponent.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ if (__DEV__) {
8080
time: true,
8181
// There are working polyfills for <dialog>. Let people use it.
8282
dialog: true,
83+
// Electron ships a custom <webview> tag to display external web content in
84+
// an isolated frame and process.
85+
// This tag is not present in non Electron environments such as JSDom which
86+
// is often used for testing purposes.
87+
// @see https://electronjs.org/docs/api/webview-tag
88+
webview: true,
8389
};
8490

8591
validatePropertiesInDevelopment = function(type, props) {

0 commit comments

Comments
 (0)