Bug 1776296 - Remove nsPrintJob::mIsForModalWindow. r=dholbert

Differential Revision: https://phabricator.services.mozilla.com/D158777
This commit is contained in:
Jonathan Watt
2022-10-07 17:24:17 +00:00
parent f8b59c716a
commit 0232d34738
2 changed files with 0 additions and 10 deletions

View File

@@ -270,15 +270,6 @@ nsPrintJob::nsPrintJob(nsIDocumentViewerPrint& aDocViewerPrint,
mDisallowSelectionPrint =
root &&
root->HasAttr(kNameSpaceID_None, nsGkAtoms::mozdisallowselectionprint);
if (nsPIDOMWindowOuter* window = aOriginalDoc.GetWindow()) {
if (nsCOMPtr<nsIWebBrowserChrome> wbc = window->GetWebBrowserChrome()) {
// We only get this in order to skip opening the progress dialog when
// the window is modal. Once the platform code stops opening the
// progress dialog (bug 1558907), we can get rid of this.
wbc->IsWindowModal(&mIsForModalWindow);
}
}
}
//-----------------------------------------------------------------