@firebase/database 1.0.6-canary.62661245f → 1.0.6-canary.6bb2e8931
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/dist/index.cjs.js +1 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +1 -7
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1 -7
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +1 -7
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +0 -6
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +1 -7
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +7 -8
package/dist/index.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
|
|
|
8
8
|
var logger$1 = require('@firebase/logger');
|
|
9
9
|
|
|
10
10
|
const name = "@firebase/database";
|
|
11
|
-
const version = "1.0.6-canary.
|
|
11
|
+
const version = "1.0.6-canary.6bb2e8931";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
@@ -1513,8 +1513,6 @@ class FirebaseIFrameScriptHolder {
|
|
|
1513
1513
|
const iframeContents = '<html><body>' + script + '</body></html>';
|
|
1514
1514
|
try {
|
|
1515
1515
|
this.myIFrame.doc.open();
|
|
1516
|
-
// TODO: Do not use document.write, since it can lead to XSS. Instead, use the safevalues
|
|
1517
|
-
// library to sanitize the HTML in the iframeContents.
|
|
1518
1516
|
this.myIFrame.doc.write(iframeContents);
|
|
1519
1517
|
this.myIFrame.doc.close();
|
|
1520
1518
|
}
|
|
@@ -1737,10 +1735,6 @@ class FirebaseIFrameScriptHolder {
|
|
|
1737
1735
|
const newScript = this.myIFrame.doc.createElement('script');
|
|
1738
1736
|
newScript.type = 'text/javascript';
|
|
1739
1737
|
newScript.async = true;
|
|
1740
|
-
// TODO: We cannot assign an arbitrary URL to a script attached to the DOM, since it is
|
|
1741
|
-
// at risk of XSS. We should use the safevalues library to create a safeScriptEl, and
|
|
1742
|
-
// assign a sanitized trustedResourceURL to it. Since the URL must be a template string
|
|
1743
|
-
// literal, this could require some heavy refactoring.
|
|
1744
1738
|
newScript.src = url;
|
|
1745
1739
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1746
1740
|
newScript.onload = newScript.onreadystatechange =
|