Allow Electrons <webview> tag (#13301)
Fixes #13299 Adds Electrons <webview> tag to the attribute whitelist.
Philipp Spieß committed
Aug 1, 2018 at 18:07 UTC
b381f4141147931f9af8a79555d155b0e496e672
1 file changed
+6
packages/react-dom/src/client/ReactDOMFiberComponent.js
+6
@@ -80,6 +80,12 @@ if (__DEV__) {
80
time: true,
81
// There are working polyfills for <dialog>. Let people use it.
82
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,
89
};
90
91
validatePropertiesInDevelopment = function(type, props) {