crosswalk-project / cordova-plugin-crosswalk-webview

Crosswalk WebView Cordova Plugin (UNMAINTAINED)
https://crosswalk-project.org/blog/crosswalk-final-release.html
Apache License 2.0
945 stars 350 forks source link

prevent breaking iframe container #181

Open Marcophono2 opened 7 years ago

Marcophono2 commented 7 years ago

Hello! My app displays html content which is located within an iframe. The target address is a standard http(s) remote address. On the html websites there are some advertisement codes placed like Google Adsense. If a user clicks onto such advertisement the Android browser breaks out of the Cordova container. But I want to keep the target advertiser website within the Cordova container. I did not find any setting I can use to change the Cordova/Crosswalk behaviour. Or did I miss it?

Best Marc

RTK commented 7 years ago

This is handled via the config.xml, see cordova whitelist plugin. Look for - These entries define which url schemes are allowed to navigate to within the app's webview

Marcophono2 commented 7 years ago

Thanks. But that cannot be the reason. <access origin="*" /> <allow-intent href="*" /> Best Marc

RTK commented 7 years ago

access defines which resources (img, xhr) can be accessed. allow-intent defines which intents, e.g. facebook (http://facebook*) are allowed to be opened externally. allow-navigation controls which urls the webview can access.

s. https://stackoverflow.com/questions/35336522/difference-between-allow-navigation-and-allow-intent