|
|
|
|
147
|
protected boolean mAllowsFullscreenVideo = false;
|
147
|
protected boolean mAllowsFullscreenVideo = false;
|
148
|
protected @Nullable String mUserAgent = null;
|
148
|
protected @Nullable String mUserAgent = null;
|
149
|
protected @Nullable String mUserAgentWithApplicationName = null;
|
149
|
protected @Nullable String mUserAgentWithApplicationName = null;
|
|
|
150
|
+ protected @Nullable List<Pattern> mOriginWhitelist;
|
150
|
|
151
|
|
151
|
public RNCWebViewManager() {
|
152
|
public RNCWebViewManager() {
|
152
|
mWebViewConfig = new WebViewConfig() {
|
153
|
mWebViewConfig = new WebViewConfig() {
|
|
|
|
|
904
|
public void setUrlPrefixesForDefaultIntent(ReadableArray specialUrls) {
|
905
|
public void setUrlPrefixesForDefaultIntent(ReadableArray specialUrls) {
|
905
|
mUrlPrefixesForDefaultIntent = specialUrls;
|
906
|
mUrlPrefixesForDefaultIntent = specialUrls;
|
906
|
}
|
907
|
}
|
|
|
908
|
+ public void setOriginWhitelist(List<Pattern> originWhitelist) {
|
|
|
909
|
+ mOriginWhitelist = originWhitelist;
|
|
|
910
|
+ }
|
907
|
}
|
911
|
}
|
908
|
|
912
|
|
909
|
protected static class RNCWebChromeClient extends WebChromeClient implements LifecycleEventListener {
|
913
|
protected static class RNCWebChromeClient extends WebChromeClient implements LifecycleEventListener {
|