### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

18.0.0

### What operating system are you using?

macOS

### Operating System Version

MacOS 12.3

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

PDF File should be displayed just like when opening the page in Chrome browser.

### Actual Behavior

The PDF file isn't displayed in the Embed.
Screenshot:
![Bildschirmfoto 2022-03-30 um 16 04 47](https://user-images.githubusercontent.com/40733092/160853634-a903d3b1-c11d-4b93-84ae-64af05e17ec9.png)
=> Error loading PDF document. 

### Testcase Gist URL

_No response_

### Additional Information

I use this html for displaying it:
`<embed type="application/pdf" src="https://....." style="width: 100%; height: 30rem;">`
The document URL in here is a Blob URL with a PDF fetched from an internal API.

The window is loaded using this code:
```
const { app, BrowserWindow } = require('electron')
const createWindow = () => {
    const win = new BrowserWindow({
        width: 1400,
        height: 800,
        webPreferences: {
            plugins: true
        }
    })

    win.loadURL("https://127.0.0.1:8000/app")
}

app.whenReady().then(() => {
    createWindow()
})
```
shell/browser/extensions/api/tabs/tabs_api.cc
if (init_result_)
    return init_result_.value();
  if (args().size() < 2)
    return set_init_result(VALIDATION_FAILURE);
  const auto& tab_id_value = args()[0];
  
  int tab_id = -1;
  if (tab_id_value.is_int()) {
    
    tab_id = tab_id_value.GetInt();
    if (tab_id < 0) {
      return set_init_result(VALIDATION_FAILURE);
    }
  }
  
  const base::Value& details_value = args()[1];
  if (!details_value.is_dict())
    return set_init_result(VALIDATION_FAILURE);
  std::unique_ptr<InjectDetails> details(new InjectDetails());
  if (!InjectDetails::Populate(details_value, details.get()))
    return set_init_result(VALIDATION_FAILURE);
  if (tab_id == -1) {
    
    
    
    return set_init_result(VALIDATION_FAILURE);
  }
  execute_tab_id_ = tab_id;
  details_ = std::move(details);
  set_host_id(