@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
|
@@ -1251,7 +1251,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
|
|
|
1251
1251
|
WebSocketConnection.healthyTimeout = 30000;
|
|
1252
1252
|
|
|
1253
1253
|
const name = "@firebase/database";
|
|
1254
|
-
const version = "1.0.6-canary.
|
|
1254
|
+
const version = "1.0.6-canary.6bb2e8931";
|
|
1255
1255
|
|
|
1256
1256
|
/**
|
|
1257
1257
|
* @license
|
|
@@ -1861,8 +1861,6 @@ class FirebaseIFrameScriptHolder {
|
|
|
1861
1861
|
const iframeContents = '<html><body>' + script + '</body></html>';
|
|
1862
1862
|
try {
|
|
1863
1863
|
this.myIFrame.doc.open();
|
|
1864
|
-
// TODO: Do not use document.write, since it can lead to XSS. Instead, use the safevalues
|
|
1865
|
-
// library to sanitize the HTML in the iframeContents.
|
|
1866
1864
|
this.myIFrame.doc.write(iframeContents);
|
|
1867
1865
|
this.myIFrame.doc.close();
|
|
1868
1866
|
}
|
|
@@ -2085,10 +2083,6 @@ class FirebaseIFrameScriptHolder {
|
|
|
2085
2083
|
const newScript = this.myIFrame.doc.createElement('script');
|
|
2086
2084
|
newScript.type = 'text/javascript';
|
|
2087
2085
|
newScript.async = true;
|
|
2088
|
-
// TODO: We cannot assign an arbitrary URL to a script attached to the DOM, since it is
|
|
2089
|
-
// at risk of XSS. We should use the safevalues library to create a safeScriptEl, and
|
|
2090
|
-
// assign a sanitized trustedResourceURL to it. Since the URL must be a template string
|
|
2091
|
-
// literal, this could require some heavy refactoring.
|
|
2092
2086
|
newScript.src = url;
|
|
2093
2087
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2094
2088
|
newScript.onload = newScript.onreadystatechange =
|