Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix popout widget issue when useDefaultPopoutUrl is not used (backport #1179) #1181

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 17, 2025

Changes

This PR fixes #1178 by replacing deprecated document.write() with DOM manipulation methods.

Popout widget would not close correctly, due to pagehide listener not being called. See https://developer.mozilla.org/en-US/docs/Web/API/Document/open#notes
I.e. using document.close() (after writing to the document) and then adding the pagehide listener seems to work correctly as well.

Testing

N/A


This is an automatic backport of pull request #1179 done by [Mergify](https://mergify.com).

* Add IMJS_USE_DEFAULT_POPOUT_URL

* Replace deprecated document.write

* rush change

* useDefaultPopoutUrl url param.

* Add tests

(cherry picked from commit d867e2d)
@GerardasB GerardasB enabled auto-merge (squash) January 17, 2025 10:06
@GerardasB GerardasB merged commit 90d8551 into release/5.1.x Jan 17, 2025
18 checks passed
@GerardasB GerardasB deleted the mergify/bp/release/5.1.x/pr-1179 branch January 17, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant