Looking into (window) modal prompts I've rediscovered this. While the main print dialog seems to have [rate limit logic](https://searchfox.org/mozilla-central/rev/e878e5b81bb319c141900ce9cfcde732df5c8449/dom/base/nsGlobalWindowOuter.cpp#4971), the [print error messages](https://searchfox.org/mozilla-central/rev/cfd1cc461f1efe0d66c2fdc17c024a203d5a2fd8/toolkit/components/printing/content/printUtils.js#283) do not. When `window.print()` is spammed in a simple while loop these error prompts stack and steal main window focus. PoC here: https://eviltrap. site/trap/print-dialog-dos/ (careful, this will DoS your browser)
Bug 1311596 Comment 6 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Looking into (window) modal prompts I've rediscovered this. While the main print dialog seems to have [rate limit logic](https://searchfox.org/mozilla-central/rev/e878e5b81bb319c141900ce9cfcde732df5c8449/dom/base/nsGlobalWindowOuter.cpp#4971), the [print error messages](https://searchfox.org/mozilla-central/rev/cfd1cc461f1efe0d66c2fdc17c024a203d5a2fd8/toolkit/components/printing/content/printUtils.js#283) do not. When `window.print()` is spammed in a simple while loop these error prompts stack and steal main window focus. Could be abused similar to Bug 1571003. PoC here: https://eviltrap. site/trap/print-dialog-dos/ (careful, this will DoS your browser)