Block nested system print dialogs on Windows.
Browser needs to allow nested tasks to update backgroud tabs.
If rendered requests new system dialog, asan build crashes in COMDLG32.dll
NOTRY=true
BUG=451753
Review URL: https://codereview.chromium.org/934393003
Cr-Commit-Position: refs/heads/master@{#317611}
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
index 7822429..9d1df52 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -359,7 +359,7 @@
HWND PrintingContextWin::GetRootWindow(gfx::NativeView view) {
HWND window = NULL;
- if (view)
+ if (view && view->GetHost())
window = view->GetHost()->GetAcceleratedWidget();
if (!window) {
// TODO(maruel): crbug.com/1214347 Get the right browser window instead.