<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

### Issue Details

* **Electron Version:**
  * 9.1.0
* **Operating System:**
  * macOS Mojave 10.14.6
* **Last Known Working Electron version:**
  * just v9. Because in electron version 9 was introduce "pdf viewer", but now it cant print pdf.

### Expected Behavior
just print correctly the pdf...

### Actual Behavior
when you try to print with "window.print()" a page that load a PDF electron do not respond.... sometimes crash...

### To Reproduce
just clone "electron-quick-start" and replace this line :
 mainWindow.loadFile('index.html') 
 for 
 mainWindow.loadURL('http://www.africau.edu/images/default/sample.pdf')
and replace all content script "preload.js" for:

window.addEventListener('DOMContentLoaded', () => {
  window.print();
});

this is a example repo to reproduce the error: 
https://github.com/rgarcia1990/electron-quick-start

just do the normal setup

$ git clone https://github.com/rgarcia1990/electron-quick-start
$ npm install
$ npm start || electron .

and when the app electron start will popup print dialog, just try to print!

that is all!
shell/browser/extensions/electron_extensions_api_client.cc
#include "shell/browser/extensions/electron_extensions_api_client.h"
#include <memory>
#include <string>
#include "electron/buildflags/buildflags.h"
#include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h"
#include "printing/buildflags/buildflags.h"
#include "shell/browser/extensions/api/management/electron_management_api_delegate.h"
#include "shell/browser/extensions/electron_extension_web_contents_observer.h"
#include "shell/browser/extensions/electron_messaging_delegate.h"
#if BUILDFLAG(ENABLE_PDF_VIEWER)
#include "components/pdf/browser/pdf_web_contents_helper.h"  
#include "shell/browser/electron_pdf_web_contents_helper_client.h"
#endif
namespace extensions {
class ElectronMimeHandlerViewGuestDelegate