Merge branch 'master' into 'master'

UI for COSU policy

See merge request entgra/carbon-device-mgt-plugins!20
revert-dabc3590
Milan Perera 6 years ago
commit a262a344c6

@ -199,9 +199,55 @@ var androidOperationModule = function () {
payload = {
"cosuProfileRestrictionStartTime": operationPayload["cosuProfileOperationRestrictionEndTime"],
"cosuProfileRestrictionEndTime": operationPayload["cosuProfileOperationRestrictionEndTime"],
"idleMediaURL" : operationPayload["deviceGlobalConfigurations"]["idleMediaURL"],
"kioskBackgroundImage": operationPayload["deviceGlobalConfigurations"]["kioskBackgroundImage"],
"kioskLogoImage" : operationPayload["deviceGlobalConfigurations"]["kioskLogoImage"],
"kioskAppName" : operationPayload["deviceGlobalConfigurations"]["kioskAppName"],
"isIdleGraphicsEnabled" : operationPayload["deviceGlobalConfigurations"]["isIdleGraphicsEnabled"],
"idleTimeout" : operationPayload["deviceGlobalConfigurations"]["idleTimeout"],
"isMultiUserDevice" : operationPayload["deviceGlobalConfigurations"]["isMultiUserDevice"],
"isLoginRequired" : operationPayload["deviceGlobalConfigurations"]["isLoginRequired"],
"displayOrientation" : operationPayload["deviceGlobalConfigurations"]["displayOrientation"],
"primaryURL": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["primaryURL"],
"isTopBarEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isTopBarEnabled"],
"isAddressBarEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]
["isAddressBarEnabled"]
["isAddressBarEnabled"],
"showBackController": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["showBackController"],
"isForwardControllerEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isForwardControllerEnabled"],
"isHomeButtonEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isHomeButtonEnabled"],
"isReloadEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isReloadEnabled"],
"lockToPrimaryURL": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["lockToPrimaryURL"],
"isJavascriptEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isJavascriptEnabled"],
"isTextCopyEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isTextCopyEnabled"],
"isDownloadsEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isDownloadsEnabled"],
"isLockedToBrowser": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isLockedToBrowser"],
"isFormAutoFillEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isFormAutoFillEnabled"],
"isContentAccessEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isContentAccessEnabled"],
"isFileAccessAllowed": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isFileAccessAllowed"],
"isAllowedUniversalAccessFromFileURLs": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isAllowedUniversalAccessFromFileURLs"],
"isAllowedFileAccessFromFileURLs": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isAllowedFileAccessFromFileURLs"],
"isAppCacheEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isAppCacheEnabled"],
"appCachePath": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["appCachePath"],
"cacheMode": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["cacheMode"],
"isLoadsImagesAutomatically": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isLoadsImagesAutomatically"],
"isBlockNetworkImage": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isBlockNetworkImage"],
"isBlockNetworkLoads": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isBlockNetworkLoads"],
"isSupportZoomEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isSupportZoomEnabled"],
"isDisplayZoomControls": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isDisplayZoomControls"],
"textZoom": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["textZoom"],
"defaultFontSize": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["defaultFontSize"],
"defaultTextEncodingName": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["defaultTextEncodingName"],
"isDatabaseEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isDatabaseEnabled"],
"isDomStorageEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isDomStorageEnabled"],
"geolocationEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["geolocationEnabled"],
"isJavaScriptCanOpenWindowsAutomatically": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isJavaScriptCanOpenWindowsAutomatically"],
"isMediaPlaybackRequiresUserGesture": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isMediaPlaybackRequiresUserGesture"],
"isSafeBrowsingEnabled": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isSafeBrowsingEnabled"],
"isUseWideViewPort": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["isUseWideViewPort"],
"userAgentString": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["userAgentString"],
"mixedContentMode": operationPayload["deviceGlobalConfigurations"]["browserProperties"]["mixedContentMode"]
};
break;
case androidOperationConstants["KIOSK_APPS_CODE"]:
@ -398,18 +444,87 @@ var androidOperationModule = function () {
break;
case androidOperationConstants["COSU_PROFILE_CONFIGURATION_OPERATION_CODE"]:
operationType = operationTypeConstants["PROFILE"];
payload = {
"operation": {
"cosuProfileRestrictionStartTime": operationData["cosuProfileOperationRestrictionStartTime"],
"cosuProfileRestrictionEndTime": operationData["cosuProfileOperationRestrictionEndTime"],
"deviceGlobalConfigurations" : {
"browserProperties": {
"primaryURL": operationData["primaryURL"],
"isAddressBarEnabled": operationData["isAddressBarEnabled"]
}
}
}
};
payload = {};
operation = {};
operation["cosuProfileRestrictionStartTime"] =
operationData["cosuProfileOperationRestrictionStartTime"];
operation["cosuProfileRestrictionEndTime"] = operationData["cosuProfileOperationRestrictionEndTime"];
deviceGlobalConfigurations = {};
if (operationData["idleMediaURL"]) {
deviceGlobalConfigurations["idleMediaURL"] = operationData["idleMediaURL"];
}
if (operationData["kioskBackgroundImage"]) {
deviceGlobalConfigurations["kioskBackgroundImage"] = operationData["kioskBackgroundImage"];
}
if (operationData["kioskLogoImage"]) {
deviceGlobalConfigurations["kioskLogoImage"] = operationData["kioskLogoImage"];
}
if (operationData["kioskAppName"]) {
deviceGlobalConfigurations["kioskAppName"] = operationData["kioskAppName"];
}
deviceGlobalConfigurations["isIdleGraphicsEnabled"] = operationData["isIdleGraphicsEnabled"];
if (operationData["idleTimeout"]) {
deviceGlobalConfigurations["idleTimeout"] = operationData["idleTimeout"];
}
deviceGlobalConfigurations["isMultiUserDevice"] = operationData["isMultiUserDevice"];
deviceGlobalConfigurations["isLoginRequired"] = operationData["isLoginRequired"];
deviceGlobalConfigurations["displayOrientation"] = operationData["displayOrientation"];
browserProperties = {};
if (operationData["primaryURL"]) {
browserProperties["primaryURL"] = operationData["primaryURL"];
browserProperties["isTopBarEnabled"] = operationData["isTopBarEnabled"];
browserProperties["isAddressBarEnabled"] = operationData["isAddressBarEnabled"];
browserProperties["showBackController"] = operationData["showBackController"];
browserProperties["isForwardControllerEnabled"] = operationData["isForwardControllerEnabled"];
browserProperties["isHomeButtonEnabled"] = operationData["isHomeButtonEnabled"];
browserProperties["isReloadEnabled"] = operationData["isReloadEnabled"];
browserProperties["lockToPrimaryURL"] = operationData["lockToPrimaryURL"];
browserProperties["isJavascriptEnabled"] = operationData["isJavascriptEnabled"];
browserProperties["isTextCopyEnabled"] = operationData["isTextCopyEnabled"];
browserProperties["isDownloadsEnabled"] = operationData["isDownloadsEnabled"];
browserProperties["isLockedToBrowser"] = operationData["isLockedToBrowser"];
browserProperties["isFormAutoFillEnabled"] = operationData["isFormAutoFillEnabled"];
browserProperties["isContentAccessEnabled"] = operationData["isContentAccessEnabled"];
browserProperties["isFileAccessAllowed"] = operationData["isFileAccessAllowed"];
browserProperties["isAllowedUniversalAccessFromFileURLs"] = operationData["isAllowedUniversalAccessFromFileURLs"];
browserProperties["isAllowedFileAccessFromFileURLs"] = operationData["isAllowedFileAccessFromFileURLs"];
browserProperties["isAppCacheEnabled"] = operationData["isAppCacheEnabled"];
if (operationData["isAppCacheEnabled"] && operationData["appCachePath"]) {
browserProperties["appCachePath"] = operationData["appCachePath"];
}
browserProperties["cacheMode"] = operationData["cacheMode"];
browserProperties["isLoadsImagesAutomatically"] = operationData["isLoadsImagesAutomatically"];
browserProperties["isBlockNetworkImage"] = operationData["isBlockNetworkImage"];
browserProperties["isBlockNetworkLoads"] = operationData["isBlockNetworkLoads"];
browserProperties["isSupportZoomEnabled"] = operationData["isSupportZoomEnabled"];
browserProperties["isDisplayZoomControls"] = operationData["isDisplayZoomControls"];
if (operationData["textZoom"]) {
browserProperties["textZoom"] = operationData["textZoom"];
}
if (operationData["defaultFontSize"]) {
browserProperties["defaultFontSize"] = operationData["defaultFontSize"];
}
if (operationData["defaultTextEncodingName"]) {
browserProperties["defaultTextEncodingName"] = operationData["defaultTextEncodingName"];
}
browserProperties["isDatabaseEnabled"] = operationData["isDatabaseEnabled"];
browserProperties["isDomStorageEnabled"] = operationData["isDomStorageEnabled"];
browserProperties["geolocationEnabled"] = operationData["geolocationEnabled"];
browserProperties["isJavaScriptCanOpenWindowsAutomatically"] = operationData["isJavaScriptCanOpenWindowsAutomatically"];
browserProperties["isMediaPlaybackRequiresUserGesture"] = operationData["isMediaPlaybackRequiresUserGesture"];
browserProperties["isSafeBrowsingEnabled"] = operationData["isSafeBrowsingEnabled"];
browserProperties["isUseWideViewPort"] = operationData["isUseWideViewPort"];
if (operationData["userAgentString"]) {
browserProperties["userAgentString"] = operationData["userAgentString"];
}
browserProperties["mixedContentMode"] = operationData["mixedContentMode"];
deviceGlobalConfigurations.browserProperties = browserProperties;
}
operation.deviceGlobalConfigurations = deviceGlobalConfigurations;
payload.operation = operation;
break;
case androidOperationConstants["SYSTEM_UPDATE_POLICY_CODE"]:
operationType = operationTypeConstants["PROFILE"];

@ -270,11 +270,95 @@ var validatePolicyProfile = function () {
}
// Validating COSU PROFILE CONFIGURATION
if ($.inArray(androidOperationConstants["COSU_PROFILE_CONFIGURATION_OPERATION_CODE"], configuredOperations) != -1) {
operation = androidOperationConstants["COSU_PROFILE_CONFIGURATION_OPERATION"];
validationStatus = {
"error": false,
"okFeature": operation
};
operation = androidOperationConstants["COSU_PROFILE_CONFIGURATION_OPERATION"];
var continueToCheckNextInputs = true;
if (continueToCheckNextInputs) {
var backgroundImage = $("input#cosu-global-config-kiosk-background-image").val();
if (backgroundImage && !(backgroundImage.endsWith("jpg") || backgroundImage.endsWith("jpeg")
|| backgroundImage.endsWith("png"))) {
validationStatus = {
"error": true,
"subErrorMsg": "Launcher background image file types are jpg, jpeg and png",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
if (continueToCheckNextInputs) {
var kioskLogo = $("input#cosu-global-config-kiosk-logo-image").val();
if (kioskLogo && !(kioskLogo.endsWith("jpg") || kioskLogo.endsWith("jpeg")
|| kioskLogo.endsWith("png"))) {
validationStatus = {
"error": true,
"subErrorMsg": "Company log to display file types are jpg, jpeg and png",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
if (continueToCheckNextInputs) {
var idleMediaUrl = $("input#cosu-global-config-idle-media-url").val();
if (idleMediaUrl && !(idleMediaUrl.endsWith("jpg") || idleMediaUrl.endsWith("jpeg")
|| idleMediaUrl.endsWith("png") || idleMediaUrl.endsWith("mp4")
|| idleMediaUrl.endsWith("3gp") || idleMediaUrl.endsWith("wmv")
|| idleMediaUrl.endsWith("mkv"))) {
validationStatus = {
"error": true,
"subErrorMsg": "Idle media url file types are .jpg, .png, .jpeg, .mp4, .3gp, .wmv, .mkv",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
if (continueToCheckNextInputs) {
var idleTimeout = $("input#cosu-browser-property-idle-timeout").val();
if (idleTimeout && (!$.isNumeric(idleTimeout) || idleTimeout < 0)) {
validationStatus = {
"error": true,
"subErrorMsg": "Idle timeout must be a positive whole number",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
if (continueToCheckNextInputs) {
var textZoom = $("input#cosu-browser-property-text-zoom").val();
if (textZoom && (!$.isNumeric(textZoom) || textZoom < 0)) {
validationStatus = {
"error": true,
"subErrorMsg": "Text zoom must be a positive whole number",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
if (continueToCheckNextInputs) {
var defaultFontSize = $("input#cosu-browser-property-default-font-size").val();
if (defaultFontSize) {
if (!$.isNumeric(defaultFontSize) || !inputIsValidAgainstRange(defaultFontSize, 0, 72)) {
validationStatus = {
"error": true,
"subErrorMsg": "Default font size is a number between 0 and 72",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
}
if (continueToCheckNextInputs) {
validationStatus = {
"error": false,
"okFeature": operation
};
}
validationStatusArray.push(validationStatus);
}
// Validating ENCRYPT_STORAGE
@ -741,6 +825,25 @@ var changeAndroidWifiPolicyEAP = function (select, superSelect) {
}
};
/**
* Pass a div Id and a check box to view or hide div content based on checkbox value
*/
var changeDivVisibility = function (divId, checkbox) {
if (checkbox.checked) {
document.getElementById(divId).style.display= "block"
} else {
document.getElementById(divId).style.display= "none"
inputs = document.getElementById(divId).getElementsByTagName('input');
for (index = 0; index < inputs.length; ++index) {
if (inputs[index].type == "text") {
inputs[index].value = inputs[index].defaultValue;
} else if (inputs[index].type == "checkbox") {
inputs[index].checked = inputs[index].defaultChecked;
}
}
}
};
/**
* Method to slide down a provided pane upon provided value set.
*

@ -1677,6 +1677,117 @@
<div id="cosu-profile-device-global-operation" class="panel-collapse panel-body collapse"
role="tabpanel">
<form class="form-horizontal">
<div class="wr-input-control">
<label class="wr-input-label">
Launcher background image
<span class="helper" title="This is the image that will be displayed in kiosk background.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-kiosk-background-image" type="text"
class="form-control operationDataKeys" data-key="kioskBackgroundImage"
maxlength="100" placeholder="[ Should be a valid URL of jpg or jpeg or png]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Company logo to display
<span class="helper" title="Company log to display.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-kiosk-logo-image" type="text"
class="form-control operationDataKeys" data-key="kioskLogoImage"
maxlength="100" placeholder="[ Should be a valid URL ending with .jpg, .png,
.jpeg"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Company name
<span class="helper" title="Company name.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-company-name" type="text"
class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent"/>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-idle-graphics-enabled" type="checkbox"
class="form-control operationDataKeys" data-key="isIdleGraphicsEnabled"
onchange="changeDivVisibility('idle-properties', this)"/>
<span class="helper" title="Is idle media enabled">
Is idle media enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div id="idle-properties">
<div class="wr-input-control">
<label class="wr-input-label">
Media to display while idle
<span class="helper" title="Media to display while the device is idle.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-idle-media-url" type="text"
class="form-control operationDataKeys" data-key="idleMediaURL"
maxlength="100" placeholder="[ Should be a valid URL ending with .jpg, .png, .jpeg, .mp4, .3gp, .wmv, .mkv ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Idle graphic begin after(seconds)
<span class="helper" title="Idle graphic begin after the defined seconds">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-idle-timeout" type="text"
class="form-control operationDataKeys" data-key="idleTimeout"
maxlength="100" placeholder="[ Idle timeout in seconds ]"/>
</div>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-multi-user-device" type="checkbox"
class="form-control operationDataKeys" data-key="isMultiUserDevice"
onchange="changeDivVisibility('cosu-global-config-is-is-login-required-div', this)"/>
<span class="helper" title="Is multi-user device">
Is multi-user device
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div id="cosu-global-config-is-is-login-required-div">
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-is-login-required" type="checkbox"
class="form-control operationDataKeys"
data-key="isLoginRequired"/>
<span class="helper" title="Is login needed for user switch">
Is login needed for user switch
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
</div>
<div>
<label class="wr-input-label">
Device display orientation
<span class="helper" title="Device display orientation">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select id="cosu-profile-orientation"
class="form-control operationDataKeys"
data-key="displayOrientation" data-default="auto">
<option value="auto">Auto</option>
<option value="portrait">Portrait</option>
<option value="landscape">Landscape</option>
</select>
</div>
<br><br>
<div class="form-group">
<h2 class="col-sm-12 form-inline sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:13px; margin-left:10px;">
@ -1702,6 +1813,17 @@
class="form-control operationDataKeys" data-key="primaryURL"
maxlength="100" placeholder="[ Should be a valid URL ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-top-bar-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isTopBarEnabled"/>
<span class="helper" title="Enabled top control bar that displays all the controllers such as address bar, home button and forwards controllers">
Enabled top control bar
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-address-bar-enabled" type="checkbox"
@ -1713,6 +1835,396 @@
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-show-back-controller" type="checkbox"
class="form-control operationDataKeys"
data-key="showBackController" checked/>
<span class="helper" title="Allow to go back in a page">
Is allow to go back on a page
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-forward-controller-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isForwardControllerEnabled"/>
<span class="helper" title="Is it allowed to go forward in a web page.">
Is it allowed to go forward in browser
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-home-button-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isHomeButtonEnabled"/>
<span class="helper" title="Is home button enabled.">
Is home button enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-reload-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isReloadEnabled"/>
<span class="helper" title="Is page reload enabled.">
Is page reload enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-lock-to-primary-url" type="checkbox"
class="form-control operationDataKeys"
data-key="lockToPrimaryURL"/>
<span class="helper" title="Only allowed to visit the pirmary url.">
Only allowed to visit the pirmary url
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-javascript-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isJavascriptEnabled"/>
<span class="helper" title="Is javascript enabled.">
Is javascript enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-text-copy-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isTextCopyEnabled"/>
<span class="helper" title="Is copying text from browser enabled.">
Is copying text from browser enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-downloads-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isDownloadsEnabled"/>
<span class="helper" title="Is downloading files enabled.">
Is downloading files enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-locked-to-browser" type="checkbox"
class="form-control operationDataKeys"
data-key="isLockedToBrowser"/>
<span class="helper" title="Is Kiosk limited to one webapp.">
Is Kiosk limited to one webapp
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-form-auto-fill-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isFormAutoFillEnabled"/>
<span class="helper" title="Is form auto-fille enabled.">
Is form auto-fille enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-content-access-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isContentAccessEnabled"/>
<span class="helper" title="Enables or disables content URL access within WebView. Content URL access allows WebView to load content from a content provider installed in the system.">
Is content access enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-file-access-allowed" type="checkbox"
class="form-control operationDataKeys"
data-key="isFileAccessAllowed"/>
<span class="helper" title="Sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs. .">
Is file access allowed
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-allowed-universal-access-from-fileURLs" type="checkbox"
class="form-control operationDataKeys"
data-key="isAllowedUniversalAccessFromFileURLs"/>
<span class="helper" title="Sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from any origin.">
Is allowed universal access from file URLs
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-app-cache-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isAppCacheEnabled"/>
<span class="helper" title="Is application chche enabled.">
Is application chche enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Application caches file path
<span class="helper" title="Sets the path to the Application Caches files. In order for the Application Caches API to be enabled, this method must be called with a path to which the application can write">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-app-cache-path" type="text"
class="form-control operationDataKeys" data-key="appCachePath"
maxlength="100" placeholder="[ Should be a valid path ]"/>
</div>
<div>
<label class="wr-input-label">
Application cache mode
<span class="helper" title="Overrides the way the cache is used. The way the cache is used is based on the navigation type. For a normal page load, the cache is checked and content is re-validated as needed. When navigating back, content is not revalidated, instead the content is just retrieved from the cache. This method allows the client to override this behavior by specifying one of LOAD_DEFAULT, LOAD_CACHE_ELSE_NETWORK, LOAD_NO_CACHE or LOAD_CACHE_ONLY">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select id="cosu-browser-property-cache-mode"
class="form-control operationDataKeys"
data-key="cacheMode" data-default="-1">
<option value="-1">LOAD_DEFAULT</option>
<option value="1">LOAD_CACHE_ELSE_NETWORK</option>
<option value="2">LOAD_NO_CACHE</option>
<option value="3">LOAD_CACHE_ONLY</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-loads-images-automatically" type="checkbox"
class="form-control operationDataKeys"
data-key="isLoadsImagesAutomatically"/>
<span class="helper" title="Sets whether the browser should load image resources(through network and cached). Note that this method controls loading of all images, including those embedded using the data URI scheme.">
Should load images
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-block-network-image" type="checkbox"
class="form-control operationDataKeys"
data-key="isBlockNetworkImage"/>
<span class="helper" title="Sets whether the browser should not load image resources from the network (resources accessed via http and https URI schemes)">
Block image loads via network
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-block-network-loads" type="checkbox"
class="form-control operationDataKeys"
data-key="isBlockNetworkLoads"/>
<span class="helper" title="Sets whether the browser should not load any resources from the network.">
Block all resource loads from network
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-support-zoom-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isSupportZoomEnabled"/>
<span class="helper" title="Sets whether the browser should support zooming using its on-screen zoom controls and gestures.">
Support zooming
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-display-zoom-controls" type="checkbox"
class="form-control operationDataKeys"
data-key="isDisplayZoomControls"/>
<span class="helper" title="Sets whether the browser should display on-screen zoom controls. Guesture based controllers are still available">
Show on-screen zoom controlers
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Text zoom percentage
<span class="helper" title="Sets the text zoom of the page in percent.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-text-zoom" type="text"
class="form-control operationDataKeys" data-key="textZoom"
maxlength="100" placeholder="[ Should be a positive number ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Default font size
<span class="helper" title="Sets the default font size.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-default-font-size" type="text"
class="form-control operationDataKeys" data-key="defaultFontSize"
maxlength="100" placeholder="[ Should be a positive number between 1 and 72 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Defaut text encoding name
<span class="helper" title="Sets the default text encoding name to use when decoding html pages.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-default-text-encoding" type="text"
class="form-control operationDataKeys" data-key="defaultTextEncodingName"
maxlength="100" placeholder="[ Should a valid text encoding ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-database-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isDatabaseEnabled"/>
<span class="helper" title="Sets whether the database storage API is enabled.">
Is database storage API enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-dom-storage-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isDomStorageEnabled"/>
<span class="helper" title="Sets whether the DOM storage API is enabled.">
Is DOM storage API enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-geolocation-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="geolocationEnabled"/>
<span class="helper" title="Sets whether Geolocation API is enabled.">
Is Geolocation enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-javaScript-can-open-windows-automatically" type="checkbox"
class="form-control operationDataKeys"
data-key="isJavaScriptCanOpenWindowsAutomatically"/>
<span class="helper" title="JavaScript can open windows automatically or not. This applies to the JavaScript function window.open()">
Can JavaScript open windows
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-media-playback-requires-user-gesture" type="checkbox"
class="form-control operationDataKeys"
data-key="isMediaPlaybackRequiresUserGesture"/>
<span class="helper" title="Sets whether the browser requires a user gesture to play media. If false, the browser can play media without user consent">
Does media playback requires user consent
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-safe-browsing-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isSafeBrowsingEnabled"/>
<span class="helper" title="Sets whether safe browsing is enabled. Safe browsing allows browser to protect against malware and phishing attacks by verifying the links.">
Is safe browsing enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-use-wide-view-port" type="checkbox"
class="form-control operationDataKeys"
data-key="isUseWideViewPort"/>
<span class="helper" title="Sets whether the browser should enable support for the viewport HTML meta tag or should use a wide viewport. When the value of the setting is false, the layout width is always set to the width of the browser control in device-independent (CSS) pixels. When the value is true and the page contains the viewport meta tag, the value of the width specified in the tag is used. If the page does not contain the tag or does not provide a width, then a wide viewport will be used.">
Use wide view port
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Browser user agent string
<span class="helper" title="Sets the WebView's user-agent string.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-user-agent-string" type="text"
class="form-control operationDataKeys" data-key="userAgentString"
maxlength="100" placeholder="[ Should be a valid user agent string ]"/>
</div>
<div>
<label class="wr-input-label">
Mixed content mode
<span class="helper" title="Configures the browser's behavior when a secure origin attempts to load a resource from an insecure origin.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select id="cosu-browser-property-mixed-content-mode"
class="form-control operationDataKeys"
data-key="mixedContentMode" data-default="1">
<option value="0">MIXED_CONTENT_ALWAYS_ALLOW</option>
<option value="1">MIXED_CONTENT_NEVER_ALLOW</option>
<option value="2">MIXED_CONTENT_COMPATIBILITY_MODE</option>
</select>
</div>
</div>
</form>
<br/>
@ -1729,6 +2241,7 @@
</div>
</div>
</div>
<!--COSU profile configuration-->
<!-- cosu-system-update-policy -->

@ -1281,6 +1281,111 @@
<div id="cosu-profile-device-global-operation" class="panel-collapse panel-body collapse"
role="tabpanel">
<form class="form-horizontal">
<div class="wr-input-control">
<label class="wr-input-label">
Launcher background image
<span class="helper" title="This is the image that will be displayed in kiosk background.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-kiosk-background-image" type="text"
class="form-control operationDataKeys" data-key="kioskBackgroundImage"
maxlength="100" placeholder="[ Should be a valid URL ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Company logo to display
<span class="helper" title="Company log to display.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-kiosk-logo-image" type="text"
class="form-control operationDataKeys" data-key="kioskLogoImage"
maxlength="100" placeholder="[ Should be a valid URL ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Company name
<span class="helper" title="Company name">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-company-logo" type="text"
class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-idle-graphics-enabled" type="checkbox"
class="form-control operationDataKeys" data-key="isIdleGraphicsEnabled" disabled/>
<span class="helper" title="Is idle media enabled">
Is idle media enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Media to display while idle
<span class="helper" title="Media to display while the device is idle.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-idle-media-url" type="text"
class="form-control operationDataKeys" data-key="idleMediaURL"
maxlength="100" placeholder="[ Should be a valid URL ending with .jpg, .png, .jpeg, .mp4, .3gp, .wmv, .mkv ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Idle graphic begin after(seconds)
<span class="helper" title="Idle graphic begin after the defined seconds">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-idle-timeout" type="text"
class="form-control operationDataKeys" data-key="idleTimeout"
maxlength="100" placeholder="[ Idle timeout in seconds ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-multi-user-device" type="checkbox"
class="form-control operationDataKeys" data-key="isMultiUserDevice" disabled/>
<span class="helper" title="Is multi-user device">
Is multi-user device
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-is-login-required" type="checkbox"
class="form-control operationDataKeys"
data-key="isLoginRequired" disabled/>
<span class="helper" title="Is re-login required to switch between users.">
Is Login Required Ror User Switch
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div>
<label class="wr-input-label">
Device display orientation
<span class="helper" title="Device display orientation">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select id="cosu-profile-configuration-end-time"
class="form-control operationDataKeys"
data-key="displayOrientation" data-default="auto" disabled>
<option value="auto">Auto</option>
<option value="portrait">Portrait</option>
<option value="landscape">Landscape</option>
</select>
</div>
<br><br>
<div class="form-group">
<h2 class="col-sm-12 form-inline sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:13px; margin-left:10px;">
@ -1306,6 +1411,17 @@
class="form-control operationDataKeys" data-key="primaryURL"
maxlength="100" placeholder="[ Should be a valid URL ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-top-bar-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isTopBarEnabled" disabled/>
<span class="helper" title="Enabled top control bar that displays all the controllers such as address bar, home button and forwards controllers">
Enabled top control bar
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-address-bar-enabled" type="checkbox"
@ -1317,6 +1433,397 @@
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-show-back-controller" type="checkbox"
class="form-control operationDataKeys"
data-key="showBackController" disabled/>
<span class="helper" title="Allow to go back in a page">
Is allow to go back on a page
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-forward-controller-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isForwardControllerEnabled" disabled/>
<span class="helper" title="Is it allowed to go forward in a web page.">
Is it allowed to go forward in browser
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-home-button-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isHomeButtonEnabled" disabled/>
<span class="helper" title="Is home button enabled.">
Is home button enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-reload-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isReloadEnabled" disabled/>
<span class="helper" title="Is page reload enabled.">
Is page reload enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-lock-to-primary-url" type="checkbox"
class="form-control operationDataKeys"
data-key="lockToPrimaryURL" disabled/>
<span class="helper" title="Only allowed to visit the pirmary url.">
Only allowed to visit the pirmary url
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-javascript-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isJavascriptEnabled" disabled/>
<span class="helper" title="Is javascript enabled.">
Is javascript enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-text-copy-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isTextCopyEnabled" disabled/>
<span class="helper" title="Is copying text from browser enabled.">
Is copying text from browser enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-downloads-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isDownloadsEnabled" disabled/>
<span class="helper" title="Is downloading files enabled.">
Is downloading files enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-locked-to-browser" type="checkbox"
class="form-control operationDataKeys"
data-key="isLockedToBrowser" disabled/>
<span class="helper" title="Is Kiosk limited to one webapp.">
Is Kiosk limited to one webapp
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-form-auto-fill-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isFormAutoFillEnabled" disabled/>
<span class="helper" title="Is form auto-fille enabled.">
Is form auto-fille enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-content-access-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isContentAccessEnabled" disabled/>
<span class="helper" title="Enables or disables content URL access within WebView. Content URL access allows WebView to load content from a content provider installed in the system.">
Is content access enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-file-access-allowed" type="checkbox"
class="form-control operationDataKeys"
data-key="isFileAccessAllowed" disabled/>
<span class="helper" title="Sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs. .">
Is file access allowed
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-allowed-universal-access-from-fileURLs" type="checkbox"
class="form-control operationDataKeys"
data-key="isAllowedUniversalAccessFromFileURLs" disabled/>
<span class="helper" title="Sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from any origin.">
Is allowed universal access from file URLs
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-app-cache-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isAppCacheEnabled" disabled/>
<span class="helper" title="Is application chche enabled.">
Is application chche enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Application caches file path
<span class="helper" title="Sets the path to the Application Caches files. In order for the Application Caches API to be enabled, this method must be called with a path to which the application can write">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-app-cache-path" type="text"
class="form-control operationDataKeys" data-key="appCachePath"
maxlength="100" placeholder="[ Should be a valid path ]" disabled/>
</div>
<div>
<label class="wr-input-label">
Application cache mode
<span class="helper" title="Overrides the way the cache is used. The way the cache is used is based on the navigation type. For a normal page load, the cache is checked and content is re-validated as needed. When navigating back, content is not revalidated, instead the content is just retrieved from the cache. This method allows the client to override this behavior by specifying one of LOAD_DEFAULT, LOAD_CACHE_ELSE_NETWORK, LOAD_NO_CACHE or LOAD_CACHE_ONLY">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select id="cosu-browser-property-cache-mode"
class="form-control operationDataKeys"
data-key="cacheMode" data-default="-1" disabled>
<option value="-1">LOAD_DEFAULT</option>
<option value="1">LOAD_CACHE_ELSE_NETWORK</option>
<option value="2">LOAD_NO_CACHE</option>
<option value="3">LOAD_CACHE_ONLY</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-loads-images-automatically" type="checkbox"
class="form-control operationDataKeys"
data-key="isLoadsImagesAutomatically" disabled/>
<span class="helper" title="Sets whether the browser should load image resources(through network and cached). Note that this method controls loading of all images, including those embedded using the data URI scheme.">
Should load images
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-block-network-image" type="checkbox"
class="form-control operationDataKeys"
data-key="isBlockNetworkImage" disabled/>
<span class="helper" title="Sets whether the browser should not load image resources from the network (resources accessed via http and https URI schemes)">
Block image loads via network
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-block-network-loads" type="checkbox"
class="form-control operationDataKeys"
data-key="isBlockNetworkLoads" disabled/>
<span class="helper" title="Sets whether the browser should not load any resources from the network.">
Block all resource loads from network
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-support-zoom-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isSupportZoomEnabled" disabled/>
<span class="helper" title="Sets whether the browser should support zooming using its on-screen zoom controls and gestures.">
Support zooming
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-display-zoom-controls" type="checkbox"
class="form-control operationDataKeys"
data-key="isDisplayZoomControls" disabled/>
<span class="helper" title="Sets whether the browser should display on-screen zoom controls. Guesture based controllers are still available">
Show on-screen zoom controlers
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Text zoom percentage
<span class="helper" title="Sets the text zoom of the page in percent.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-text-zoom" type="text"
class="form-control operationDataKeys" data-key="textZoom"
maxlength="100" placeholder="[ Should be a positive number ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Default font size
<span class="helper" title="Sets the default font size.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-default-font-size" type="text"
class="form-control operationDataKeys" data-key="defaultFontSize"
maxlength="100" placeholder="[ Should be a positive number between 1 and 72 ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Defaut text encoding name
<span class="helper" title="Sets the default text encoding name to use when decoding html pages.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-default-text-encoding" type="text"
class="form-control operationDataKeys" data-key="defaultTextEncodingName"
maxlength="100" placeholder="[ Should a valid text encoding ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-database-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isDatabaseEnabled" disabled/>
<span class="helper" title="Sets whether the database storage API is enabled.">
Is database storage API enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-dom-storage-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isDomStorageEnabled" disabled/>
<span class="helper" title="Sets whether the DOM storage API is enabled.">
Is DOM storage API enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-geolocation-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="geolocationEnabled" disabled/>
<span class="helper" title="Sets whether Geolocation API is enabled.">
Is Geolocation enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-javaScript-can-open-windows-automatically" type="checkbox"
class="form-control operationDataKeys"
data-key="isJavaScriptCanOpenWindowsAutomatically" disabled/>
<span class="helper" title="JavaScript can open windows automatically or not. This applies to the JavaScript function window.open()">
Can JavaScript open windows
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-media-playback-requires-user-gesture" type="checkbox"
class="form-control operationDataKeys"
data-key="isMediaPlaybackRequiresUserGesture" disabled/>
<span class="helper" title="Sets whether the browser requires a user gesture to play media. If false, the browser can play media without user consent">
Does media playback requires user consent
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-safe-browsing-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isSafeBrowsingEnabled" disabled/>
<span class="helper" title="Sets whether safe browsing is enabled. Safe browsing allows browser to protect against malware and phishing attacks by verifying the links.">
Is safe browsing enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-use-wide-view-port" type="checkbox"
class="form-control operationDataKeys"
data-key="isUseWideViewPort" disabled/>
<span class="helper" title="Sets whether the browser should enable support for the viewport HTML meta tag or should use a wide viewport. When the value of the setting is false, the layout width is always set to the width of the browser control in device-independent (CSS) pixels. When the value is true and the page contains the viewport meta tag, the value of the width specified in the tag is used. If the page does not contain the tag or does not provide a width, then a wide viewport will be used.">
Use wide view port
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Browser user agent string
<span class="helper" title="Sets the WebView's user-agent string.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-user-agent-string" type="text"
class="form-control operationDataKeys" data-key="userAgentString"
maxlength="100" placeholder="[ Should be a valid user agent string ]" disabled/>
</div>
<div>
<label class="wr-input-label">
Mixed content mode
<span class="helper" title="Configures the browser's behavior when a secure origin attempts to load a resource from an insecure origin.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select id="cosu-browser-property-mixed-content-mode"
class="form-control operationDataKeys"
data-key="mixedContentMode" data-default="1" disabled>
<option value="0">MIXED_CONTENT_ALWAYS_ALLOW</option>
<option value="1">MIXED_CONTENT_NEVER_ALLOW</option>
<option value="2">MIXED_CONTENT_COMPATIBILITY_MODE</option>
</select>
</div>
</div>
</form>
<br/>

@ -52,6 +52,8 @@ var androidOperationConstants = {
"APPLICATION_OPERATION_CODE": "APP-RESTRICTION",
"KIOSK_APPS_CODE": "KIOSK_APPS",
"KIOSK_APPS": "cosu-whitelisted-applications",
"COSU_PROFILE_CONFIGURATION_OPERATION": "cosu-profile-configuration",
"COSU_PROFILE_CONFIGURATION_OPERATION_CODE": "COSU_PROFILE",
"ENROLLMENT_APP_INSTALL": "enrollment-app-install",
"ENROLLMENT_APP_INSTALL_CODE": "ENROLLMENT_APP_INSTALL"
};
@ -208,6 +210,101 @@ var validatePolicyProfile = function () {
// updating validationStatusArray with validationStatus
validationStatusArray.push(validationStatus);
}
// Validating COSU PROFILE CONFIGURATION
if ($.inArray(androidOperationConstants["COSU_PROFILE_CONFIGURATION_OPERATION_CODE"], configuredOperations) != -1) {
operation = androidOperationConstants["COSU_PROFILE_CONFIGURATION_OPERATION"];
var continueToCheckNextInputs = true;
if (continueToCheckNextInputs) {
var backgroundImage = $("input#cosu-global-config-kiosk-background-image").val();
if (backgroundImage && !(backgroundImage.endsWith("jpg") || backgroundImage.endsWith("jpeg")
|| backgroundImage.endsWith("png"))) {
validationStatus = {
"error": true,
"subErrorMsg": "Launcher background image file types are jpg, jpeg and png",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
if (continueToCheckNextInputs) {
var kioskLogo = $("input#cosu-global-config-kiosk-logo-image").val();
if (kioskLogo && !(kioskLogo.endsWith("jpg") || kioskLogo.endsWith("jpeg")
|| kioskLogo.endsWith("png"))) {
validationStatus = {
"error": true,
"subErrorMsg": "Company log to display file types are jpg, jpeg and png",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
if (continueToCheckNextInputs) {
var idleMediaUrl = $("input#cosu-global-config-idle-media-url").val();
if (idleMediaUrl && !(idleMediaUrl.endsWith("jpg") || idleMediaUrl.endsWith("jpeg")
|| idleMediaUrl.endsWith("png") || idleMediaUrl.endsWith("mp4")
|| idleMediaUrl.endsWith("3gp") || idleMediaUrl.endsWith("wmv")
|| idleMediaUrl.endsWith("mkv"))) {
validationStatus = {
"error": true,
"subErrorMsg": "Idle media url file types are .jpg, .png, .jpeg, .mp4, .3gp, .wmv, .mkv",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
if (continueToCheckNextInputs) {
var idleTimeout = $("input#cosu-browser-property-idle-timeout").val();
if (idleTimeout && (!$.isNumeric(idleTimeout) || idleTimeout < 0)) {
validationStatus = {
"error": true,
"subErrorMsg": "Idle timeout must be a positive whole number",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
if (continueToCheckNextInputs) {
var textZoom = $("input#cosu-browser-property-text-zoom").val();
if (textZoom && (!$.isNumeric(textZoom) || textZoom < 0)) {
validationStatus = {
"error": true,
"subErrorMsg": "Text zoom must be a positive whole number",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
if (continueToCheckNextInputs) {
var defaultFontSize = $("input#cosu-browser-property-default-font-size").val();
if (defaultFontSize) {
if (!$.isNumeric(defaultFontSize) || !inputIsValidAgainstRange(defaultFontSize, 0, 72)) {
validationStatus = {
"error": true,
"subErrorMsg": "Default font size is a number between 0 and 72",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
}
}
if (continueToCheckNextInputs) {
validationStatus = {
"error": false,
"okFeature": operation
};
}
validationStatusArray.push(validationStatus);
}
// Validating ENCRYPT_STORAGE
if ($.inArray(androidOperationConstants["ENCRYPT_STORAGE_OPERATION_CODE"], configuredOperations) != -1) {
// if ENCRYPT_STORAGE is configured
@ -705,6 +802,25 @@ var changeAndroidWifiPolicyEAP = function (select, superSelect) {
}
};
/**
* Pass a div Id and a check box to view or hide div content based on checkbox value
*/
var changeDivVisibility = function (divId, checkbox) {
if (checkbox.checked) {
document.getElementById(divId).style.display= "block"
} else {
document.getElementById(divId).style.display= "none"
inputs = document.getElementById(divId).getElementsByTagName('input');
for (index = 0; index < inputs.length; ++index) {
if (inputs[index].type == "text") {
inputs[index].value = inputs[index].defaultValue;
} else if (inputs[index].type == "checkbox") {
inputs[index].checked = inputs[index].defaultChecked;
}
}
}
};
/**
* Method to slide down a provided pane upon provided value set.
*

@ -1408,6 +1408,116 @@
<div id="cosu-profile-device-global-operation" class="panel-collapse panel-body collapse"
role="tabpanel">
<form class="form-horizontal">
<div class="wr-input-control">
<label class="wr-input-label">
Launcher background image
<span class="helper" title="This is the image that will be displayed in kiosk background.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-kiosk-background-image" type="text"
class="form-control operationDataKeys" data-key="kioskBackgroundImage"
maxlength="100" placeholder="[ Should be a valid URL of jpg or jpeg or png ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Company logo to display
<span class="helper" title="Company log to display.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-kiosk-logo-image" type="text"
class="form-control operationDataKeys" data-key="kioskLogoImage"
maxlength="100" placeholder="[ Should be a valid URL ending with .jpg, .png,
.jpeg ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Company name
<span class="helper" title="Company name.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-company-name" type="text"
class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent"/>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-idle-graphics-enabled" type="checkbox"
class="form-control operationDataKeys" data-key="isIdleGraphicsEnabled"
onchange="changeDivVisibility('idle-properties', this)"/>
<span class="helper" title="Is idle media enabled">
Is idle media enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div id="idle-properties">
<div class="wr-input-control">
<label class="wr-input-label">
Media to display while idle
<span class="helper" title="Media to display while the device is idle.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-global-config-idle-media-url" type="text"
class="form-control operationDataKeys" data-key="idleMediaURL"
maxlength="100" placeholder="[ Should be a valid URL ending with .jpg, .png, .jpeg, .mp4, .3gp, .wmv, .mkv ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Idle graphic begin after(seconds)
<span class="helper" title="Idle graphic begin after the defined seconds">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-idle-timeout" type="text"
class="form-control operationDataKeys" data-key="idleTimeout"
maxlength="100" placeholder="[ Idle timeout in seconds ]"/>
</div>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-multi-user-device" type="checkbox"
class="form-control operationDataKeys" data-key="isMultiUserDevice"
onchange="changeDivVisibility('cosu-global-config-is-is-login-required-div', this)"/>/>
<span class="helper" title="Is multi-user device">
Is multi-user device
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div id="cosu-global-config-is-is-login-required-div">
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-is-login-required" type="checkbox"
class="form-control operationDataKeys"
data-key="isLoginRequired" checked/>
<span class="helper" title="Is login needed for user switch.">
Is login needed for user switch
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
</div>
<div>
<label class="wr-input-label">
Device display orientation
<span class="helper" title="Device display orientation">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select id="cosu-profile-configuration-end-time"
class="form-control operationDataKeys"
data-key="displayOrientation" data-default="auto">
<option value="auto">Auto</option>
<option value="portrait">Portrait</option>
<option value="landscape">Landscape</option>
</select>
</div>
<br><br>
<div class="form-group">
<h2 class="col-sm-12 form-inline sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:13px; margin-left:10px;">
@ -1433,6 +1543,17 @@
class="form-control operationDataKeys" data-key="primaryURL"
maxlength="100" placeholder="[ Should be a valid URL ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-top-bar-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isTopBarEnabled"/>
<span class="helper" title="Enabled top control bar that displays all the controllers such as address bar, home button and forwards controllers">
Enabled top control bar
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-address-bar-enabled" type="checkbox"
@ -1444,6 +1565,396 @@
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-show-back-controller" type="checkbox"
class="form-control operationDataKeys"
data-key="showBackController" checked/>
<span class="helper" title="Allow to go back in a page">
Is allow to go back on a page
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-forward-controller-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isForwardControllerEnabled"/>
<span class="helper" title="Is it allowed to go forward in a web page.">
Is it allowed to go forward in browser
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-home-button-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isHomeButtonEnabled"/>
<span class="helper" title="Is home button enabled.">
Is home button enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-reload-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isReloadEnabled"/>
<span class="helper" title="Is page reload enabled.">
Is page reload enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-lock-to-primary-url" type="checkbox"
class="form-control operationDataKeys"
data-key="lockToPrimaryURL" checked />
<span class="helper" title="Only allowed to visit the pirmary url.">
Only allowed to visit the pirmary url
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-javascript-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isJavascriptEnabled" checked />
<span class="helper" title="Is javascript enabled.">
Is javascript enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-text-copy-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isTextCopyEnabled"/>
<span class="helper" title="Is copying text from browser enabled.">
Is copying text from browser enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-downloads-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isDownloadsEnabled"/>
<span class="helper" title="Is downloading files enabled.">
Is downloading files enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-locked-to-browser" type="checkbox"
class="form-control operationDataKeys"
data-key="isLockedToBrowser"/>
<span class="helper" title="Is Kiosk limited to one webapp.">
Is Kiosk limited to one webapp
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-form-auto-fill-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isFormAutoFillEnabled"/>
<span class="helper" title="Is form auto-fille enabled.">
Is form auto-fille enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-content-access-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isContentAccessEnabled"/>
<span class="helper" title="Enables or disables content URL access within WebView. Content URL access allows WebView to load content from a content provider installed in the system.">
Is content access enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-file-access-allowed" type="checkbox"
class="form-control operationDataKeys"
data-key="isFileAccessAllowed"/>
<span class="helper" title="Sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs. .">
Is file access allowed
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-allowed-universal-access-from-fileURLs" type="checkbox"
class="form-control operationDataKeys"
data-key="isAllowedUniversalAccessFromFileURLs"/>
<span class="helper" title="Sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from any origin.">
Is allowed universal access from file URLs
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-app-cache-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isAppCacheEnabled"/>
<span class="helper" title="Is application chche enabled.">
Is application chche enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Application caches file path
<span class="helper" title="Sets the path to the Application Caches files. In order for the Application Caches API to be enabled, this method must be called with a path to which the application can write">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-app-cache-path" type="text"
class="form-control operationDataKeys" data-key="appCachePath"
maxlength="100" placeholder="[ Should be a valid path ]"/>
</div>
<div>
<label class="wr-input-label">
Application cache mode
<span class="helper" title="Overrides the way the cache is used. The way the cache is used is based on the navigation type. For a normal page load, the cache is checked and content is re-validated as needed. When navigating back, content is not revalidated, instead the content is just retrieved from the cache. This method allows the client to override this behavior by specifying one of LOAD_DEFAULT, LOAD_CACHE_ELSE_NETWORK, LOAD_NO_CACHE or LOAD_CACHE_ONLY">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select id="cosu-browser-property-cache-mode"
class="form-control operationDataKeys"
data-key="cacheMode" data-default="-1">
<option value="-1">LOAD_DEFAULT</option>
<option value="1">LOAD_CACHE_ELSE_NETWORK</option>
<option value="2">LOAD_NO_CACHE</option>
<option value="3">LOAD_CACHE_ONLY</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-loads-images-automatically" type="checkbox"
class="form-control operationDataKeys"
data-key="isLoadsImagesAutomatically" checked />
<span class="helper" title="Sets whether the browser should load image resources(through network and cached). Note that this method controls loading of all images, including those embedded using the data URI scheme.">
Should load images
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-block-network-image" type="checkbox"
class="form-control operationDataKeys"
data-key="isBlockNetworkImage"/>
<span class="helper" title="Sets whether the browser should not load image resources from the network (resources accessed via http and https URI schemes)">
Block image loads via network
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-block-network-loads" type="checkbox"
class="form-control operationDataKeys"
data-key="isBlockNetworkLoads"/>
<span class="helper" title="Sets whether the browser should not load any resources from the network.">
Block all resource loads from network
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-support-zoom-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isSupportZoomEnabled" checked />
<span class="helper" title="Sets whether the browser should support zooming using its on-screen zoom controls and gestures.">
Support zooming
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-display-zoom-controls" type="checkbox"
class="form-control operationDataKeys"
data-key="isDisplayZoomControls"/>
<span class="helper" title="Sets whether the browser should display on-screen zoom controls. Guesture based controllers are still available">
Show on-screen zoom controlers
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Text zoom percentage
<span class="helper" title="Sets the text zoom of the page in percent.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-text-zoom" type="text"
class="form-control operationDataKeys" data-key="textZoom"
maxlength="100" placeholder="[ Should be a positive number ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Default font size
<span class="helper" title="Sets the default font size.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-default-font-size" type="text"
class="form-control operationDataKeys" data-key="defaultFontSize"
maxlength="100" placeholder="[ Should be a positive number between 1 and 72 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Defaut text encoding name
<span class="helper" title="Sets the default text encoding name to use when decoding html pages.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-default-text-encoding" type="text"
class="form-control operationDataKeys" data-key="defaultTextEncodingName"
maxlength="100" placeholder="[ Should a valid text encoding ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-database-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isDatabaseEnabled"/>
<span class="helper" title="Sets whether the database storage API is enabled.">
Is database storage API enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-dom-storage-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isDomStorageEnabled"/>
<span class="helper" title="Sets whether the DOM storage API is enabled.">
Is DOM storage API enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-geolocation-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="geolocationEnabled"/>
<span class="helper" title="Sets whether Geolocation API is enabled.">
Is Geolocation enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-javaScript-can-open-windows-automatically" type="checkbox"
class="form-control operationDataKeys"
data-key="isJavaScriptCanOpenWindowsAutomatically"/>
<span class="helper" title="JavaScript can open windows automatically or not. This applies to the JavaScript function window.open()">
Can JavaScript open windows
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-media-playback-requires-user-gesture" type="checkbox"
class="form-control operationDataKeys"
data-key="isMediaPlaybackRequiresUserGesture" checked/>
<span class="helper" title="Sets whether the browser requires a user gesture to play media. If false, the browser can play media without user consent">
Does media playback requires user consent
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-safe-browsing-enabled" type="checkbox"
class="form-control operationDataKeys"
data-key="isSafeBrowsingEnabled" checked/>
<span class="helper" title="Sets whether safe browsing is enabled. Safe browsing allows browser to protect against malware and phishing attacks by verifying the links.">
Is safe browsing enabled
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-control checkbox">
<input id="cosu-browser-property-is-use-wide-view-port" type="checkbox"
class="form-control operationDataKeys"
data-key="isUseWideViewPort" checked />
<span class="helper" title="Sets whether the browser should enable support for the viewport HTML meta tag or should use a wide viewport. When the value of the setting is false, the layout width is always set to the width of the browser control in device-independent (CSS) pixels. When the value is true and the page contains the viewport meta tag, the value of the width specified in the tag is used. If the page does not contain the tag or does not provide a width, then a wide viewport will be used.">
Use wide view port
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label">
Browser user agent string
<span class="helper" title="Sets the WebView's user-agent string.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<input id="cosu-browser-property-user-agent-string" type="text"
class="form-control operationDataKeys" data-key="userAgentString"
maxlength="100" placeholder="[ Should be a valid user agent string ]"/>
</div>
<div>
<label class="wr-input-label">
Mixed content mode
<span class="helper" title="Configures the browser's behavior when a secure origin attempts to load a resource from an insecure origin.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select id="cosu-browser-property-mixed-content-mode"
class="form-control operationDataKeys"
data-key="mixedContentMode" data-default="1">
<option value="0">MIXED_CONTENT_ALWAYS_ALLOW</option>
<option value="1">MIXED_CONTENT_NEVER_ALLOW</option>
<option value="2">MIXED_CONTENT_COMPATIBILITY_MODE</option>
</select>
</div>
</div>
</form>
<br/>

Loading…
Cancel
Save