@arsedizioni/ars-utils 21.2.359 → 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.359",
3
+ "version": "21.2.360",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -868,13 +868,18 @@ 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
873
  *
874
- * When the URL is unchanged we use `location.replace`, which forces a reload without
875
- * adding a new entry to the iframe's history this preserves the Back/Forward
876
- * behaviour driven by the iframe itself. If the iframe is cross-origin and the
877
- * replace throws, we fall back to a plain `src` assignment.
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.
878
883
  *
879
884
  * @param el - The iframe element to update.
880
885
  * @param url - The URL to navigate to.