react-native-webview/example
Lorenzo Sciandra 194c6a2335
feat(android): Introduce setSupportMultipleWindows to mitigate CVE-2020-6506 (#1747 by @mrcoinbase and @kelset -- THANK YOU!)
BREAKING CHANGE:

This release introduces the `setSupportMultipleWindows` prop for Android. This sets the underlying Android WebView setting `setSupportMultipleWindows`. This prop defaults to `true` (previously `false`), and serves to mitigate the security advisory [CVE-2020-6506](https://github.com/react-native-webview/react-native-webview/security/advisories/GHSA-36j3-xxf7-4pqg).

The primary way this new behavior changes existing React Native WebView implementations on Android is that links that open in new tabs/windows (such as `<a target="_blank">`) will now prompt to open in the system browser, rather than re-using the current WebView.

If this behavior is not desirable, you can set this new prop to `false`, but be aware that this exposes your app to the security vulnerability listed above. Make sure you have read and understand the whole advisory and relevant links.

iOS & Windows are unaffected.

```jsx
<WebView
  // ...
  setSupportMultipleWindows={true} // default: true
/>
```

Thanks to @mrcoinbase, @kelset, and @Titozzz for their work on this.
2020-11-24 09:15:19 -08:00
..
android chore(windows): Add a .gitattributes to fix line endings across myriad files. (#1431 by @trcoffman) 2020-06-16 11:53:22 -07:00
assets fix(windows): Fix windows local asset path (#1335 by @kaiguo) 2020-05-15 15:34:55 -07:00
examples feat(android): Introduce setSupportMultipleWindows to mitigate CVE-2020-6506 (#1747 by @mrcoinbase and @kelset -- THANK YOU!) 2020-11-24 09:15:19 -08:00
ios feat(compatibility): Support React Native 0.62 (#1364 by @jussikinnula and @kaiguo) 2020-05-26 20:55:02 -07:00
macos chore(windows): Add a .gitattributes to fix line endings across myriad files. (#1431 by @trcoffman) 2020-06-16 11:53:22 -07:00
windows feat(windows): JS-WebView messaging bridge & multiple WebViews fixes (#1617) 2020-10-26 14:01:40 +01:00
.gitattributes chore(example): Added example app 2020-01-16 14:49:10 -08:00
.gitignore feat(macOS): macOS Support (#1164) 2020-02-12 15:39:11 -08:00
.prettierrc.js chore(example): Added example app 2020-01-16 14:49:10 -08:00
.watchmanconfig chore(example): Added example app 2020-01-16 14:49:10 -08:00
App.tsx feat(android): Introduce setSupportMultipleWindows to mitigate CVE-2020-6506 (#1747 by @mrcoinbase and @kelset -- THANK YOU!) 2020-11-24 09:15:19 -08:00
app.json chore(example): Added example app 2020-01-16 14:49:10 -08:00
babel.config.js chore(example): Added example app 2020-01-16 14:49:10 -08:00
index.js chore(example): Added example app 2020-01-16 14:49:10 -08:00
metro.config.js chore(example): Added example app 2020-01-16 14:49:10 -08:00
tsconfig.json chore(example): Added example app 2020-01-16 14:49:10 -08:00