@sapui5/sap.viz 1.96.41 → 1.96.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.viz",
3
- "version": "1.96.41",
3
+ "version": "1.96.42",
4
4
  "description": "SAPUI5 Library sap.viz",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -5,7 +5,7 @@
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>SAPUI5
7
7
  * (c) Copyright 2009-2021 SAP SE. All rights reserved.</copyright>
8
- <version>1.96.41</version>
8
+ <version>1.96.42</version>
9
9
 
10
10
  <documentation>Chart controls based on the SAP BI CVOM charting library</documentation>
11
11
 
@@ -240,7 +240,7 @@ sap.ui.define([
240
240
 
241
241
  //@@end generated-elements-list
242
242
  ],
243
- version: "1.96.41"
243
+ version: "1.96.42"
244
244
  });
245
245
 
246
246
  //@@begin generated-enums
@@ -1034,11 +1034,22 @@ sap.ui.define([
1034
1034
  Log.info("Failed to create worker via Blob (strict CSP?), falling back to separate script", null, "sap.viz.ui5.controls.VizFrame");
1035
1035
  worker = new Worker(require.toUrl("./WorkerCode.js"));
1036
1036
  }
1037
- worker.postMessage({applicationSet:applicationSet, allPropDefs :allPropDefs, allChartNames:Constants.CORE_CHART_TYPES, generalProps: DefaultPropertiesHelper._general,
1037
+ function workerHandler(worker) {
1038
+ worker.postMessage({applicationSet:applicationSet, allPropDefs :allPropDefs, allChartNames:Constants.CORE_CHART_TYPES, generalProps: DefaultPropertiesHelper._general,
1038
1039
  specificProps: DefaultPropertiesHelper._specified, defaultFioriProps: DefaultPropertiesHelper.DEFAULT_FIORI_PROPS,
1039
1040
  dualFioriProps: DefaultPropertiesHelper.FIORI_DUAL_PROPS, allUi5Theme:allUi5Theme, cvomTemplate:cvomTemplate, extraProp:extraProp, defaultFormatString: defaultFormatString});
1040
- worker.onmessage = function (event) {
1041
- resolve(event.data);
1041
+ worker.onmessage = function (event) {
1042
+ resolve(event.data);
1043
+ };
1044
+ }
1045
+ workerHandler(worker);
1046
+ worker.onerror = function (event) {
1047
+ // For browser Firefox, the strict content security policy would forbid to read the content in the resource of blob: URLs.
1048
+ // But the error couldn't be catched by Firefox. Use the onerror function to check.
1049
+ // a strict content security policy might forbid the use of blob: URLs, use fallback
1050
+ Log.info("Failed to create worker via Blob (strict CSP?), falling back to separate script", null, "sap.viz.ui5.controls.VizFrame");
1051
+ worker = new Worker(require.toUrl("./WorkerCode.js"));
1052
+ workerHandler(worker);
1042
1053
  };
1043
1054
  });
1044
1055
  }
@@ -17,7 +17,7 @@ sap.ui.define(['sap/ui/core/ElementMetadata'],
17
17
  *
18
18
  * @class
19
19
  * @author SAP SE
20
- * @version 1.96.41
20
+ * @version 1.96.42
21
21
  * @since 1.30.0
22
22
  * @alias sap.viz.ui5.core.BaseChartMetadata
23
23
  */