-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
[Bug] [Chrome] - Print is triggering in Tab 1, Tab 2 Blank Page #745
Comments
This is super interesting, thanks! I'm able to reproduce with the local examples:
If I skip the printing I can open http://localhost:8080/ in two tabs no problem. This is for sure an upstream issue with Chrome. I wouldn't be surprised if this was in some ways intended behavior due to the single-threaded nature of JS, not sure though, will research! |
Some additional testing:
|
Something else strange: if I do cmd+p to print there is no issue with multiple tabs in Chrome, so this is likely related to using |
Minimum reproducible example: <!DOCTYPE html>
<html>
<body>
<script>
function handlePrintOnClick() {
window.print();
}
</script>
<button onclick="handlePrintOnClick()">Trigger Print</button>
</body>
</html> |
This seems to be a related Chromium issue from a few years ago that was fixed. Maybe it has regressed again in a slightly different fashion |
One additional thing: there is some scope to this, since the issue does not occur if you try to open the new tab in an incognito window |
I've reported this as a new issue, we'll see what they say: https://issues.chromium.org/issues/370543477 |
i see that error when use the same origin and iframe tag. The window.print() function not work with me and i think that not is error from library. I'll wait reply from that issue. Thanks you a lot. |
The text was updated successfully, but these errors were encountered: