### 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

16.0.0;15.3.5

### What operating system are you using?

macOS

### Operating System Version

12.1

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

According v16.0.0 release notes: 
Changed Web Serial to use ses.setDevicePermissionHandler to allow developers more control over Web Serial permissioning. #31324 (Also in 15)

I expect ```navigator.serial.getPorts().then(ports=>console.log(ports))``` return all serial port without call ```navigator.serial.requestPort()``` after setDevicePermissionHandler grant the permissions.
 
```
    mainWindow.webContents.session.setPermissionCheckHandler((webContents, permission, requestingOrigin, details) => {
        return true;
    });
    mainWindow.webContents.session.setDevicePermissionHandler((details) => {
        return true;
    });
```

I expect ```navigator.serial.getPorts()``` worked like ```navigator.hid.getDevices()``` worked without call ```navigator.hid.requestDevice()```.

### Actual Behavior

```navigator.serial.getPorts().then(ports=>console.log(ports))``` return empty without call ```navigator.serial.requestPort()``` 

### Testcase Gist URL
https://gist.github.com/d9de1c981ef830835c0e05931dc5f8f4

_No response_

### Additional Information

_No response_
shell/browser/serial/serial_chooser_context.h
content::RenderFrameHost* render_frame_host);
  bool HasPortPermission(const url::Origin& origin,
                         const device::mojom::SerialPortInfo& port,
                         content::RenderFrameHost* render_frame_host);
  static bool CanStorePersistentEntry(
      const device::mojom::SerialPortInfo& port);
  device::mojom::SerialPortManager* GetPortManager();
  void AddPortObserver(PortObserver* observer);
  void RemovePortObserver(PortObserver* observer);
  base::WeakPtr<SerialChooserContext> AsWeakPtr();
  
  void OnPortAdded(device::mojom::SerialPortInfoPtr port) override;
  void OnPortRemoved(device::mojom::SerialPortInfoPtr port) override;
 private:
  void EnsurePortManagerConnection();
  void SetUpPortManagerConnection(
      mojo::PendingRemote<device::mojom::SerialPortManager> manager);
  void OnPortManagerConnectionError();
  
  std::map<url::Origin, std::set<base::UnguessableToken>> ephemeral_ports_;
  
  std::map<base::UnguessableToken, base::Value> port_info_;
  mojo::Remote<device::mojom::SerialPortManager> port_manager_;
  mojo::Receiver<device::mojom::SerialPortManagerClient> client_receiver_{this};
  base::ObserverList<PortObserver> port_observer_list_;
  base::WeakPtrFactory<SerialChooserContext> weak_factory_{this};
};
}  
#endif