@arsedizioni/ars-utils 21.2.358 → 21.2.360

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": "@arsedizioni/ars-utils",
3
- "version": "21.2.358",
3
+ "version": "21.2.360",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -868,8 +868,19 @@ declare class ClipperDocumentComponent extends ClipperDocumentManager {
868
868
  */
869
869
  private applyIframeUrl;
870
870
  /**
871
- * Sets the iframe `src` ensuring a reload happens even when the URL is identical
872
- * to the current one (some browsers skip the navigation otherwise).
871
+ * Navigates the iframe to the given URL, always pushing a new entry into its
872
+ * session history — even when the URL is identical to the current one.
873
+ *
874
+ * We use `location.assign` instead of setting `src` directly so that:
875
+ * - the navigation is guaranteed to happen across browsers (assigning the same
876
+ * string to `src` is a no-op in some engines);
877
+ * - a new history entry is added, keeping the iframe's Back stack independent
878
+ * from the parent window's history. Otherwise, repeated Back presses would
879
+ * eventually fall through to the host page and close the dialog.
880
+ *
881
+ * If the iframe is cross-origin and `contentWindow.location` access throws,
882
+ * we fall back to a plain `src` assignment.
883
+ *
873
884
  * @param el - The iframe element to update.
874
885
  * @param url - The URL to navigate to.
875
886
  */