@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.
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sh
4
4
  import { Logger, LogLevel } from '@firebase/logger';
5
5
 
6
6
  const name = "@firebase/database";
7
- const version = "1.0.6-canary.62661245f";
7
+ const version = "1.0.6-canary.6bb2e8931";
8
8
 
9
9
  /**
10
10
  * @license
@@ -1509,8 +1509,6 @@ class FirebaseIFrameScriptHolder {
1509
1509
  const iframeContents = '<html><body>' + script + '</body></html>';
1510
1510
  try {
1511
1511
  this.myIFrame.doc.open();
1512
- // TODO: Do not use document.write, since it can lead to XSS. Instead, use the safevalues
1513
- // library to sanitize the HTML in the iframeContents.
1514
1512
  this.myIFrame.doc.write(iframeContents);
1515
1513
  this.myIFrame.doc.close();
1516
1514
  }
@@ -1733,10 +1731,6 @@ class FirebaseIFrameScriptHolder {
1733
1731
  const newScript = this.myIFrame.doc.createElement('script');
1734
1732
  newScript.type = 'text/javascript';
1735
1733
  newScript.async = true;
1736
- // TODO: We cannot assign an arbitrary URL to a script attached to the DOM, since it is
1737
- // at risk of XSS. We should use the safevalues library to create a safeScriptEl, and
1738
- // assign a sanitized trustedResourceURL to it. Since the URL must be a template string
1739
- // literal, this could require some heavy refactoring.
1740
1734
  newScript.src = url;
1741
1735
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1742
1736
  newScript.onload = newScript.onreadystatechange =