chore: use https urls in tests and README (#1016)

This commit is contained in:
jcesarmobile 2023-09-07 23:36:52 +02:00 committed by GitHub
parent 1e8599a32a
commit 178f2d3e59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 42 deletions

View File

@ -32,7 +32,7 @@ You can show helpful articles, videos, and web resources inside of your app. Use
This plugin provides a web browser view that displays when calling `cordova.InAppBrowser.open()`. This plugin provides a web browser view that displays when calling `cordova.InAppBrowser.open()`.
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes'); var ref = cordova.InAppBrowser.open('https://apache.org', '_blank', 'location=yes');
### `window.open` ### `window.open`
@ -166,7 +166,7 @@ instance, or the system browser.
### Example ### Example
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes'); var ref = cordova.InAppBrowser.open('https://apache.org', '_blank', 'location=yes');
var ref2 = cordova.InAppBrowser.open(encodeURI('http://ja.m.wikipedia.org/wiki/ハングル'), '_blank', 'location=yes'); var ref2 = cordova.InAppBrowser.open(encodeURI('http://ja.m.wikipedia.org/wiki/ハングル'), '_blank', 'location=yes');
### OSX Quirks ### OSX Quirks
@ -353,7 +353,7 @@ function messageCallBack(params){
### Quick Example ### Quick Example
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes'); var ref = cordova.InAppBrowser.open('https://apache.org', '_blank', 'location=yes');
ref.addEventListener('loadstart', function(event) { alert(event.url); }); ref.addEventListener('loadstart', function(event) { alert(event.url); });
## InAppBrowser.removeEventListener ## InAppBrowser.removeEventListener
@ -384,7 +384,7 @@ The function is passed an `InAppBrowserEvent` object.
### Quick Example ### Quick Example
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes'); var ref = cordova.InAppBrowser.open('https://apache.org', '_blank', 'location=yes');
var myCallback = function(event) { alert(event.url); } var myCallback = function(event) { alert(event.url); }
ref.addEventListener('loadstart', myCallback); ref.addEventListener('loadstart', myCallback);
ref.removeEventListener('loadstart', myCallback); ref.removeEventListener('loadstart', myCallback);
@ -406,7 +406,7 @@ The function is passed an `InAppBrowserEvent` object.
### Quick Example ### Quick Example
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes'); var ref = cordova.InAppBrowser.open('https://apache.org', '_blank', 'location=yes');
ref.close(); ref.close();
## InAppBrowser.show ## InAppBrowser.show
@ -426,7 +426,7 @@ The function is passed an `InAppBrowserEvent` object.
### Quick Example ### Quick Example
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'hidden=yes'); var ref = cordova.InAppBrowser.open('https://apache.org', '_blank', 'hidden=yes');
// some time later... // some time later...
ref.show(); ref.show();
@ -446,7 +446,7 @@ The function is passed an `InAppBrowserEvent` object.
### Quick Example ### Quick Example
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank'); var ref = cordova.InAppBrowser.open('https://apache.org', '_blank');
// some time later... // some time later...
ref.hide(); ref.hide();
@ -478,7 +478,7 @@ The function is passed an `InAppBrowserEvent` object.
### Quick Example ### Quick Example
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes'); var ref = cordova.InAppBrowser.open('https://apache.org', '_blank', 'location=yes');
ref.addEventListener('loadstop', function() { ref.addEventListener('loadstop', function() {
ref.executeScript({file: "myscript.js"}); ref.executeScript({file: "myscript.js"});
}); });
@ -513,7 +513,7 @@ Due to [MSDN docs](https://msdn.microsoft.com/en-us/library/windows.ui.xaml.cont
### Quick Example ### Quick Example
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes'); var ref = cordova.InAppBrowser.open('https://apache.org', '_blank', 'location=yes');
ref.addEventListener('loadstop', function() { ref.addEventListener('loadstop', function() {
ref.insertCSS({file: "mystyles.css"}); ref.insertCSS({file: "mystyles.css"});
}); });
@ -695,13 +695,13 @@ iab.open('local-url.html', 'random_string', 'location=no'); // loads in the InAp
``` ```
var iab = cordova.InAppBrowser; var iab = cordova.InAppBrowser;
iab.open('http://whitelisted-url.com'); // loads in the Cordova WebView iab.open('https://whitelisted-url.com'); // loads in the Cordova WebView
iab.open('http://whitelisted-url.com', '_self'); // loads in the Cordova WebView iab.open('https://whitelisted-url.com', '_self'); // loads in the Cordova WebView
iab.open('http://whitelisted-url.com', '_system'); // loads in the system browser iab.open('https://whitelisted-url.com', '_system'); // loads in the system browser
iab.open('http://whitelisted-url.com', '_blank'); // loads in the InAppBrowser iab.open('https://whitelisted-url.com', '_blank'); // loads in the InAppBrowser
iab.open('http://whitelisted-url.com', 'random_string'); // loads in the InAppBrowser iab.open('https://whitelisted-url.com', 'random_string'); // loads in the InAppBrowser
iab.open('http://whitelisted-url.com', 'random_string', 'location=no'); // loads in the InAppBrowser, no location bar iab.open('https://whitelisted-url.com', 'random_string', 'location=no'); // loads in the InAppBrowser, no location bar
``` ```
@ -710,11 +710,11 @@ iab.open('http://whitelisted-url.com', 'random_string', 'location=no'); // loads
``` ```
var iab = cordova.InAppBrowser; var iab = cordova.InAppBrowser;
iab.open('http://url-that-fails-whitelist.com'); // loads in the InAppBrowser iab.open('https://url-that-fails-whitelist.com'); // loads in the InAppBrowser
iab.open('http://url-that-fails-whitelist.com', '_self'); // loads in the InAppBrowser iab.open('https://url-that-fails-whitelist.com', '_self'); // loads in the InAppBrowser
iab.open('http://url-that-fails-whitelist.com', '_system'); // loads in the system browser iab.open('https://url-that-fails-whitelist.com', '_system'); // loads in the system browser
iab.open('http://url-that-fails-whitelist.com', '_blank'); // loads in the InAppBrowser iab.open('https://url-that-fails-whitelist.com', '_blank'); // loads in the InAppBrowser
iab.open('http://url-that-fails-whitelist.com', 'random_string'); // loads in the InAppBrowser iab.open('https://url-that-fails-whitelist.com', 'random_string'); // loads in the InAppBrowser
iab.open('http://url-that-fails-whitelist.com', 'random_string', 'location=no'); // loads in the InAppBrowser, no location bar iab.open('https://url-that-fails-whitelist.com', 'random_string', 'location=no'); // loads in the InAppBrowser, no location bar
``` ```

View File

@ -657,49 +657,49 @@ exports.defineManualTests = function (contentEl, createActionButton) {
createActionButton( createActionButton(
'* target=Default', '* target=Default',
function () { function () {
doOpen('http://cordova.apache.org'); doOpen('https://cordova.apache.org');
}, },
'openWhiteListed' 'openWhiteListed'
); );
createActionButton( createActionButton(
'* target=Default (window.open)', '* target=Default (window.open)',
function () { function () {
doHookOpen('http://cordova.apache.org'); doHookOpen('https://cordova.apache.org');
}, },
'openWhiteListedHook' 'openWhiteListedHook'
); );
createActionButton( createActionButton(
'* target=_self', '* target=_self',
function () { function () {
doOpen('http://cordova.apache.org', '_self'); doOpen('https://cordova.apache.org', '_self');
}, },
'openWhiteListedSelf' 'openWhiteListedSelf'
); );
createActionButton( createActionButton(
'target=_system', 'target=_system',
function () { function () {
doOpen('http://cordova.apache.org', '_system'); doOpen('https://cordova.apache.org', '_system');
}, },
'openWhiteListedSystem' 'openWhiteListedSystem'
); );
createActionButton( createActionButton(
'target=_blank', 'target=_blank',
function () { function () {
doOpen('http://cordova.apache.org', '_blank'); doOpen('https://cordova.apache.org', '_blank');
}, },
'openWhiteListedBlank' 'openWhiteListedBlank'
); );
createActionButton( createActionButton(
'target=Random', 'target=Random',
function () { function () {
doOpen('http://cordova.apache.org', 'random_string'); doOpen('https://cordova.apache.org', 'random_string');
}, },
'openWhiteListedRandom' 'openWhiteListedRandom'
); );
createActionButton( createActionButton(
'* target=Random, no location bar', '* target=Random, no location bar',
function () { function () {
doOpen('http://cordova.apache.org', 'random_string', 'location=no'); doOpen('https://cordova.apache.org', 'random_string', 'location=no');
}, },
'openWhiteListedRandomNoLocation' 'openWhiteListedRandomNoLocation'
); );
@ -708,49 +708,49 @@ exports.defineManualTests = function (contentEl, createActionButton) {
createActionButton( createActionButton(
'target=Default', 'target=Default',
function () { function () {
doOpen('http://www.apple.com'); doOpen('https://www.apple.com');
}, },
'openNonWhiteListed' 'openNonWhiteListed'
); );
createActionButton( createActionButton(
'target=Default (window.open)', 'target=Default (window.open)',
function () { function () {
doHookOpen('http://www.apple.com'); doHookOpen('https://www.apple.com');
}, },
'openNonWhiteListedHook' 'openNonWhiteListedHook'
); );
createActionButton( createActionButton(
'target=_self', 'target=_self',
function () { function () {
doOpen('http://www.apple.com', '_self'); doOpen('https://www.apple.com', '_self');
}, },
'openNonWhiteListedSelf' 'openNonWhiteListedSelf'
); );
createActionButton( createActionButton(
'target=_system', 'target=_system',
function () { function () {
doOpen('http://www.apple.com', '_system'); doOpen('https://www.apple.com', '_system');
}, },
'openNonWhiteListedSystem' 'openNonWhiteListedSystem'
); );
createActionButton( createActionButton(
'target=_blank', 'target=_blank',
function () { function () {
doOpen('http://www.apple.com', '_blank'); doOpen('https://www.apple.com', '_blank');
}, },
'openNonWhiteListedBlank' 'openNonWhiteListedBlank'
); );
createActionButton( createActionButton(
'target=Random', 'target=Random',
function () { function () {
doOpen('http://www.apple.com', 'random_string'); doOpen('https://www.apple.com', 'random_string');
}, },
'openNonWhiteListedRandom' 'openNonWhiteListedRandom'
); );
createActionButton( createActionButton(
'* target=Random, no location bar', '* target=Random, no location bar',
function () { function () {
doOpen('http://www.apple.com', 'random_string', 'location=no'); doOpen('https://www.apple.com', 'random_string', 'location=no');
}, },
'openNonWhiteListedRandomNoLocation' 'openNonWhiteListedRandomNoLocation'
); );
@ -759,14 +759,14 @@ exports.defineManualTests = function (contentEl, createActionButton) {
createActionButton( createActionButton(
'http://google.co.uk', 'http://google.co.uk',
function () { function () {
doOpen('http://google.co.uk', 'random_string', '', 1); doOpen('https://google.co.uk', 'random_string', '', 1);
}, },
'openRedirect301' 'openRedirect301'
); );
createActionButton( createActionButton(
'http://goo.gl/pUFqg', 'http://goo.gl/pUFqg',
function () { function () {
doOpen('http://goo.gl/pUFqg', 'random_string', '', 2); doOpen('https://goo.gl/pUFqg', 'random_string', '', 2);
}, },
'openRedirect302' 'openRedirect302'
); );
@ -775,7 +775,7 @@ exports.defineManualTests = function (contentEl, createActionButton) {
createActionButton( createActionButton(
'Remote URL', 'Remote URL',
function () { function () {
doOpen('http://www.stluciadance.com/prospectus_file/sample.pdf'); doOpen('https://www.stluciadance.com/prospectus_file/sample.pdf');
}, },
'openPDF' 'openPDF'
); );
@ -798,7 +798,7 @@ exports.defineManualTests = function (contentEl, createActionButton) {
createActionButton( createActionButton(
'Invalid Host', 'Invalid Host',
function () { function () {
doOpen('http://www.inv;alid.com/', '_blank'); doOpen('https://www.inv;alid.com/', '_blank');
}, },
'openInvalidHost' 'openInvalidHost'
); );
@ -974,21 +974,21 @@ exports.defineManualTests = function (contentEl, createActionButton) {
createActionButton( createActionButton(
'no hardwareback (defaults to yes)', 'no hardwareback (defaults to yes)',
function () { function () {
doOpen('http://cordova.apache.org', '_blank'); doOpen('https://cordova.apache.org', '_blank');
}, },
'openHardwareBackDefault' 'openHardwareBackDefault'
); );
createActionButton( createActionButton(
'hardwareback=yes', 'hardwareback=yes',
function () { function () {
doOpen('http://cordova.apache.org', '_blank', 'hardwareback=yes'); doOpen('https://cordova.apache.org', '_blank', 'hardwareback=yes');
}, },
'openHardwareBackYes' 'openHardwareBackYes'
); );
createActionButton( createActionButton(
'hardwareback=no', 'hardwareback=no',
function () { function () {
doOpen('http://cordova.apache.org', '_blank', 'hardwareback=no'); doOpen('https://cordova.apache.org', '_blank', 'hardwareback=no');
}, },
'openHardwareBackNo' 'openHardwareBackNo'
); );