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
postMessage api does not use macroTask timing. #948
Labels
bug
Something isn't working
Comments
DylanPiercey
added a commit
to DylanPiercey/happy-dom
that referenced
this issue
Jun 7, 2023
DylanPiercey
added a commit
to DylanPiercey/happy-dom
that referenced
this issue
Jun 8, 2023
DylanPiercey
added a commit
to DylanPiercey/happy-dom
that referenced
this issue
Jun 8, 2023
capricorn86
added a commit
to DylanPiercey/happy-dom
that referenced
this issue
Jul 10, 2023
…Fixes problem in HTMLIframeElement where it did'nt load a page when setting URL by attributeafter it has been connected to DOM.
capricorn86
added a commit
to DylanPiercey/happy-dom
that referenced
this issue
Jul 10, 2023
…Fixes problem in HTMLIframeElement where it did'nt load a page when setting URL by attributeafter it has been connected to DOM.
capricorn86
added a commit
to DylanPiercey/happy-dom
that referenced
this issue
Jul 10, 2023
…Fixes problem in HTMLIframeElement where it did'nt load a page when setting URL by attributeafter it has been connected to DOM.
capricorn86
added a commit
to DylanPiercey/happy-dom
that referenced
this issue
Jul 10, 2023
…Fixes problem in HTMLIframeElement where it did'nt load a page when setting URL by attributeafter it has been connected to DOM.
capricorn86
added a commit
to DylanPiercey/happy-dom
that referenced
this issue
Jul 10, 2023
…Fixes problem in HTMLIframeElement where it did'nt load a page when setting URL by attributeafter it has been connected to DOM.
capricorn86
added a commit
that referenced
this issue
Jul 10, 2023
#948@patch: Use macro task timing for postmessage api.
Your fix has been released. You can read more about the release here: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The
window.postMessage
api uses "macro task" timing which some tools/libraries rely on to provide a shim of thesetImmediate
api in node js.Currently the
postMessage
api implemented by HappyDOM is sync which can cause unexpected behavior.To Reproduce
Call the
postMessage
api and themessage
event is fired synchronously.Expected behavior
Call the
postMessage
api and themessage
event is fired asynchronously.The text was updated successfully, but these errors were encountered: