Commit Graph

31 Commits

Author SHA1 Message Date
Niklas Merz
51959ec268
chore(lint): update eslint config and apply fixes (#1032) 2023-11-06 22:14:27 +01:00
jcesarmobile
4b3c0f126d
fix!: remove deprecated platforms windows & osx (#1030) 2023-11-04 19:51:11 +01:00
jcesarmobile
178f2d3e59
chore: use https urls in tests and README (#1016) 2023-09-07 23:36:52 +02:00
Tim Brust
7c2810e885
refactor(eslint): use cordova-eslint /w fix (#747) 2020-07-02 15:41:21 +00:00
jcesarmobile
6c55e6172c
breaking(ios): remove UIWebView (#635) 2020-03-05 15:51:31 +01:00
KNaito
5f1afbdf05 Fix test spec.5 to close inappbrowser after loadstop event 2019-03-06 11:47:21 +09:00
Dave Alden
c54d10052a (iOS & Android) Add postMessage API support (#362)
<!--
Please make sure the checklist boxes are all checked before submitting the PR. The checklist
is intended as a quick reference, for complete details please see our Contributor Guidelines:

http://cordova.apache.org/contribute/contribute_guidelines.html

Thanks!
-->

### Platforms affected
Android
iOS (both UIWebView & WKWebView implementations)

### What does this PR do?
Adds support for [postMessage API](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage) enabling pages loaded into the InappBrowser to post messages back to the parent Webview of the Cordova app.

For example, sending event messages associated with UI interactions such as button clicks from the wrapped page back to the parent app Webview.

### What testing has been done on this change?
Automated tests have been extended to cover the `message` event.

### Checklist
- [x ] Commit message follows the format: "GH-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
- [ x] Added automated test coverage as appropriate for this change.
2018-12-13 17:21:45 +01:00
Dave Alden
61014dd877 Fix indentation of tests.js for eslint 2018-10-09 11:48:15 +01:00
Dave Alden
86cc778c4a Fix tests so they auto-start when run via cordova-paramedic 2018-10-05 21:23:56 +01:00
Dave Alden
dc7fa34bbe CB-7179 (iOS): Add support to optionally use WKWebView for iOS 2018-09-30 10:05:46 +01:00
Audrey So
902427525f CB-12895 : added eslint and removed jshint 2017-08-29 15:13:21 -07:00
Alexander Sorokin
72ac4d7eca CB-13028 (CI) Browser builds on Travis and AppVeyor, Fixes tests on browser and browser implementation 2017-07-27 15:55:11 +03:00
daserge
d842693889 CB-12364 [Windows] Inappbrowser inject file manual tests are not working 2017-01-26 12:35:24 +03:00
Frank Stingl
20c21f39df removed duplicate hide method in ios source and add jasmine test cases 2016-10-19 11:36:20 +02:00
pwlin
32253b96a6 CB-11955 Added Initial OSX platform support
- Added src/osx plugin folder structure.
- Added OSX platform to plugin.xml and package.json files.
- Added _system target functionality for OSX.
- Modified README.md to include information about OSX support.
- Disabled 'open method' jasmine tests for OSX.

 This closes #190
2016-10-13 12:43:39 +09:00
Nikita Matrosov
2df0e72c36 CB-11694 Android: Set hadwareBackButton value according option in cordova.InAppBrowser.open
HadwareBackButton value persists across usages. By default hardwareBack value is null. In this case we should set hadwareBackButton  to default value.

 This closes #188
2016-09-28 11:04:12 +03:00
daserge
2776b14db6 CB-10467 Hardware back button, while InAppBrowser is opened, closes the app too in addition to closing InAppBrowser 2016-08-17 19:56:51 +03:00
daserge
ea1253963b CB-10636 Add JSHint for plugins 2016-02-19 15:42:34 +03:00
sgrebnov
4f3b4df7d1 CB-10538 cordova-plugin-inappbrowser timeout issue
There are some google scripts on Apache home page preventing page to fully loaded in time in some cases. Switched to Apache Community home page as test page and increased timeout just in case.

github close #149
2016-02-08 14:12:26 +03:00
Sean Kelly
b51a4dc54e CB-7786 Support mediaPlaybackRequiresUserAction on Android
This closes #132
2016-02-04 14:15:41 +03:00
sgrebnov
04c05a5e52 CB-10441 Add auto tests for InAppBrowser plugin
github close #142
2016-02-01 13:58:33 +03:00
Jason Chase
ad263a1b53 CB-8444 Don't clobber window.open
- Add new symbol/clobber to access open function (`cordova.InAppBrowser.open`)
- Change existing tests to use new symbol (i.e. don't rely on plugin clobber of `window.open`)
- Add tests to use `window.open` via manual replace with new symbol
- Update docs to deprecate plugin clobber of `window.open`
2015-02-12 16:34:32 -05:00
daserge
3f80b0b59c CB-7690 InAppBrowser loadstart/loadstop events issues
Subscribing to events before navigating
2014-11-12 22:35:10 -08:00
daserge
71b43d39a4 CB-7695 Fix InAppBrowser injectScriptFile for Windows 8.1 / Windows Phone 8.1
Changed injects' paths to include parent folder
Used getFileFromApplicationUriAsync
2014-11-12 22:35:09 -08:00
daserge
1bf42c9e3b CB-7688 Alert is not supported in InAppBrowser on Windows platform
Using cordova-plugin-dialogs to enable alerts.
2014-11-12 22:35:09 -08:00
Marcel Kinard
7a816d8454 CB-7876 change test target to avoid undesired redirects
The google.com test target would do automatic redirects to geography-specific
domains depending on where the client is, which leads to different behavior
depending where the tester is. This causes confusion, as the test results
may be different in different geographies. Use a test target that doesn't do
that, so the test results are independent of geography.
2014-10-27 12:23:10 -04:00
Vladimir Kotikov
f90e571430 CB-7490 Fixes InAppBrowser manual tests crash on windows platform 2014-09-09 14:49:18 +04:00
Marcel Kinard
5fc1beed0d CB-7133 clarify that anchor1 doesn't exist 2014-08-27 17:15:55 -04:00
Marcel Kinard
832ff5f2e9 CB-7133 more fixup of tests on Android
- fix the paths to the injected resources
- update the urls to Google home page to use https to avoid redirects
- get the user agent to display on the inject.html page
2014-08-27 17:07:07 -04:00
Marcel Kinard
4f957919c7 CB-7133 fix up the tests for Android
- move the resources from /resources to /cdvtests/iab-resources
- change the url of the resources from absolute to relative
- explicitly set the background color of local.html to be white because it was inheriting black
- add the js to display the user-agent on the tests menu
- change the www.google.com URL from http to https to avoid an unexpected redirect
2014-08-27 15:57:33 -04:00
Staci Cooper
683937872d CB-7133 port inappbrowser to plugin-test-framework
also added resources and fixed file paths, renamed test dir, added nested plugin.xml

github: close 55
2014-08-27 10:43:01 -04:00