Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
M109: Print Preview: Fix regression where afterprint event does not f…
…ire. When window.print() gets called, the browser-side handler for this renderer triggered JS function does not properly set up a Mojo communication channel from the browser-side. When the Print Preview dialog closes, the browser fails to let the renderer know, and the renderer fails to fire the afterprint event as a result. Prior to https://crrev.com/1065832, the excessive browser to renderer IPCs usually manages to set up the Mojo channel, thus masking this issue. With those IPCs removed, this bug shows up. Fix this in PrintViewManager::SetupScriptedPrintPreview() by explicitly setting up the Mojo channel. (cherry picked from commit 9ed33fc) Bug: 1406838 Change-Id: Id5b803d749b2e47ead474f447e107000eead65f7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4175682 Reviewed-by: Alan Screen <awscreen@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1093990} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4181802 Cr-Commit-Position: refs/branch-heads/5414@{#1420} Cr-Branched-From: 4417ee5-refs/heads/main@{#1070088}
- Loading branch information