Skip to content

Commit

Permalink
Allow Electrons <webview> tag (#13301)
Browse files Browse the repository at this point in the history
Fixes #13299

Adds Electrons <webview> tag to the attribute whitelist.
  • Loading branch information
philipp-spiess authored and gaearon committed Aug 1, 2018
1 parent 0182a74 commit b381f41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react-dom/src/client/ReactDOMFiberComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ if (__DEV__) {
time: true,
// There are working polyfills for <dialog>. Let people use it.
dialog: true,
// Electron ships a custom <webview> tag to display external web content in
// an isolated frame and process.
// This tag is not present in non Electron environments such as JSDom which
// is often used for testing purposes.
// @see https://electronjs.org/docs/api/webview-tag
webview: true,
};

validatePropertiesInDevelopment = function(type, props) {
Expand Down

0 comments on commit b381f41

Please sign in to comment.