Merge remote-tracking branch 'rodrigo/auto-permission'

This commit is contained in:
Piotr Zalewa 2014-06-04 15:28:45 +02:00
commit 75cadab5ee
2 changed files with 3 additions and 11 deletions

View File

@ -30,17 +30,6 @@ and can't access Cordova APIs.
cordova plugin add org.apache.cordova.inappbrowser cordova plugin add org.apache.cordova.inappbrowser
### Firefox OS
Create __www/manifest.webapp__ as described in
[Manifest Docs](https://developer.mozilla.org/en-US/Apps/Developing/Manifest).
Add relevant permisions.
"permissions": {
"browser": {}
}
## window.open ## window.open
Opens a URL in a new `InAppBrowser` instance, the current browser Opens a URL in a new `InAppBrowser` instance, the current browser

View File

@ -165,6 +165,9 @@
<!-- firefoxos --> <!-- firefoxos -->
<platform name="firefoxos"> <platform name="firefoxos">
<config-file target="config.xml" parent="/*">
<permission name="browser" description="Enables the app to implement a browser in an iframe." />
</config-file>
<js-module src="www/inappbrowser.js" name="inappbrowser"> <js-module src="www/inappbrowser.js" name="inappbrowser">
<clobbers target="window.open" /> <clobbers target="window.open" />
</js-module> </js-module>